Class FakePersistentDataContainer
java.lang.Object
com.janboerman.invsee.spigot.internal.FakePersistentDataContainer
- All Implemented Interfaces:
io.papermc.paper.persistence.PersistentDataContainerView
,PersistentDataContainer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyTo
(@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) boolean
has
(@NotNull NamespacedKey namespacedKey) <T,
Z> boolean has
(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType) int
hashCode()
boolean
isEmpty()
void
readFromBytes
(byte @NotNull [] bytes) void
readFromBytes
(byte @NotNull [] bytes, boolean b) void
remove
(NamespacedKey namespacedKey) byte @NotNull []
<T,
Z> void set
(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType, Z z)
-
Constructor Details
-
FakePersistentDataContainer
public FakePersistentDataContainer()
-
-
Method Details
-
set
public <T,Z> void set(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType, Z z) - Specified by:
set
in interfacePersistentDataContainer
-
has
- Specified by:
has
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
has
- Specified by:
has
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
get
- Specified by:
get
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
getOrDefault
public <T,Z> Z getOrDefault(NamespacedKey namespacedKey, PersistentDataType<T, Z> persistentDataType, Z z) - Specified by:
getOrDefault
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
getKeys
- Specified by:
getKeys
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
remove
- Specified by:
remove
in interfacePersistentDataContainer
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
copyTo
public void copyTo(@NotNull @NotNull PersistentDataContainer persistentDataContainer, boolean replace) - Specified by:
copyTo
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
getAdapterContext
- Specified by:
getAdapterContext
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
-
hashCode
-
equals
-
serializeToBytes
- Specified by:
serializeToBytes
in interfaceio.papermc.paper.persistence.PersistentDataContainerView
- Throws:
IOException
-
readFromBytes
- Specified by:
readFromBytes
in interfacePersistentDataContainer
- Throws:
IOException
-
readFromBytes
- Specified by:
readFromBytes
in interfacePersistentDataContainer
- Throws:
IOException
-