Class PluginKeyUtils
java.lang.Object
io.github.projectunified.minelib.util.key.PluginKeyUtils
Methods to work with
PluginKeyPair
conveniently-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copy
(org.bukkit.persistence.PersistentDataContainer fromContainer, org.bukkit.persistence.PersistentDataContainer toContainer, PluginKeyPair<?>... keyPairs) Copy thePluginKeyPair
from the source container to the target containerstatic void
copy
(org.bukkit.persistence.PersistentDataHolder fromHolder, org.bukkit.persistence.PersistentDataHolder toHolder, PluginKeyPair<?>... keyPairs) Copy thePluginKeyPair
from the source holder to the target holderstatic void
remove
(org.bukkit.persistence.PersistentDataContainer container, PluginKeyPair<?>... keyPairs) Remove thePluginKeyPair
from the containerstatic void
remove
(org.bukkit.persistence.PersistentDataHolder holder, PluginKeyPair<?>... keyPairs) Remove thePluginKeyPair
from the holder
-
Method Details
-
copy
public static void copy(org.bukkit.persistence.PersistentDataContainer fromContainer, org.bukkit.persistence.PersistentDataContainer toContainer, PluginKeyPair<?>... keyPairs) Copy thePluginKeyPair
from the source container to the target container- Parameters:
fromContainer
- the source containertoContainer
- the target containerkeyPairs
- the key pairs
-
copy
public static void copy(org.bukkit.persistence.PersistentDataHolder fromHolder, org.bukkit.persistence.PersistentDataHolder toHolder, PluginKeyPair<?>... keyPairs) Copy thePluginKeyPair
from the source holder to the target holder- Parameters:
fromHolder
- the source holdertoHolder
- the target holderkeyPairs
- the key pairs
-
remove
public static void remove(org.bukkit.persistence.PersistentDataContainer container, PluginKeyPair<?>... keyPairs) Remove thePluginKeyPair
from the container- Parameters:
container
- the containerkeyPairs
- the key pairs
-
remove
public static void remove(org.bukkit.persistence.PersistentDataHolder holder, PluginKeyPair<?>... keyPairs) Remove thePluginKeyPair
from the holder- Parameters:
holder
- the holderkeyPairs
- the key pairs
-