Class KeyHolder<T>
java.lang.Object
net.mathias2246.buildmc.util.registry.KeyHolder<T>
- Type Parameters:
T- The type of the value of thisKeyHolder
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed
A Helper class for storing an object instance with a
NamespacedKey as identifier.
This object can then be used for storing a non-Keyed object instance inside a Registry.
- See Also:
-
Constructor Details
-
Method Details
-
getValue
Gets the stored object -
getKey
@Contract(pure=true) @NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-