Class FakePersistentDataContainer
java.lang.Object
com.janboerman.invsee.spigot.internal.FakePersistentDataContainer
- All Implemented Interfaces:
io.papermc.paper.persistence.PersistentDataContainerView, PersistentDataContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyTo(@NotNull PersistentDataContainer persistentDataContainer, boolean replace) boolean<T,Z> Z get(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType) getKeys()<T,Z> Z getOrDefault(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType, Z z) booleanhas(@NotNull NamespacedKey namespacedKey) <T,Z> boolean has(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType) inthashCode()booleanisEmpty()voidreadFromBytes(byte @NotNull [] bytes) voidreadFromBytes(byte @NotNull [] bytes, boolean b) voidremove(NamespacedKey namespacedKey) byte @NotNull []<T,Z> void set(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType, Z z)
-
Constructor Details
-
FakePersistentDataContainer
public FakePersistentDataContainer()
-
-
Method Details
-
set
- Specified by:
setin interfacePersistentDataContainer
-
has
- Specified by:
hasin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
has
- Specified by:
hasin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
get
- Specified by:
getin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
getOrDefault
public <T,Z> Z getOrDefault(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType, Z z) - Specified by:
getOrDefaultin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
getKeys
- Specified by:
getKeysin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
remove
- Specified by:
removein interfacePersistentDataContainer
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
copyTo
public void copyTo(@NotNull @NotNull PersistentDataContainer persistentDataContainer, boolean replace) - Specified by:
copyToin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
getAdapterContext
- Specified by:
getAdapterContextin interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
hashCode
-
equals
-
serializeToBytes
- Specified by:
serializeToBytesin interfaceio.papermc.paper.persistence.PersistentDataContainerView- Throws:
IOException
-
readFromBytes
- Specified by:
readFromBytesin interfacePersistentDataContainer- Throws:
IOException
-
readFromBytes
- Specified by:
readFromBytesin interfacePersistentDataContainer- Throws:
IOException
-