Registry

@Environment(value = EnvType.CLIENT)
public class Registry extends RegistryBase<Identifier, StaffItemRenderer>(source)

Properties

Link copied to clipboard

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 StaffItemRenderer 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, StaffItemRenderer 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 StaffItemRenderer 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

Registers an entry to this registry.

Link copied to clipboard

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