Class TInventoryTile

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
codechicken.multipart.block.TileMultipart
codechicken.multipart.trait.TInventoryTile
All Implemented Interfaces:
codechicken.lib.world.IChunkLoadTile, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.WorldlyContainer, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class TInventoryTile extends TileMultipart implements net.minecraft.world.WorldlyContainer
Created by covers1624 on 1/1/21.
  • Constructor Details

    • TInventoryTile

      public TInventoryTile(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • copyFrom

      public void copyFrom(TileMultipart that)
      Description copied from class: TileMultipart
      This method should be used for copying all the data from the fields in that container tile. This method will be automatically generated on java tile traits with fields if it is not overridden.
      Overrides:
      copyFrom in class TileMultipart
    • bindPart

      public void bindPart(MultiPart part)
      Description copied from class: TileMultipart
      Bind this part to an internal cache.

      Provided for trait overrides, do not call externally.

      Overrides:
      bindPart in class TileMultipart
    • partRemoved

      public void partRemoved(MultiPart part, int p)
      Description copied from class: TileMultipart
      Remove this part from internal cache.

      Provided for trait overrides, do not call externally.

      Overrides:
      partRemoved in class TileMultipart
    • clearParts

      public void clearParts()
      Description copied from class: TileMultipart
      Remove all parts from internal cache.

      Provided for trait overrides, do not call externally.

      Overrides:
      clearParts in class TileMultipart
    • clearContent

      public void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
    • getContainerSize

      public int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface net.minecraft.world.Container
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int slot)
      Specified by:
      getItem in interface net.minecraft.world.Container
    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int slot, int count)
      Specified by:
      removeItem in interface net.minecraft.world.Container
    • removeItemNoUpdate

      public net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot)
      Specified by:
      removeItemNoUpdate in interface net.minecraft.world.Container
    • setItem

      public void setItem(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setItem in interface net.minecraft.world.Container
    • getSlotsForFace

      public int[] getSlotsForFace(net.minecraft.core.Direction side)
      Specified by:
      getSlotsForFace in interface net.minecraft.world.WorldlyContainer
    • canPlaceItemThroughFace

      public boolean canPlaceItemThroughFace(int slot, net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.core.Direction side)
      Specified by:
      canPlaceItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • canTakeItemThroughFace

      public boolean canTakeItemThroughFace(int slot, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side)
      Specified by:
      canTakeItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container