Package net.minecraftforge.client.event
Class ModelBakeEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.ModelBakeEvent
-
- All Implemented Interfaces:
IModBusEvent
public class ModelBakeEvent extends net.minecraftforge.eventbus.api.Event implements IModBusEvent
Fired when the ModelManager is notified of the resource manager reloading. Called after model registry is setup, but before it's passed to BlockModelShapes.
-
-
Field Summary
Fields Modifier and Type Field Description private ModelLoader
modelLoader
private ModelManager
modelManager
private java.util.Map<ResourceLocation,IBakedModel>
modelRegistry
-
Constructor Summary
Constructors Constructor Description ModelBakeEvent(ModelManager modelManager, java.util.Map<ResourceLocation,IBakedModel> modelRegistry, ModelLoader modelLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelLoader
getModelLoader()
ModelManager
getModelManager()
java.util.Map<ResourceLocation,IBakedModel>
getModelRegistry()
-
-
-
Field Detail
-
modelManager
private final ModelManager modelManager
-
modelRegistry
private final java.util.Map<ResourceLocation,IBakedModel> modelRegistry
-
modelLoader
private final ModelLoader modelLoader
-
-
Constructor Detail
-
ModelBakeEvent
public ModelBakeEvent(ModelManager modelManager, java.util.Map<ResourceLocation,IBakedModel> modelRegistry, ModelLoader modelLoader)
-
-
Method Detail
-
getModelManager
public ModelManager getModelManager()
-
getModelRegistry
public java.util.Map<ResourceLocation,IBakedModel> getModelRegistry()
-
getModelLoader
public ModelLoader getModelLoader()
-
-