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 p_352124_, ModelDebugName p_387467_) -
Method Summary
Modifier and TypeMethodDescriptionbake
(ResourceLocation p_252176_, ModelState p_249765_) getModel
(ResourceLocation p_248568_) 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, wait
Methods inherited from interface net.neoforged.neoforge.client.extensions.IModelBakerExtension
findSprite, self
-
Field Details
-
rootName
-
modelTextureGetter
-
-
Constructor Details
-
ModelBakerImpl
ModelBakerImpl(ModelBakery.TextureGetter p_352124_, ModelDebugName p_387467_)
-
-
Method Details
-
sprites
- Specified by:
sprites
in interfaceModelBaker
-
getModel
Description copied from interface:IModelBakerExtension
Gets the unbaked model for the given location.- Specified by:
getModel
in interfaceIModelBakerExtension
- Parameters:
p_248568_
- The location of the model- Returns:
- The unbaked model, or null if not found
-
bake
- Specified by:
bake
in interfaceModelBaker
-
rootName
- Specified by:
rootName
in interfaceModelBaker
-