Interface ModelBakingContext
- All Known Implementing Classes:
ModelBakingContextImpl
public interface ModelBakingContext
Created 27/04/2023 by SuperMartijn642
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.client.renderer.texture.TextureAtlasSpritegetBlockTexture(net.minecraft.resources.ResourceLocation texture) Gets the sprite for the given texture on the block atlas.@Nullable ModelInstance<?>getModel(net.minecraft.resources.ResourceLocation identifier) Gets the model corresponding to the given identifier.net.minecraft.client.resources.model.ModelBakerynet.minecraft.resources.ResourceLocationnet.minecraft.client.renderer.texture.TextureAtlasSpritegetTexture(SpriteIdentifier identifier) Gets the sprite for the given material.default net.minecraft.client.renderer.texture.TextureAtlasSpritegetTexture(net.minecraft.resources.ResourceLocation atlas, net.minecraft.resources.ResourceLocation texture) Gets the sprite for the given atlas and texture.net.minecraft.client.resources.model.ModelState
-
Method Details
-
getModelBakery
net.minecraft.client.resources.model.ModelBakery getModelBakery()- Returns:
- the model bakery
-
getTexture
Gets the sprite for the given material.- Parameters:
identifier- identifier for the sprite
-
getTexture
default net.minecraft.client.renderer.texture.TextureAtlasSprite getTexture(net.minecraft.resources.ResourceLocation atlas, net.minecraft.resources.ResourceLocation texture) Gets the sprite for the given atlas and texture.- Parameters:
atlas- atlas which the texture is stitched totexture- texture identifier
-
getBlockTexture
default net.minecraft.client.renderer.texture.TextureAtlasSprite getBlockTexture(net.minecraft.resources.ResourceLocation texture) Gets the sprite for the given texture on the block atlas.- Parameters:
texture- texture identifier
-
getTransformation
net.minecraft.client.resources.model.ModelState getTransformation()- Returns:
- the transformations which should be applied to the model
-
getModelIdentifier
net.minecraft.resources.ResourceLocation getModelIdentifier()- Returns:
- the identifier of the model.
-
getModel
Gets the model corresponding to the given identifier. Only models which were returned fromModelType.getModelDependencies(Object)may be requested.- Parameters:
identifier- identifier for the model
-