Interface ModelBakingContext

All Known Implementing Classes:
ModelBakingContextImpl

public interface ModelBakingContext
Created 27/04/2023 by SuperMartijn642
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.client.renderer.texture.TextureAtlasSprite
    getBlockTexture(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.ModelBakery
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    Gets the sprite for the given material.
    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.
    net.minecraft.client.resources.model.ModelState
     
  • Method Details

    • getModelBakery

      net.minecraft.client.resources.model.ModelBakery getModelBakery()
      Returns:
      the model bakery
    • getTexture

      net.minecraft.client.renderer.texture.TextureAtlasSprite getTexture(SpriteIdentifier identifier)
      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 to
      texture - 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

      @Nullable @Nullable ModelInstance<?> getModel(net.minecraft.resources.ResourceLocation identifier)
      Gets the model corresponding to the given identifier. Only models which were returned from ModelType.getModelDependencies(Object) may be requested.
      Parameters:
      identifier - identifier for the model