Class ModelEvent.BakingCompleted
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ModelEvent
net.neoforged.neoforge.client.event.ModelEvent.BakingCompleted
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
- Enclosing class:
ModelEvent
public static class ModelEvent.BakingCompleted
extends ModelEvent
implements net.neoforged.fml.event.IModBusEvent
Fired when the
The model registry given by this event is unmodifiable. To modify the model registry, use
ModelManager
is notified of the resource manager reloading.
Called after the model registry is set up and cached in the BlockModelShaper
.The model registry given by this event is unmodifiable. To modify the model registry, use
ModelEvent.ModifyBakingResult
instead.
This event is not cancellable.
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.RegisterLoaders, ModelEvent.RegisterStandalone
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModelBakery.BakingResult
private final ModelBakery
private final ModelManager
-
Constructor Summary
ConstructorsConstructorDescriptionBakingCompleted
(ModelManager modelManager, ModelBakery.BakingResult bakingResult, ModelBakery modelBakery) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
modelManager
-
bakingResult
-
modelBakery
-
-
Constructor Details
-
BakingCompleted
@Internal public BakingCompleted(ModelManager modelManager, ModelBakery.BakingResult bakingResult, ModelBakery modelBakery)
-
-
Method Details
-
getModelManager
- Returns:
- the model manager
-
getBakingResult
- Returns:
- The result of the model baking
-
getModelBakery
- Returns:
- the model loader
-