Class FullPotsAccessorDemo.DioriteFlowerPotTileEntity

    • Constructor Detail

      • DioriteFlowerPotTileEntity

        public DioriteFlowerPotTileEntity()
    • Method Detail

      • 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
      • 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()
      • 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