Package net.minecraftforge.debug.block
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IModelDataprivate Blockstatic final ModelProperty<Block>Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllows you to return additional model data.getPlant()voidhandleUpdateTag(BlockState state, CompoundNBT tag) Called when the chunk's TE update tag, gotten from#getUpdateTag(), is received on the client.voidload(BlockState state, CompoundNBT tag) voidCalled when you receive a TileEntityData packet for the location this TileEntity is currently in.save(CompoundNBT tag) voidMethods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getRenderBoundingBox, getTileEntity, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
PLANT_PROPERTY
-
modelData
-
plant
-
-
Constructor Details
-
DioriteFlowerPotTileEntity
public DioriteFlowerPotTileEntity()
-
-
Method Details
-
setPlant
-
getPlant
-
getModelData
Description copied from interface:IForgeTileEntityAllows you to return additional model data. This data can be used to provide additional functionality in yourIBakedModelYou need to schedule a refresh of you model data viaIForgeTileEntity.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
- Overrides:
getUpdateTagin classTileEntity
-
handleUpdateTag
Description copied from interface:IForgeTileEntityCalled 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- TheNBTTagCompoundsent from#getUpdateTag()
-
getUpdatePacket
- Overrides:
getUpdatePacketin classTileEntity
-
onDataPacket
Description copied from interface:IForgeTileEntityCalled 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 frompkt- The data packet
-
load
- Overrides:
loadin classTileEntity
-
save
- Overrides:
savein classTileEntity
-