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 pTextureGetter, ModelResourceLocation pModelLocation) -
Method Summary
Modifier and TypeMethodDescriptionbake(ResourceLocation pLocation, ModelState pTransform) bake(ResourceLocation pLocation, ModelState pTransform, Function<Material, TextureAtlasSprite> sprites) (package private) BakedModelbakeUncached(UnbakedModel pModel, ModelState pState) bakeUncached(UnbakedModel pModel, ModelState pState, Function<Material, TextureAtlasSprite> sprites) getModel(ResourceLocation pLocation) getTopLevelModel(ModelResourceLocation location)
-
Field Details
-
modelTextureGetter
-
-
Constructor Details
-
ModelBakerImpl
ModelBakerImpl(ModelBakery.TextureGetter pTextureGetter, ModelResourceLocation pModelLocation)
-
-
Method Details
-
getModel
- Specified by:
getModelin interfaceModelBaker
-
getTopLevelModel
- Specified by:
getTopLevelModelin interfaceIModelBakerExtension
-
getModelTextureGetter
- Specified by:
getModelTextureGetterin interfaceIModelBakerExtension
-
bake
- Specified by:
bakein interfaceModelBaker
-
bake
public BakedModel bake(ResourceLocation pLocation, ModelState pTransform, Function<Material, TextureAtlasSprite> sprites) - Specified by:
bakein interfaceIModelBakerExtension
-
bakeUncached
-
bakeUncached
@Nullable public BakedModel bakeUncached(UnbakedModel pModel, ModelState pState, Function<Material, TextureAtlasSprite> sprites) - Specified by:
bakeUncachedin interfaceIModelBakerExtension
-