类 FullPotsAccessorDemo.DioriteFlowerPotBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.neoforged.neoforge.oldtest.block.FullPotsAccessorDemo.DioriteFlowerPotBlockEntity
- 所有已实现的接口:
IAttachmentHolder
,IBlockEntityExtension
- 封闭类:
FullPotsAccessorDemo
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
字段概要
字段从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Allows you to return additional model data.getPlant()
getUpdateTag
(HolderLookup.Provider holderLookup) void
handleUpdateTag
(ValueInput input) Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(HolderLookup.Provider)
, is received on the client.void
loadAdditional
(ValueInput input) void
onDataPacket
(Connection net, ValueInput input) Called when you receive a TileEntityData packet for the location this TileEntity is currently in.protected void
saveAdditional
(ValueOutput output) void
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
-
字段详细资料
-
PLANT_PROPERTY
-
modelData
-
plant
-
-
构造器详细资料
-
DioriteFlowerPotBlockEntity
-
-
方法详细资料
-
setPlant
-
getPlant
-
getModelData
从接口复制的说明:IBlockEntityExtension
Allows you to return additional model data. This data can be used to provide additional functionality in yourBlockStateModel
. You need to schedule a refresh of you model data viaIBlockEntityExtension.requestModelDataUpdate()
if the result of this function changes.This method is always called on the main client thread.
- 返回:
- Your model data
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
handleUpdateTag
从接口复制的说明:IBlockEntityExtension
Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(HolderLookup.Provider)
, is received on the client.Used to handle this tag in a special way. By default, this simply calls
BlockEntity.loadWithComponents(ValueInput)
.- 参数:
input
- The data sent fromBlockEntity.getUpdateTag(HolderLookup.Provider)
-
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
onDataPacket
从接口复制的说明:IBlockEntityExtension
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.- 参数:
net
- TheConnection
the packet originated frominput
- TheValueInput
to read the packet data from
-
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-