Class ModelBakery.ModelBakerImpl
java.lang.Object
net.minecraft.client.resources.model.ModelBakery.ModelBakerImpl
- All Implemented Interfaces:
ModelBaker,IModelBakerExtension
- Enclosing class:
ModelBakery
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelBakerImpl(ModelBakery.TextureGetter textureGetter, ModelDebugName rootName) -
Method Summary
Modifier and TypeMethodDescriptionbake(ResourceLocation p_252176_, ModelState p_249765_) getModel(ResourceLocation name) Gets the unbaked model for the given location.rootName()sprites()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IModelBakerExtension
findSprite, self
-
Field Details
-
rootName
-
modelTextureGetter
-
-
Constructor Details
-
ModelBakerImpl
ModelBakerImpl(ModelBakery.TextureGetter textureGetter, ModelDebugName rootName)
-
-
Method Details
-
sprites
- Specified by:
spritesin interfaceModelBaker
-
getModel
Description copied from interface:IModelBakerExtensionGets the unbaked model for the given location.- Specified by:
getModelin interfaceIModelBakerExtension- Parameters:
name- The location of the model- Returns:
- The unbaked model, or null if not found
-
bake
- Specified by:
bakein interfaceModelBaker
-
rootName
- Specified by:
rootNamein interfaceModelBaker
-