Class TileEntityStash

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
All Implemented Interfaces:
com.ldtteam.domumornamentum.entity.block.IMateriallyTexturedBlockEntity, com.ldtteam.structurize.blockentities.interfaces.IBlueprintDataProviderBE, ITickable, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

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.minecraftforge.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,