Package io.papermc.paper.registry.event
Interface WritableRegistry<T,B extends RegistryBuilder<T>>
- Type Parameters:
T
- registry entry typeB
- registry entry builder type
A registry which supports registering new objects.
-
Method Summary
-
Method Details
-
register
Register a new value with the specified key. This will fire aRegistryEntryAddEvent
for the new entry.- Parameters:
key
- the entry's key (must be unique from others)value
- a consumer for the entry's builder
-