Package net.minecraftforge.debug.block
Class FullPotsAccessorDemo.DioriteFlowerPotBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraftforge.debug.block.FullPotsAccessorDemo.DioriteFlowerPotBlockEntity
- All Implemented Interfaces:
- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- Enclosing class:
- FullPotsAccessorDemo
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final IModelDataprivate Blockstatic final ModelProperty<Block>Fields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAllows you to return additional model data.getPlant()voidCalled when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(), is received on the client.voidload(CompoundTag tag) voidCalled when you receive a TileEntityData packet for the location this TileEntity is currently in.protected voidvoidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getRenderBoundingBox, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
PLANT_PROPERTY
- 
modelData
- 
plant
 
- 
- 
Constructor Details- 
DioriteFlowerPotBlockEntity
 
- 
- 
Method Details- 
setPlant
- 
getPlant
- 
getModelDataDescription copied from interface:IForgeBlockEntityAllows you to return additional model data. This data can be used to provide additional functionality in yourBakedModelYou need to schedule a refresh of you model data viaIForgeBlockEntity.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 class- BlockEntity
 
- 
handleUpdateTagDescription copied from interface:IForgeBlockEntityCalled when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(), is received on the client.Used to handle this tag in a special way. By default this simply calls BlockEntity.load(CompoundTag).- Parameters:
- tag- The- CompoundTagsent from- BlockEntity.getUpdateTag()
 
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
onDataPacketDescription copied from interface:IForgeBlockEntityCalled 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- Overrides:
- loadin class- BlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
 
-