Class ModelEvent.RegisterAdditional
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ModelEvent
net.neoforged.neoforge.client.event.ModelEvent.RegisterAdditional
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
- Enclosing class:
ModelEvent
public static class ModelEvent.RegisterAdditional
extends ModelEvent
implements net.neoforged.fml.event.IModBusEvent
Fired when the
ModelBakery
is notified of the resource manager reloading.
Allows developers to register models to be loaded, along with their dependencies. Models registered through this
event must use the ModelResourceLocation.STANDALONE_VARIANT
variant.
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
(ModelResourceLocation model) Registers a model to be loaded, along with its dependencies.
-
Field Details
-
models
-
-
Constructor Details
-
RegisterAdditional
-
-
Method Details
-
register
Registers a model to be loaded, along with its dependencies.The
ModelResourceLocation
passed to this method must later be used to recover the loaded model.
-