Class PersistentDataContainerViewMock
java.lang.Object
org.mockbukkit.mockbukkit.persistence.PersistentDataContainerViewMock
- All Implemented Interfaces:
PersistentDataContainerView
public abstract class PersistentDataContainerViewMock
extends Object
implements PersistentDataContainerView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyTo(PersistentDataContainer other, boolean replace) <T,Z> Z getOrDefault(NamespacedKey key, PersistentDataType<T, Z> type, Z defaultValue) booleanhas(NamespacedKey key) <T,Z> boolean has(NamespacedKey key, PersistentDataType<T, Z> type) booleanisEmpty()byte[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.papermc.paper.persistence.PersistentDataContainerView
get, getKeys
-
Constructor Details
-
PersistentDataContainerViewMock
public PersistentDataContainerViewMock()
-
-
Method Details
-
has
- Specified by:
hasin interfacePersistentDataContainerView
-
has
- Specified by:
hasin interfacePersistentDataContainerView
-
getOrDefault
- Specified by:
getOrDefaultin interfacePersistentDataContainerView
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePersistentDataContainerView
-
getAdapterContext
- Specified by:
getAdapterContextin interfacePersistentDataContainerView
-
copyTo
- Specified by:
copyToin interfacePersistentDataContainerView
-
serializeToBytes
- Specified by:
serializeToBytesin interfacePersistentDataContainerView- Throws:
IOException
-