Class BuildingDeliveryman

All Implemented Interfaces:
IBuilding, IBuildingContainer, ICommonBuilding, ISchematicProvider, IBuildingDeliveryman, IBuildingModuleContainer, IModuleContainer<IBuildingModule>, IRequester, IRequestResolverProvider, IItemHandlerCapProvider, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class BuildingDeliveryman extends AbstractBuilding implements IBuildingDeliveryman
Class of the warehouse building.
  • Constructor Details

    • BuildingDeliveryman

      public BuildingDeliveryman(IColony c, net.minecraft.core.BlockPos l)
      Instantiates a new warehouse 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.
      Specified by:
      getSchematicName in interface ISchematicProvider
      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.
    • 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.
      Specified by:
      canEat in interface IBuilding
      Parameters:
      stack - the stack to test.
      Returns:
      true if so.