Type Parameters:
B - The type of baked model provider.
All Known Implementing Classes:
AspectVariableModelProvider, SingleVariableModelProvider, ValueTypeVariableModelProvider

public interface IVariableModelProvider<B extends IVariableModelProvider.BakedModelProvider>
A provider of variable overlay models.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Provider for baked models.
  • Method Summary

    Modifier and Type
    Method
    Description
    bakeOverlayModels(net.minecraft.client.resources.model.ModelBaker modelBaker, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState transform, net.minecraft.resources.ResourceLocation location)
    Load the models for this provider.
    Collection<net.minecraft.resources.ResourceLocation>
     
    void
    loadModels(List<net.minecraft.resources.ResourceLocation> subModels)
    Load all required models for this model provider into the given model loader.
  • Method Details

    • bakeOverlayModels

      B bakeOverlayModels(net.minecraft.client.resources.model.ModelBaker modelBaker, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState transform, net.minecraft.resources.ResourceLocation location)
      Load the models for this provider.
      Parameters:
      modelBaker - The model state.
      spriteGetter - The texture retriever.
      transform - The model transformation.
      location - The model location.
      Returns:
      The baked moderl provider.
    • getDependencies

      Collection<net.minecraft.resources.ResourceLocation> getDependencies()
      Returns:
      All models this provider depends on and should thus be loaded.
    • loadModels

      void loadModels(List<net.minecraft.resources.ResourceLocation> subModels)
      Load all required models for this model provider into the given model loader.
      Parameters:
      subModels - The list of sub models that can be appended to, which will be registered afterwards.