Class ToolboxTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
IInteractionChecker, IPartialSafeNBT, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable, 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 ToolboxTileEntity extends SmartTileEntity implements net.minecraft.world.MenuProvider, net.minecraft.world.Nameable
  • Field Details

  • Constructor Details

    • ToolboxTileEntity

      public ToolboxTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getColor

      public net.minecraft.world.item.DyeColor getColor()
    • addBehaviours

      public void addBehaviours(List<TileEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartTileEntity
    • initialize

      public void initialize()
      Overrides:
      initialize in class SmartTileEntity
    • setRemoved

      public void setRemoved()
      Overrides:
      setRemoved in class SmartTileEntity
    • tick

      public void tick()
      Overrides:
      tick in class SmartTileEntity
    • unequipTracked

      public void unequipTracked()
    • unequip

      public void unequip(int slot, net.minecraft.world.entity.player.Player player, int hotbarSlot, boolean keepItems)
    • getCapability

      public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, net.minecraft.core.Direction side)
      Specified by:
      getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvider
      Overrides:
      getCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartTileEntity
    • write

      protected void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartTileEntity
    • createMenu

      public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • lazyTick

      public void lazyTick()
      Overrides:
      lazyTick in class SmartTileEntity
    • startOpen

      public void startOpen(net.minecraft.world.entity.player.Player player)
    • stopOpen

      public void stopOpen(net.minecraft.world.entity.player.Player player)
    • connectPlayer

      public void connectPlayer(int slot, net.minecraft.world.entity.player.Player player, int hotbarSlot)
    • readInventory

      public void readInventory(net.minecraft.nbt.CompoundTag compound)
    • setUniqueId

      public void setUniqueId(UUID uniqueId)
    • getUniqueId

      public UUID getUniqueId()
    • setCustomName

      public void setCustomName(net.minecraft.network.chat.Component customName)
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider
      Specified by:
      getDisplayName in interface net.minecraft.world.Nameable
    • getCustomName

      public net.minecraft.network.chat.Component getCustomName()
      Specified by:
      getCustomName in interface net.minecraft.world.Nameable
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface net.minecraft.world.Nameable
    • getName

      public net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface net.minecraft.world.Nameable
    • setBlockState

      public void setBlockState(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      setBlockState in class net.minecraft.world.level.block.entity.BlockEntity