Class KeyHolder<T>
java.lang.Object
net.mathias2246.buildmc.util.registry.KeyHolder<T>
- All Implemented Interfaces:
org.bukkit.Keyed
A Helper class for storing an object instance with a
NamespacedKey.
This object can then be used for storing a non-Keyed instance inside a Registry.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KeyHolder
-
-
Method Details
-
getValue
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-