public class ModelBakingContextImpl extends java.lang.Object implements ModelBakingContext
| Constructor and Description |
|---|
ModelBakingContextImpl(java.util.function.Function<net.minecraft.util.ResourceLocation,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter,
net.minecraftforge.common.model.IModelState modelState,
net.minecraft.util.ResourceLocation modelIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
ModelInstance<?> |
getModel(net.minecraft.util.ResourceLocation identifier)
Gets the model corresponding to the given identifier.
|
net.minecraft.util.ResourceLocation |
getModelIdentifier() |
net.minecraft.client.renderer.texture.TextureAtlasSprite |
getTexture(net.minecraft.util.ResourceLocation atlas,
net.minecraft.util.ResourceLocation texture)
Gets the sprite for the given atlas and texture.
|
net.minecraft.client.renderer.texture.TextureAtlasSprite |
getTexture(SpriteIdentifier identifier)
Gets the sprite for the given material.
|
net.minecraftforge.common.model.IModelState |
getTransformation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockTexturepublic ModelBakingContextImpl(java.util.function.Function<net.minecraft.util.ResourceLocation,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter,
net.minecraftforge.common.model.IModelState modelState,
net.minecraft.util.ResourceLocation modelIdentifier)
public net.minecraft.client.renderer.texture.TextureAtlasSprite getTexture(SpriteIdentifier identifier)
ModelBakingContextgetTexture in interface ModelBakingContextidentifier - identifier for the spritepublic net.minecraft.client.renderer.texture.TextureAtlasSprite getTexture(net.minecraft.util.ResourceLocation atlas,
net.minecraft.util.ResourceLocation texture)
ModelBakingContextgetTexture in interface ModelBakingContextatlas - atlas which the texture is stitched totexture - texture identifierpublic net.minecraftforge.common.model.IModelState getTransformation()
getTransformation in interface ModelBakingContextpublic net.minecraft.util.ResourceLocation getModelIdentifier()
getModelIdentifier in interface ModelBakingContextpublic ModelInstance<?> getModel(net.minecraft.util.ResourceLocation identifier)
ModelBakingContextModelType.getModelDependencies(Object) may be requested.getModel in interface ModelBakingContextidentifier - identifier for the model