Class PersistentAmountInstanceType
java.lang.Object
io.github.sefiraat.networks.utils.datatypes.PersistentAmountInstanceType
- All Implemented Interfaces:
PersistentDataType<PersistentDataContainer,CardInstance>
public class PersistentAmountInstanceType
extends Object
implements PersistentDataType<PersistentDataContainer,CardInstance>
A
PersistentDataType for CardInstance
Creatively thieved from - Author:
- Sfiguz7, Walshy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType
PersistentDataType.PrimitivePersistentDataType<T extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamespacedKeystatic final NamespacedKeystatic final NamespacedKeystatic final PersistentDataType<PersistentDataContainer,CardInstance> static final NamespacedKeyFields inherited from interface org.bukkit.persistence.PersistentDataType
BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INTEGER, INTEGER_ARRAY, LONG, LONG_ARRAY, SHORT, STRING, TAG_CONTAINER, TAG_CONTAINER_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPrimitive(PersistentDataContainer primitive, PersistentDataAdapterContext context) toPrimitive(CardInstance complex, PersistentDataAdapterContext context)
-
Field Details
-
TYPE
-
ITEM
-
AMOUNT
-
LIMIT
-
UNSTACK
-
-
Constructor Details
-
PersistentAmountInstanceType
public PersistentAmountInstanceType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfacePersistentDataType<PersistentDataContainer,CardInstance>
-
getComplexType
- Specified by:
getComplexTypein interfacePersistentDataType<PersistentDataContainer,CardInstance>
-
toPrimitive
@Nonnull public PersistentDataContainer toPrimitive(@Nonnull CardInstance complex, @Nonnull PersistentDataAdapterContext context) - Specified by:
toPrimitivein interfacePersistentDataType<PersistentDataContainer,CardInstance>
-
fromPrimitive
@Nonnull public CardInstance fromPrimitive(@Nonnull PersistentDataContainer primitive, @Nonnull PersistentDataAdapterContext context) - Specified by:
fromPrimitivein interfacePersistentDataType<PersistentDataContainer,CardInstance>
-