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 aRegistryEntryAddEventfor the new entry.- Parameters:
key- the entry's key (must be unique from others)value- a consumer for the entry's builder
-
registerWith
Register a new value with the specified key. This will fire aRegistryEntryAddEventfor the new entry. TheRegistryBuilderFactorylets you pre-fill a builder with an already-existing entry's properties.- Parameters:
key- the entry's key (must be unique from others)value- a consumer of a builder factory
-