All Implemented Interfaces:
IBuilding, IBuildingContainer, ICommonBuilding, ISchematicProvider, IBuildingModuleContainer, IModuleContainer<IBuildingModule>, IRequester, IRequestResolverProvider, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class BuildingAlchemist extends AbstractBuilding
Class of the alchemist building. Crafts potions and grows netherwart.
  • Constructor Details

    • BuildingAlchemist

      public BuildingAlchemist(IColony c, net.minecraft.core.BlockPos l)
      Instantiates a new plantation building.
      Parameters:
      c - the colony.
      l - the location
  • Method Details

    • getSchematicName

      @NotNull public @NotNull String getSchematicName()
      Description copied from interface: ISchematicProvider
      Children must return the name of their structure.
      Returns:
      StructureProxy name.
    • getMaxBuildingLevel

      public int getMaxBuildingLevel()
      Description copied from interface: ISchematicProvider
      Children must return their max building level.
      Specified by:
      getMaxBuildingLevel in interface ISchematicProvider
      Overrides:
      getMaxBuildingLevel in class AbstractBuilding
      Returns:
      Max building level.
    • registerBlockPosition

      public void registerBlockPosition(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState block, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.Level world)
      Description copied from interface: IBuildingContainer
      Register a blockState and position. We suppress this warning since this parameter will be used in child classes which override this method.
      Specified by:
      registerBlockPosition in interface IBuildingContainer
      Overrides:
      registerBlockPosition in class AbstractBuilding
      Parameters:
      block - to be registered
      pos - of the blockState
      world - world to register it at.
    • deserializeNBT

      public void deserializeNBT(net.minecraft.nbt.CompoundTag compound)
      Specified by:
      deserializeNBT in interface IBuildingContainer
      Specified by:
      deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
      Overrides:
      deserializeNBT in class AbstractBuilding
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT()
      Specified by:
      serializeNBT in interface IBuildingContainer
      Specified by:
      serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
      Overrides:
      serializeNBT in class AbstractBuilding
    • getAllSoilPositions

      public List<net.minecraft.core.BlockPos> getAllSoilPositions()
      Get a list of all the available working positions.
      Returns:
      copy of the list of positions.
    • getAllLeavePositions

      public List<net.minecraft.core.BlockPos> getAllLeavePositions()
      Get a list of all leave positions.
      Returns:
      copy of the list of positions.
    • getAllBrewingStandPositions

      public List<net.minecraft.core.BlockPos> getAllBrewingStandPositions()
      Get a list of all brewing stand positions.
      Returns:
      copy of the list of positions.
    • removeBrewingStand

      public void removeBrewingStand(net.minecraft.core.BlockPos pos)
      Remove a vanished brewing stand.
      Parameters:
      pos - the position of it.
    • removeSoilPosition

      public void removeSoilPosition(net.minecraft.core.BlockPos pos)
      Remove soil position.
      Parameters:
      pos - the position of it.
    • removeLeafPosition

      public void removeLeafPosition(net.minecraft.core.BlockPos pos)
      Remove leaf position.
      Parameters:
      pos - the position of it.