Class HTResourceFactory.DataComponent
-
- All Implemented Interfaces:
public abstract class HTResourceFactory.DataComponent<TYPE extends Object, STACK extends Object, RESOURCE extends HTResourceType.DataComponent<TYPE>> extends HTResourceFactory<TYPE, STACK, RESOURCE>
HTResourceType.DataComponentに対応したHTResourceFactoryの拡張インターフェースです。
- Since:
0.7.0
Hiiragi Tsubasa
-
-
Constructor Summary
Constructors Constructor Description HTResourceFactory.DataComponent()
-
Method Summary
Modifier and Type Method Description abstract RESOURCEcreate(TYPE type, DataComponentPatch patch)指定したtypeとpatchからRESOURCEを作成します。 final RESOURCEcreate(Holder<TYPE> holder, DataComponentPatch patch)指定したholderとpatchからRESOURCEを作成します。 final RESOURCEcreateOrThrow(TYPE type, DataComponentPatch patch)指定したtypeとpatchからRESOURCEを作成します。 RESOURCEfromType(TYPE type)指定したtypeからRESOURCEを作成します。 -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceFactory
createStack, fromHolder, fromHolderOrThrow, fromStack, fromStackOrThrow, fromTypeOrThrow, getDefaultAmount -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-