Registry

Properties

Link copied to clipboard
public final static StaffHandler.Registry INSTANCE

Inherited properties

Link copied to clipboard
private final Set<Identifier> keys

Gets all the registered keys in this registry.

Functions

Link copied to clipboard
public final Boolean contains(Item key)

Checks if the given key is present in the registry

Link copied to clipboard
public final StaffHandler get(Item key)

Gets the value associated with the given key or throws an exception, if the key is not present in this registry.

Link copied to clipboard
public final Unit register(Item key, StaffHandler value)

Registers an entry to this registry.

Inherited functions

Link copied to clipboard
public final Boolean contains(Identifier key)

Checks if the given key is present in the registry

Link copied to clipboard
Link copied to clipboard
public final StaffHandler get(Identifier key)

Gets the value associated with the given key or throws an exception, if the key is not present in this registry.

Link copied to clipboard
public final Set<Identifier> getKeys()
Link copied to clipboard
Link copied to clipboard
public Unit register(Identifier key, StaffHandler value)

Registers an entry to this registry.

Link copied to clipboard
Link copied to clipboard

Validates an entry to be registered. Throws an exception, if the entry is invalid.