Class ModelLoader

java.lang.Object
net.minecraft.client.render.model.ModelLoader

@Environment(CLIENT) public class ModelLoader extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/model/ModelLoader
intermediary net/minecraft/class_1088
official gss
  • Field Details

    • FIRE_0

      public static final SpriteIdentifier FIRE_0
      Mappings:
      Namespace Name Mixin selector
      named FIRE_0 Lnet/minecraft/client/render/model/ModelLoader;FIRE_0:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_5397 Lnet/minecraft/class_1088;field_5397:Lnet/minecraft/class_4730;
      official a Lgss;a:Lgsq;
    • FIRE_1

      public static final SpriteIdentifier FIRE_1
      Mappings:
      Namespace Name Mixin selector
      named FIRE_1 Lnet/minecraft/client/render/model/ModelLoader;FIRE_1:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_5370 Lnet/minecraft/class_1088;field_5370:Lnet/minecraft/class_4730;
      official b Lgss;b:Lgsq;
    • LAVA_FLOW

      public static final SpriteIdentifier LAVA_FLOW
      Mappings:
      Namespace Name Mixin selector
      named LAVA_FLOW Lnet/minecraft/client/render/model/ModelLoader;LAVA_FLOW:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_5381 Lnet/minecraft/class_1088;field_5381:Lnet/minecraft/class_4730;
      official c Lgss;c:Lgsq;
    • WATER_FLOW

      public static final SpriteIdentifier WATER_FLOW
      Mappings:
      Namespace Name Mixin selector
      named WATER_FLOW Lnet/minecraft/client/render/model/ModelLoader;WATER_FLOW:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_5391 Lnet/minecraft/class_1088;field_5391:Lnet/minecraft/class_4730;
      official d Lgss;d:Lgsq;
    • WATER_OVERLAY

      public static final SpriteIdentifier WATER_OVERLAY
      Mappings:
      Namespace Name Mixin selector
      named WATER_OVERLAY Lnet/minecraft/client/render/model/ModelLoader;WATER_OVERLAY:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_5388 Lnet/minecraft/class_1088;field_5388:Lnet/minecraft/class_4730;
      official e Lgss;e:Lgsq;
    • SHIELD_BASE

      public static final SpriteIdentifier SHIELD_BASE
      Mappings:
      Namespace Name Mixin selector
      named SHIELD_BASE Lnet/minecraft/client/render/model/ModelLoader;SHIELD_BASE:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_21557 Lnet/minecraft/class_1088;field_21557:Lnet/minecraft/class_4730;
      official g Lgss;g:Lgsq;
    • SHIELD_BASE_NO_PATTERN

      public static final SpriteIdentifier SHIELD_BASE_NO_PATTERN
      Mappings:
      Namespace Name Mixin selector
      named SHIELD_BASE_NO_PATTERN Lnet/minecraft/client/render/model/ModelLoader;SHIELD_BASE_NO_PATTERN:Lnet/minecraft/client/util/SpriteIdentifier;
      intermediary field_21558 Lnet/minecraft/class_1088;field_21558:Lnet/minecraft/class_4730;
      official h Lgss;h:Lgsq;
    • field_32983

      public static final int field_32983
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32983 Lnet/minecraft/client/render/model/ModelLoader;field_32983:I
      intermediary field_32983 Lnet/minecraft/class_1088;field_32983:I
      official i Lgss;i:I
    • BLOCK_DESTRUCTION_STAGES

      public static final List<Identifier> BLOCK_DESTRUCTION_STAGES
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_DESTRUCTION_STAGES Lnet/minecraft/client/render/model/ModelLoader;BLOCK_DESTRUCTION_STAGES:Ljava/util/List;
      intermediary field_20848 Lnet/minecraft/class_1088;field_20848:Ljava/util/List;
      official j Lgss;j:Ljava/util/List;
    • BLOCK_DESTRUCTION_STAGE_TEXTURES

      public static final List<Identifier> BLOCK_DESTRUCTION_STAGE_TEXTURES
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_DESTRUCTION_STAGE_TEXTURES Lnet/minecraft/client/render/model/ModelLoader;BLOCK_DESTRUCTION_STAGE_TEXTURES:Ljava/util/List;
      intermediary field_21020 Lnet/minecraft/class_1088;field_21020:Ljava/util/List;
      official k Lgss;k:Ljava/util/List;
    • BLOCK_DESTRUCTION_RENDER_LAYERS

      public static final List<RenderLayer> BLOCK_DESTRUCTION_RENDER_LAYERS
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_DESTRUCTION_RENDER_LAYERS Lnet/minecraft/client/render/model/ModelLoader;BLOCK_DESTRUCTION_RENDER_LAYERS:Ljava/util/List;
      intermediary field_21772 Lnet/minecraft/class_1088;field_21772:Ljava/util/List;
      official l Lgss;l:Ljava/util/List;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/model/ModelLoader;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5380 Lnet/minecraft/class_1088;field_5380:Lorg/slf4j/Logger;
      official s Lgss;s:Lorg/slf4j/Logger;
    • BUILTIN

      private static final String BUILTIN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BUILTIN Lnet/minecraft/client/render/model/ModelLoader;BUILTIN:Ljava/lang/String;
      intermediary field_32986 Lnet/minecraft/class_1088;field_32986:Ljava/lang/String;
      official t Lgss;t:Ljava/lang/String;
    • BUILTIN_GENERATED

      private static final String BUILTIN_GENERATED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BUILTIN_GENERATED Lnet/minecraft/client/render/model/ModelLoader;BUILTIN_GENERATED:Ljava/lang/String;
      intermediary field_32987 Lnet/minecraft/class_1088;field_32987:Ljava/lang/String;
      official u Lgss;u:Ljava/lang/String;
    • BUILTIN_ENTITY

      private static final String BUILTIN_ENTITY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BUILTIN_ENTITY Lnet/minecraft/client/render/model/ModelLoader;BUILTIN_ENTITY:Ljava/lang/String;
      intermediary field_32988 Lnet/minecraft/class_1088;field_32988:Ljava/lang/String;
      official v Lgss;v:Ljava/lang/String;
    • MISSING

      private static final String MISSING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MISSING Lnet/minecraft/client/render/model/ModelLoader;MISSING:Ljava/lang/String;
      intermediary field_32989 Lnet/minecraft/class_1088;field_32989:Ljava/lang/String;
      official w Lgss;w:Ljava/lang/String;
    • MISSING_ID

      public static final Identifier MISSING_ID
      Mappings:
      Namespace Name Mixin selector
      named MISSING_ID Lnet/minecraft/client/render/model/ModelLoader;MISSING_ID:Lnet/minecraft/util/Identifier;
      intermediary field_5374 Lnet/minecraft/class_1088;field_5374:Lnet/minecraft/class_2960;
      official m Lgss;m:Lakr;
    • MISSING_MODEL_ID

      public static final ModelIdentifier MISSING_MODEL_ID
      Mappings:
      Namespace Name Mixin selector
      named MISSING_MODEL_ID Lnet/minecraft/client/render/model/ModelLoader;MISSING_MODEL_ID:Lnet/minecraft/client/util/ModelIdentifier;
      intermediary field_52276 Lnet/minecraft/class_1088;field_52276:Lnet/minecraft/class_1091;
      official n Lgss;n:Lgsu;
    • MODELS_FINDER

      public static final ResourceFinder MODELS_FINDER
      Mappings:
      Namespace Name Mixin selector
      named MODELS_FINDER Lnet/minecraft/client/render/model/ModelLoader;MODELS_FINDER:Lnet/minecraft/resource/ResourceFinder;
      intermediary field_40570 Lnet/minecraft/class_1088;field_40570:Lnet/minecraft/class_7654;
      official o Lgss;o:Lakk;
    • MISSING_DEFINITION

      public static final String MISSING_DEFINITION
      Mappings:
      Namespace Name Mixin selector
      named MISSING_DEFINITION Lnet/minecraft/client/render/model/ModelLoader;MISSING_DEFINITION:Ljava/lang/String;
      intermediary field_5371 Lnet/minecraft/class_1088;field_5371:Ljava/lang/String;
      official p Lgss;p:Ljava/lang/String;
    • BUILTIN_MODEL_DEFINITIONS

      private static final Map<String,String> BUILTIN_MODEL_DEFINITIONS
      Mappings:
      Namespace Name Mixin selector
      named BUILTIN_MODEL_DEFINITIONS Lnet/minecraft/client/render/model/ModelLoader;BUILTIN_MODEL_DEFINITIONS:Ljava/util/Map;
      intermediary field_5396 Lnet/minecraft/class_1088;field_5396:Ljava/util/Map;
      official x Lgss;x:Ljava/util/Map;
    • GENERATION_MARKER

      public static final JsonUnbakedModel GENERATION_MARKER
      Mappings:
      Namespace Name Mixin selector
      named GENERATION_MARKER Lnet/minecraft/client/render/model/ModelLoader;GENERATION_MARKER:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary field_5400 Lnet/minecraft/class_1088;field_5400:Lnet/minecraft/class_793;
      official q Lgss;q:Lggb;
    • BLOCK_ENTITY_MARKER

      public static final JsonUnbakedModel BLOCK_ENTITY_MARKER
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_ENTITY_MARKER Lnet/minecraft/client/render/model/ModelLoader;BLOCK_ENTITY_MARKER:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary field_5389 Lnet/minecraft/class_1088;field_5389:Lnet/minecraft/class_793;
      official r Lgss;r:Lggb;
    • ITEM_MODEL_GENERATOR

      static final ItemModelGenerator ITEM_MODEL_GENERATOR
      Mappings:
      Namespace Name Mixin selector
      named ITEM_MODEL_GENERATOR Lnet/minecraft/client/render/model/ModelLoader;ITEM_MODEL_GENERATOR:Lnet/minecraft/client/render/model/json/ItemModelGenerator;
      intermediary field_5384 Lnet/minecraft/class_1088;field_5384:Lnet/minecraft/class_801;
      official y Lgss;y:Lgge;
    • jsonUnbakedModels

      private final Map<Identifier,JsonUnbakedModel> jsonUnbakedModels
      Mappings:
      Namespace Name Mixin selector
      named jsonUnbakedModels Lnet/minecraft/client/render/model/ModelLoader;jsonUnbakedModels:Ljava/util/Map;
      intermediary field_40567 Lnet/minecraft/class_1088;field_40567:Ljava/util/Map;
      official z Lgss;z:Ljava/util/Map;
    • modelsToLoad

      private final Set<Identifier> modelsToLoad
      Mappings:
      Namespace Name Mixin selector
      named modelsToLoad Lnet/minecraft/client/render/model/ModelLoader;modelsToLoad:Ljava/util/Set;
      intermediary field_5390 Lnet/minecraft/class_1088;field_5390:Ljava/util/Set;
      official A Lgss;A:Ljava/util/Set;
    • unbakedModels

      private final Map<Identifier,UnbakedModel> unbakedModels
      Mappings:
      Namespace Name Mixin selector
      named unbakedModels Lnet/minecraft/client/render/model/ModelLoader;unbakedModels:Ljava/util/Map;
      intermediary field_5376 Lnet/minecraft/class_1088;field_5376:Ljava/util/Map;
      official B Lgss;B:Ljava/util/Map;
    • bakedModelCache

      Mappings:
      Namespace Name Mixin selector
      named bakedModelCache Lnet/minecraft/client/render/model/ModelLoader;bakedModelCache:Ljava/util/Map;
      intermediary field_5398 Lnet/minecraft/class_1088;field_5398:Ljava/util/Map;
      official C Lgss;C:Ljava/util/Map;
    • modelsToBake

      private final Map<ModelIdentifier,UnbakedModel> modelsToBake
      Mappings:
      Namespace Name Mixin selector
      named modelsToBake Lnet/minecraft/client/render/model/ModelLoader;modelsToBake:Ljava/util/Map;
      intermediary field_5394 Lnet/minecraft/class_1088;field_5394:Ljava/util/Map;
      official D Lgss;D:Ljava/util/Map;
    • bakedModels

      private final Map<ModelIdentifier,BakedModel> bakedModels
      Mappings:
      Namespace Name Mixin selector
      named bakedModels Lnet/minecraft/client/render/model/ModelLoader;bakedModels:Ljava/util/Map;
      intermediary field_5387 Lnet/minecraft/class_1088;field_5387:Ljava/util/Map;
      official E Lgss;E:Ljava/util/Map;
    • missingModel

      private final UnbakedModel missingModel
      Mappings:
      Namespace Name Mixin selector
      named missingModel Lnet/minecraft/client/render/model/ModelLoader;missingModel:Lnet/minecraft/client/render/model/UnbakedModel;
      intermediary field_52275 Lnet/minecraft/class_1088;field_52275:Lnet/minecraft/class_1100;
      official F Lgss;F:Lgsy;
    • stateLookup

      private final Object2IntMap<BlockState> stateLookup
      Mappings:
      Namespace Name Mixin selector
      named stateLookup Lnet/minecraft/client/render/model/ModelLoader;stateLookup:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_20274 Lnet/minecraft/class_1088;field_20274:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      official G Lgss;G:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
  • Constructor Details

    • ModelLoader

      public ModelLoader(BlockColors blockColors, Profiler profiler, Map<Identifier,JsonUnbakedModel> jsonUnbakedModels, Map<Identifier,List<BlockStatesLoader.SourceTrackedData>> blockStates)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/ModelLoader;<init>(Lnet/minecraft/client/color/block/BlockColors;Lnet/minecraft/util/profiler/Profiler;Ljava/util/Map;Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_1088;<init>(Lnet/minecraft/class_324;Lnet/minecraft/class_3695;Ljava/util/Map;Ljava/util/Map;)V
      official <init> Lgss;<init>(Lfhq;Lbnf;Ljava/util/Map;Ljava/util/Map;)V
  • Method Details

    • bake

      public void bake(ModelLoader.SpriteGetter spliteGetter)
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/model/ModelLoader;bake(Lnet/minecraft/client/render/model/ModelLoader$SpriteGetter;)V
      intermediary method_45876 Lnet/minecraft/class_1088;method_45876(Lnet/minecraft/class_1088$class_9826;)V
      official a Lgss;a(Lgss$c;)V
    • getOrLoadModel

      UnbakedModel getOrLoadModel(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named getOrLoadModel Lnet/minecraft/client/render/model/ModelLoader;getOrLoadModel(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/UnbakedModel;
      intermediary method_4726 Lnet/minecraft/class_1088;method_4726(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1100;
      official a Lgss;a(Lakr;)Lgsy;
    • loadInventoryVariantItemModel

      private void loadInventoryVariantItemModel(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named loadInventoryVariantItemModel Lnet/minecraft/client/render/model/ModelLoader;loadInventoryVariantItemModel(Lnet/minecraft/util/Identifier;)V
      intermediary method_61075 Lnet/minecraft/class_1088;method_61075(Lnet/minecraft/class_2960;)V
      official b Lgss;b(Lakr;)V
    • loadItemModel

      private void loadItemModel(ModelIdentifier id)
      Mappings:
      Namespace Name Mixin selector
      named loadItemModel Lnet/minecraft/client/render/model/ModelLoader;loadItemModel(Lnet/minecraft/client/util/ModelIdentifier;)V
      intermediary method_61073 Lnet/minecraft/class_1088;method_61073(Lnet/minecraft/class_1091;)V
      official a Lgss;a(Lgsu;)V
    • add

      private void add(ModelIdentifier id, UnbakedModel model)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/client/render/model/ModelLoader;add(Lnet/minecraft/client/util/ModelIdentifier;Lnet/minecraft/client/render/model/UnbakedModel;)V
      intermediary method_61074 Lnet/minecraft/class_1088;method_61074(Lnet/minecraft/class_1091;Lnet/minecraft/class_1100;)V
      official a Lgss;a(Lgsu;Lgsy;)V
    • addModelToBake

      private void addModelToBake(ModelIdentifier id, UnbakedModel model)
      Mappings:
      Namespace Name Mixin selector
      named addModelToBake Lnet/minecraft/client/render/model/ModelLoader;addModelToBake(Lnet/minecraft/client/util/ModelIdentifier;Lnet/minecraft/client/render/model/UnbakedModel;)V
      intermediary method_61076 Lnet/minecraft/class_1088;method_61076(Lnet/minecraft/class_1091;Lnet/minecraft/class_1100;)V
      official b Lgss;b(Lgsu;Lgsy;)V
    • loadModelFromJson

      private JsonUnbakedModel loadModelFromJson(Identifier id) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named loadModelFromJson Lnet/minecraft/client/render/model/ModelLoader;loadModelFromJson(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
      intermediary method_4718 Lnet/minecraft/class_1088;method_4718(Lnet/minecraft/class_2960;)Lnet/minecraft/class_793;
      official c Lgss;c(Lakr;)Lggb;
    • getBakedModelMap

      public Map<ModelIdentifier,BakedModel> getBakedModelMap()
      Mappings:
      Namespace Name Mixin selector
      named getBakedModelMap Lnet/minecraft/client/render/model/ModelLoader;getBakedModelMap()Ljava/util/Map;
      intermediary method_4734 Lnet/minecraft/class_1088;method_4734()Ljava/util/Map;
      official a Lgss;a()Ljava/util/Map;
    • getStateLookup

      public Object2IntMap<BlockState> getStateLookup()
      Mappings:
      Namespace Name Mixin selector
      named getStateLookup Lnet/minecraft/client/render/model/ModelLoader;getStateLookup()Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary method_21605 Lnet/minecraft/class_1088;method_21605()Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      official b Lgss;b()Lit/unimi/dsi/fastutil/objects/Object2IntMap;