Interface ClearCallback<T>
- All Superinterfaces:
RegistryCallback<T>
- All Known Implementing Classes:
NeoForgeRegistryCallbacks.BlockCallbacks
,NeoForgeRegistryCallbacks.ItemCallbacks
,NeoForgeRegistryCallbacks.PoiTypeCallbacks
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Fired when the registry is cleared.
This is done before a registry is reloaded from client or server.
-
Method Summary
-
Method Details
-
onClear
Called when the registry is cleared before anything is done to the registry.- Parameters:
registry
- the registryfull
- iftrue
, all entries in the registry will be cleared. iffalse
, only integer IDs in the registry will be cleared.
-