类 AttachmentHolder.AsField
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField
- 所有已实现的接口:
IAttachmentHolder
- 封闭类:
AttachmentHolder
Version of the
AttachmentHolder
that is suitable for storing in a field.
To be used when extending AttachmentHolder
is not possible,
for example because the class already has a supertype.-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
字段概要
字段从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
attachments, ATTACHMENTS_NBT_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
deserializeInternal
(HolderLookup.Provider provider, ValueInput tag) (专用程序包) IAttachmentHolder
Returns the attachment holder that is exposed to the user.从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getAttachmentMap, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments, setData
从类继承的方法 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
-
字段详细资料
-
exposedHolder
-
-
构造器详细资料
-
AsField
-
-
方法详细资料
-
getExposedHolder
IAttachmentHolder getExposedHolder()从类复制的说明:AttachmentHolder
Returns the attachment holder that is exposed to the user. This is the same asthis
for most cases, but when usingAttachmentHolder.AsField
it is the field holder.- 覆盖:
getExposedHolder
在类中AttachmentHolder
-
deserializeInternal
-