Class PluginKeyUtils

java.lang.Object
io.github.projectunified.minelib.util.key.PluginKeyUtils

public final class PluginKeyUtils extends Object
Methods to work with PluginKeyPair conveniently
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    copy(org.bukkit.persistence.PersistentDataContainer fromContainer, org.bukkit.persistence.PersistentDataContainer toContainer, PluginKeyPair<?>... keyPairs)
    Copy the PluginKeyPair from the source container to the target container
    static void
    copy(org.bukkit.persistence.PersistentDataHolder fromHolder, org.bukkit.persistence.PersistentDataHolder toHolder, PluginKeyPair<?>... keyPairs)
    Copy the PluginKeyPair from the source holder to the target holder
    static void
    remove(org.bukkit.persistence.PersistentDataContainer container, PluginKeyPair<?>... keyPairs)
    Remove the PluginKeyPair from the container
    static void
    remove(org.bukkit.persistence.PersistentDataHolder holder, PluginKeyPair<?>... keyPairs)
    Remove the PluginKeyPair from the holder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • copy

      public static void copy(org.bukkit.persistence.PersistentDataContainer fromContainer, org.bukkit.persistence.PersistentDataContainer toContainer, PluginKeyPair<?>... keyPairs)
      Copy the PluginKeyPair from the source container to the target container
      Parameters:
      fromContainer - the source container
      toContainer - the target container
      keyPairs - the key pairs
    • copy

      public static void copy(org.bukkit.persistence.PersistentDataHolder fromHolder, org.bukkit.persistence.PersistentDataHolder toHolder, PluginKeyPair<?>... keyPairs)
      Copy the PluginKeyPair from the source holder to the target holder
      Parameters:
      fromHolder - the source holder
      toHolder - the target holder
      keyPairs - the key pairs
    • remove

      public static void remove(org.bukkit.persistence.PersistentDataContainer container, PluginKeyPair<?>... keyPairs)
      Remove the PluginKeyPair from the container
      Parameters:
      container - the container
      keyPairs - the key pairs
    • remove

      public static void remove(org.bukkit.persistence.PersistentDataHolder holder, PluginKeyPair<?>... keyPairs)
      Remove the PluginKeyPair from the holder
      Parameters:
      holder - the holder
      keyPairs - the key pairs