Class FakePersistentDataContainer

java.lang.Object
com.janboerman.invsee.spigot.internal.FakePersistentDataContainer
All Implemented Interfaces:
io.papermc.paper.persistence.PersistentDataContainerView, PersistentDataContainer

public class FakePersistentDataContainer extends Object implements PersistentDataContainer
  • 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 interface PersistentDataContainer
    • has

      public <T, Z> boolean has(NamespacedKey namespacedKey, PersistentDataType<T,Z> persistentDataType)
      Specified by:
      has in interface io.papermc.paper.persistence.PersistentDataContainerView
    • has

      public boolean has(@NotNull @NotNull NamespacedKey namespacedKey)
      Specified by:
      has in interface io.papermc.paper.persistence.PersistentDataContainerView
    • get

      public <T, Z> Z get(NamespacedKey namespacedKey, PersistentDataType<T,Z> persistentDataType)
      Specified by:
      get in interface io.papermc.paper.persistence.PersistentDataContainerView
    • getOrDefault

      public <T, Z> Z getOrDefault(NamespacedKey namespacedKey, PersistentDataType<T,Z> persistentDataType, Z z)
      Specified by:
      getOrDefault in interface io.papermc.paper.persistence.PersistentDataContainerView
    • getKeys

      public Set<NamespacedKey> getKeys()
      Specified by:
      getKeys in interface io.papermc.paper.persistence.PersistentDataContainerView
    • remove

      public void remove(NamespacedKey namespacedKey)
      Specified by:
      remove in interface PersistentDataContainer
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface io.papermc.paper.persistence.PersistentDataContainerView
    • copyTo

      public void copyTo(@NotNull @NotNull PersistentDataContainer persistentDataContainer, boolean replace)
      Specified by:
      copyTo in interface io.papermc.paper.persistence.PersistentDataContainerView
    • getAdapterContext

      public PersistentDataAdapterContext getAdapterContext()
      Specified by:
      getAdapterContext in interface io.papermc.paper.persistence.PersistentDataContainerView
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • serializeToBytes

      public byte @NotNull [] serializeToBytes() throws IOException
      Specified by:
      serializeToBytes in interface io.papermc.paper.persistence.PersistentDataContainerView
      Throws:
      IOException
    • readFromBytes

      public void readFromBytes(byte @NotNull [] bytes, boolean b) throws IOException
      Specified by:
      readFromBytes in interface PersistentDataContainer
      Throws:
      IOException
    • readFromBytes

      public void readFromBytes(byte @NotNull [] bytes) throws IOException
      Specified by:
      readFromBytes in interface PersistentDataContainer
      Throws:
      IOException