Class TileEntityStash

All Implemented Interfaces:
com.ldtteam.domumornamentum.entity.block.IMateriallyTexturedBlockEntity, com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE, ITickable, IItemHandlerCapProvider, net.minecraft.world.Clearable, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.client.extensions.IMenuProviderExtension, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class TileEntityStash extends TileEntityColonyBuilding
Class which handles the tileEntity for the Stash block.
  • Constructor Details

    • TileEntityStash

      public TileEntityStash(net.minecraft.world.level.block.entity.BlockEntityType<? extends TileEntityStash> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Constructor of the stash based on a tile entity type
      Parameters:
      type - tile entity type
    • TileEntityStash

      public TileEntityStash(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Default constructor of the stash
  • Method Details

    • createInventory

      public net.neoforged.neoforge.items.ItemStackHandler createInventory(int slots)
      Description copied from class: AbstractTileEntityRack
      Create the inventory that belongs to the rack.
      Overrides:
      createInventory in class TileEntityRack
      Parameters:
      slots - the number of slots.
      Returns:
      the created inventory,