Class FullPotsAccessorDemo.DioriteFlowerPotTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
net.minecraft.tileentity.TileEntity
net.minecraftforge.debug.block.FullPotsAccessorDemo.DioriteFlowerPotTileEntity
All Implemented Interfaces:
ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeTileEntity, INBTSerializable<CompoundNBT>
Enclosing class:
FullPotsAccessorDemo

private static class FullPotsAccessorDemo.DioriteFlowerPotTileEntity extends TileEntity
  • Field Details

  • Constructor Details

    • DioriteFlowerPotTileEntity

      public DioriteFlowerPotTileEntity()
  • Method Details

    • setPlant

      public void setPlant(Block plant)
    • getPlant

      public Block getPlant()
    • getModelData

      public IModelData getModelData()
      Description copied from interface: IForgeTileEntity
      Allows you to return additional model data. This data can be used to provide additional functionality in your IBakedModel You need to schedule a refresh of you model data via IForgeTileEntity.requestModelDataUpdate() if the result of this function changes. Note that this method may be called on a chunk render thread instead of the main client thread
      Returns:
      Your model data
    • getUpdateTag

      public CompoundNBT getUpdateTag()
      Overrides:
      getUpdateTag in class TileEntity
    • handleUpdateTag

      public void handleUpdateTag(BlockState state, CompoundNBT tag)
      Description copied from interface: IForgeTileEntity
      Called when the chunk's TE update tag, gotten from #getUpdateTag(), is received on the client.

      Used to handle this tag in a special way. By default this simply calls #readFromNBT(NBTTagCompound).

      tag - The NBTTagCompound sent from #getUpdateTag()
    • getUpdatePacket

      public SUpdateTileEntityPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class TileEntity
    • onDataPacket

      public void onDataPacket(NetworkManager net, SUpdateTileEntityPacket pkt)
      Description copied from interface: IForgeTileEntity
      Called when you receive a TileEntityData packet for the location this TileEntity is currently in. On the client, the NetworkManager will always be the remote server. On the server, it will be whomever is responsible for sending the packet.
      Parameters:
      net - The NetworkManager the packet originated from
      pkt - The data packet
    • load

      public void load(BlockState state, CompoundNBT tag)
      Overrides:
      load in class TileEntity
    • save

      public CompoundNBT save(CompoundNBT tag)
      Overrides:
      save in class TileEntity