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, ModelResourceLocation modelLocation) -
Method Summary
Modifier and TypeMethodDescriptionbake(ResourceLocation location, ModelState transform) bake(ResourceLocation location, ModelState transform, Function<Material, TextureAtlasSprite> sprites) (package private) BakedModelbakeUncached(UnbakedModel model, ModelState state) bakeUncached(UnbakedModel model, ModelState state, Function<Material, TextureAtlasSprite> sprites) getModel(ResourceLocation location) getTopLevelModel(ModelResourceLocation location)
-
Field Details
-
modelTextureGetter
-
-
Constructor Details
-
ModelBakerImpl
ModelBakerImpl(ModelBakery.TextureGetter textureGetter, ModelResourceLocation modelLocation)
-
-
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 location, ModelState transform, Function<Material, TextureAtlasSprite> sprites) - Specified by:
bakein interfaceIModelBakerExtension
-
bakeUncached
-
bakeUncached
@Nullable public BakedModel bakeUncached(UnbakedModel model, ModelState state, Function<Material, TextureAtlasSprite> sprites) - Specified by:
bakeUncachedin interfaceIModelBakerExtension
-