Package hiiragi283.core.common.registry
Class HTDeferredAttachmentType
-
- All Implemented Interfaces:
-
hiiragi283.core.api.registry.HTHolderLike,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,java.util.function.Supplier
public final class HTDeferredAttachmentType<TYPE extends Object> implements HTHolderLike<AttachmentType<?>, AttachmentType<TYPE>>
-
-
Constructor Summary
Constructors Constructor Description HTDeferredAttachmentType(ResourceKey<AttachmentType<?>> key)HTDeferredAttachmentType(ResourceLocation id)
-
Method Summary
Modifier and Type Method Description ResourceKey<AttachmentType<?>>getResourceKey()保持しているResourceKeyを返します。 AttachmentType<TYPE>get()final BooleanhasData(IAttachmentHolder holder)final TYPEgetData(IAttachmentHolder holder)final TYPEgetExistingData(IAttachmentHolder holder)final TYPEsetData(IAttachmentHolder holder, TYPE data)final TYPEremoveData(IAttachmentHolder holder)-
Methods inherited from class hiiragi283.core.api.resource.HTKeyLike
getId, isOf, isOf -
Methods inherited from class hiiragi283.core.api.resource.HTIdLike
getNamespace, getPath -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getResourceKey
ResourceKey<AttachmentType<?>> getResourceKey()
保持しているResourceKeyを返します。
-
getExistingData
final TYPE getExistingData(IAttachmentHolder holder)
-
removeData
final TYPE removeData(IAttachmentHolder holder)
-
-
-
-