Class ModelEvent.RegisterGeometryLoaders
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ModelEvent
net.neoforged.neoforge.client.event.ModelEvent.RegisterGeometryLoaders
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
- Enclosing class:
ModelEvent
public static class ModelEvent.RegisterGeometryLoaders
extends ModelEvent
implements net.neoforged.fml.event.IModBusEvent
Allows users to register their own
geometry loaders
for use in block/item models.
This event is not cancellable, and does not
.invalid reference
have a result
This event is fired on the mod-specific event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ModelEvent
ModelEvent.BakingCompleted, ModelEvent.ModifyBakingResult, ModelEvent.RegisterAdditional, ModelEvent.RegisterGeometryLoaders
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(ResourceLocation key, IGeometryLoader<?> loader) Registers a new geometry loader.
-
Field Details
-
loaders
-
-
Constructor Details
-
RegisterGeometryLoaders
-
-
Method Details
-
register
Registers a new geometry loader.- Parameters:
key
- the ID of the loaderloader
- the geometry loader to register
-