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