类 BlockPropertyTests.LightBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.neoforged.neoforge.debug.block.BlockPropertyTests.LightBlockEntity
- 所有已实现的接口:
IAttachmentHolder
,IBlockEntityExtension
- 封闭类:
BlockPropertyTests
-
嵌套类概要
从类继承的嵌套类/接口 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getUpdateTag
(HolderLookup.Provider holderLookup) void
loadAdditional
(ValueInput valueInput) void
onDataPacket
(Connection net, ValueInput valueInput) Called when you receive a TileEntityData packet for the location this TileEntity is currently in.protected void
saveAdditional
(ValueOutput valueOutput) private void
setLit
(boolean lit) 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
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
-
字段详细资料
-
lit
private boolean lit
-
-
构造器详细资料
-
LightBlockEntity
-
-
方法详细资料
-
switchLight
public void switchLight() -
setLit
private void setLit(boolean lit) -
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 fromvalueInput
- TheValueInput
to read the packet data from
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-