Package net.orbyfied.j8.registry
Interface Identifiable
- All Known Implementing Classes:
Registry
public interface Identifiable
Indicates an item which can be
registered in an
Registry.
Provides a method to get the unique
identifier of the item.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the unique identifier of this registered/registrable item.default IdentifiableRegisters this object to the registry.
-
Method Details
-
getIdentifier
Identifier getIdentifier()Gets the unique identifier of this registered/registrable item. This should always be the same.- Returns:
- The identifier.
-
register
Registers this object to the registry.- Returns:
- This.
-