Package net.minecraftforge.client.event
Class ModelEvent.BakingCompleted
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ModelEvent
net.minecraftforge.client.event.ModelEvent.BakingCompleted
- All Implemented Interfaces:
IModBusEvent
- Enclosing class:
ModelEvent
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, and does not 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.minecraftforge.client.event.ModelEvent
ModelEvent.BakingCompleted, ModelEvent.ModifyBakingResult, ModelEvent.RegisterAdditional, ModelEvent.RegisterGeometryLoaders
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ModelBakery
private final ModelManager
private final Map
<ResourceLocation, BakedModel> -
Constructor Summary
ConstructorDescriptionBakingCompleted
(ModelManager modelManager, Map<ResourceLocation, BakedModel> models, ModelBakery modelBakery) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
modelManager
-
models
-
modelBakery
-
-
Constructor Details
-
BakingCompleted
@Internal public BakingCompleted(ModelManager modelManager, Map<ResourceLocation, BakedModel> models, ModelBakery modelBakery)
-
-
Method Details
-
getModelManager
- Returns:
- the model manager
-
getModels
- Returns:
- an unmodifiable view of the registry map of models and their model names
-
getModelBakery
- Returns:
- the model loader
-