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 BuildingBaker extends AbstractBuilding
Building for the bakery.
  • Constructor Details

    • BuildingBaker

      public BuildingBaker(IColony c, net.minecraft.core.BlockPos l)
      Constructor for the bakery building.
      Parameters:
      c - Colony the building is in.
      l - Location of the building.
  • Method Details

    • getSchematicName

      @NotNull public @NotNull String getSchematicName()
      Gets the name of the schematic.
      Returns:
      Baker schematic name.
    • getMaxBuildingLevel

      public int getMaxBuildingLevel()
      Gets the max level of the bakery's hut.
      Specified by:
      getMaxBuildingLevel in interface ISchematicProvider
      Overrides:
      getMaxBuildingLevel in class AbstractBuilding
      Returns:
      The max level of the bakery's hut.
    • keepFood

      protected boolean keepFood()
      Description copied from class: AbstractBuilding
      If the worker should keep some food in the inventory/building.
      Overrides:
      keepFood in class AbstractBuilding
      Returns:
      true if so.
    • canEat

      public boolean canEat(net.minecraft.world.item.ItemStack stack)
      Description copied from interface: IBuilding
      Check if the assigned citizens are allowed to eat the following stack.
      Parameters:
      stack - the stack to test.
      Returns:
      true if so.