Package net.minecraftforge.client.event
Class ModelEvent.ModifyBakingResult
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ModelEvent
net.minecraftforge.client.event.ModelEvent.ModifyBakingResult
- All Implemented Interfaces:
IModBusEvent
- Enclosing class:
ModelEvent
Fired while the
ModelManager
is reloading models, after the model registry is set up, but before it's
passed to the BlockModelShaper
for caching.
This event is fired from a worker thread and it is therefore not safe to access anything outside the
model registry and ModelBakery
provided in this event.
The ModelManager
firing this event is not fully set up with the latest data when this event fires and
must therefore not be accessed in this event.
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 Map
<ModelResourceLocation, BakedModel> -
Constructor Summary
ConstructorDescriptionModifyBakingResult
(Map<ModelResourceLocation, 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
-
models
-
modelBakery
-
-
Constructor Details
-
ModifyBakingResult
@Internal public ModifyBakingResult(Map<ModelResourceLocation, BakedModel> models, ModelBakery modelBakery)
-
-
Method Details
-
getModels
- Returns:
- the modifiable registry map of models and their model names
-
getModelBakery
- Returns:
- the model loader
-