Class BakedModelManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<ModelLoader>
net.minecraft.client.render.model.BakedModelManager
- All Implemented Interfaces:
AutoCloseable,ResourceReloader
@Environment(CLIENT) public class BakedModelManager extends SinglePreparationResourceReloader<ModelLoader> implements AutoCloseable
- Mappings:
Namespace Name official exsintermediary net/minecraft/class_1092named net/minecraft/client/render/model/BakedModelManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
Fields Modifier and Type Field Description private @Nullable SpriteAtlasManageratlasManagerprivate BlockModelsblockModelCacheprivate BlockColorscolorMapprivate intmipmapLevelsprivate BakedModelmissingModelprivate Map<Identifier,BakedModel>modelsprivate Object2IntMap<BlockState>stateLookupprivate TextureManagertextureManager -
Constructor Summary
Constructors Constructor Description BakedModelManager(TextureManager textureManager, BlockColors colorMap, int mipmap) -
Method Summary
Modifier and Type Method Description protected voidapply(ModelLoader modelLoader, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.voidclose()SpriteAtlasTexturegetAtlas(Identifier id)BlockModelsgetBlockModels()BakedModelgetMissingModel()BakedModelgetModel(ModelIdentifier id)protected ModelLoaderprepare(ResourceManager resourceManager, Profiler profiler)Prepares the intermediate object.voidsetMipmapLevels(int mipmapLevels)booleanshouldRerender(BlockState from, BlockState to)Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
models
- Mappings:
Namespace Name Mixin selector official aLexs;a:Ljava/util/Map;intermediary field_5408Lnet/minecraft/class_1092;field_5408:Ljava/util/Map;named modelsLnet/minecraft/client/render/model/BakedModelManager;models:Ljava/util/Map;
-
atlasManager
- Mappings:
Namespace Name Mixin selector official bLexs;b:Levq;intermediary field_21775Lnet/minecraft/class_1092;field_21775:Lnet/minecraft/class_4724;named atlasManagerLnet/minecraft/client/render/model/BakedModelManager;atlasManager:Lnet/minecraft/client/render/model/SpriteAtlasManager;
-
blockModelCache
- Mappings:
Namespace Name Mixin selector official cLexs;c:Lemo;intermediary field_5410Lnet/minecraft/class_1092;field_5410:Lnet/minecraft/class_773;named blockModelCacheLnet/minecraft/client/render/model/BakedModelManager;blockModelCache:Lnet/minecraft/client/render/block/BlockModels;
-
textureManager
- Mappings:
Namespace Name Mixin selector official dLexs;d:Lewc;intermediary field_21776Lnet/minecraft/class_1092;field_21776:Lnet/minecraft/class_1060;named textureManagerLnet/minecraft/client/render/model/BakedModelManager;textureManager:Lnet/minecraft/client/texture/TextureManager;
-
colorMap
- Mappings:
Namespace Name Mixin selector official eLexs;e:Lduz;intermediary field_20277Lnet/minecraft/class_1092;field_20277:Lnet/minecraft/class_324;named colorMapLnet/minecraft/client/render/model/BakedModelManager;colorMap:Lnet/minecraft/client/color/block/BlockColors;
-
mipmapLevels
private int mipmapLevels- Mappings:
Namespace Name Mixin selector official fLexs;f:Iintermediary field_21777Lnet/minecraft/class_1092;field_21777:Inamed mipmapLevelsLnet/minecraft/client/render/model/BakedModelManager;mipmapLevels:I
-
missingModel
- Mappings:
Namespace Name Mixin selector official gLexs;g:Lexn;intermediary field_5407Lnet/minecraft/class_1092;field_5407:Lnet/minecraft/class_1087;named missingModelLnet/minecraft/client/render/model/BakedModelManager;missingModel:Lnet/minecraft/client/render/model/BakedModel;
-
stateLookup
- Mappings:
Namespace Name Mixin selector official hLexs;h:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_20278Lnet/minecraft/class_1092;field_20278:Lit/unimi/dsi/fastutil/objects/Object2IntMap;named stateLookupLnet/minecraft/client/render/model/BakedModelManager;stateLookup:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
BakedModelManager
- Mappings:
Namespace Name Mixin selector official <init>Lexs;<init>(Lewc;Lduz;I)Vintermediary <init>Lnet/minecraft/class_1092;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_324;I)Vnamed <init>Lnet/minecraft/client/render/model/BakedModelManager;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/client/color/block/BlockColors;I)V
-
-
Method Details
-
getModel
- Mappings:
Namespace Name Mixin selector official aLexs;a(Lext;)Lexn;intermediary method_4742Lnet/minecraft/class_1092;method_4742(Lnet/minecraft/class_1091;)Lnet/minecraft/class_1087;named getModelLnet/minecraft/client/render/model/BakedModelManager;getModel(Lnet/minecraft/client/util/ModelIdentifier;)Lnet/minecraft/client/render/model/BakedModel;
-
getMissingModel
- Mappings:
Namespace Name Mixin selector official aLexs;a()Lexn;intermediary method_4744Lnet/minecraft/class_1092;method_4744()Lnet/minecraft/class_1087;named getMissingModelLnet/minecraft/client/render/model/BakedModelManager;getMissingModel()Lnet/minecraft/client/render/model/BakedModel;
-
getBlockModels
- Mappings:
Namespace Name Mixin selector official bLexs;b()Lemo;intermediary method_4743Lnet/minecraft/class_1092;method_4743()Lnet/minecraft/class_773;named getBlockModelsLnet/minecraft/client/render/model/BakedModelManager;getBlockModels()Lnet/minecraft/client/render/block/BlockModels;
-
prepare
Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
preparein classSinglePreparationResourceReloader<ModelLoader>- Parameters:
resourceManager- the resource managerprofiler- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector official aLexs;a(Ladl;Lapl;)Lexr;intermediary method_18178Lnet/minecraft/class_1092;method_18178(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1088;named prepareLnet/minecraft/client/render/model/BakedModelManager;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/render/model/ModelLoader;
-
apply
Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<ModelLoader>- Parameters:
modelLoader- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector official aLexs;a(Lexr;Ladl;Lapl;)Vintermediary method_18179Lnet/minecraft/class_1092;method_18179(Lnet/minecraft/class_1088;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vnamed applyLnet/minecraft/client/render/model/BakedModelManager;apply(Lnet/minecraft/client/render/model/ModelLoader;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
-
shouldRerender
- Mappings:
Namespace Name Mixin selector official aLexs;a(Lcjr;Lcjr;)Zintermediary method_21611Lnet/minecraft/class_1092;method_21611(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Znamed shouldRerenderLnet/minecraft/client/render/model/BakedModelManager;shouldRerender(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
-
getAtlas
- Mappings:
Namespace Name Mixin selector official aLexs;a(Lwp;)Lewa;intermediary method_24153Lnet/minecraft/class_1092;method_24153(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1059;named getAtlasLnet/minecraft/client/render/model/BakedModelManager;getAtlas(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Mappings:
Namespace Name Mixin selector official closeLexs;close()Vintermediary closeLnet/minecraft/class_1092;close()Vnamed closeLnet/minecraft/client/render/model/BakedModelManager;close()V
-
setMipmapLevels
public void setMipmapLevels(int mipmapLevels)- Mappings:
Namespace Name Mixin selector official aLexs;a(I)Vintermediary method_24152Lnet/minecraft/class_1092;method_24152(I)Vnamed setMipmapLevelsLnet/minecraft/client/render/model/BakedModelManager;setMipmapLevels(I)V
-