Class PersistentQuantumStorageType
java.lang.Object
io.github.sefiraat.networks.utils.datatypes.PersistentQuantumStorageType
- All Implemented Interfaces:
PersistentDataType<PersistentDataContainer,QuantumCache>
public class PersistentQuantumStorageType
extends Object
implements PersistentDataType<PersistentDataContainer,QuantumCache>
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,QuantumCache> 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(QuantumCache complex, PersistentDataAdapterContext context)
-
Field Details
-
TYPE
-
ITEM
-
AMOUNT
-
MAX_AMOUNT
-
VOID
-
-
Constructor Details
-
PersistentQuantumStorageType
public PersistentQuantumStorageType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfacePersistentDataType<PersistentDataContainer,QuantumCache>
-
getComplexType
- Specified by:
getComplexTypein interfacePersistentDataType<PersistentDataContainer,QuantumCache>
-
toPrimitive
@Nonnull public PersistentDataContainer toPrimitive(@Nonnull QuantumCache complex, @Nonnull PersistentDataAdapterContext context) - Specified by:
toPrimitivein interfacePersistentDataType<PersistentDataContainer,QuantumCache>
-
fromPrimitive
@Nonnull public QuantumCache fromPrimitive(@Nonnull PersistentDataContainer primitive, @Nonnull PersistentDataAdapterContext context) - Specified by:
fromPrimitivein interfacePersistentDataType<PersistentDataContainer,QuantumCache>
-