Class TSlottedTile

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

public class TSlottedTile extends TileMultipart
Created by covers1624 on 1/1/21.
  • Constructor Details

    • TSlottedTile

      public TSlottedTile(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
    • 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
    • getSlottedPart

      public MultiPart getSlottedPart(int slot)
      Description copied from class: TileMultipart
      Blank implementation.

      Overriden by TSlottedTile

      Overrides:
      getSlottedPart 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
    • canAddPart

      public boolean canAddPart(MultiPart part)
      Overrides:
      canAddPart 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