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 fbi
intermediary net/minecraft/class_1092
named net/minecraft/client/render/model/BakedModelManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable SpriteAtlasManager
private final BlockModels
private final BlockColors
private int
private BakedModel
private Map<Identifier,
BakedModel> private Object2IntMap<BlockState>
private final TextureManager
-
Constructor Summary
ConstructorDescriptionBakedModelManager
(TextureManager textureManager, BlockColors colorMap, int mipmap) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(ModelLoader modelLoader, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.void
close()
getAtlas
(Identifier id) protected ModelLoader
prepare
(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.void
setMipmapLevels
(int mipmapLevels) boolean
shouldRerender
(BlockState from, BlockState to) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
models
- Mappings:
Namespace Name Mixin selector official a
Lfbi;a:Ljava/util/Map;
intermediary field_5408
Lnet/minecraft/class_1092;field_5408:Ljava/util/Map;
named models
Lnet/minecraft/client/render/model/BakedModelManager;models:Ljava/util/Map;
-
atlasManager
- Mappings:
Namespace Name Mixin selector official b
Lfbi;b:Lezg;
intermediary field_21775
Lnet/minecraft/class_1092;field_21775:Lnet/minecraft/class_4724;
named atlasManager
Lnet/minecraft/client/render/model/BakedModelManager;atlasManager:Lnet/minecraft/client/render/model/SpriteAtlasManager;
-
blockModelCache
- Mappings:
Namespace Name Mixin selector official c
Lfbi;c:Leqb;
intermediary field_5410
Lnet/minecraft/class_1092;field_5410:Lnet/minecraft/class_773;
named blockModelCache
Lnet/minecraft/client/render/model/BakedModelManager;blockModelCache:Lnet/minecraft/client/render/block/BlockModels;
-
textureManager
- Mappings:
Namespace Name Mixin selector official d
Lfbi;d:Lezs;
intermediary field_21776
Lnet/minecraft/class_1092;field_21776:Lnet/minecraft/class_1060;
named textureManager
Lnet/minecraft/client/render/model/BakedModelManager;textureManager:Lnet/minecraft/client/texture/TextureManager;
-
colorMap
- Mappings:
Namespace Name Mixin selector official e
Lfbi;e:Ldyf;
intermediary field_20277
Lnet/minecraft/class_1092;field_20277:Lnet/minecraft/class_324;
named colorMap
Lnet/minecraft/client/render/model/BakedModelManager;colorMap:Lnet/minecraft/client/color/block/BlockColors;
-
mipmapLevels
private int mipmapLevels- Mappings:
Namespace Name Mixin selector official f
Lfbi;f:I
intermediary field_21777
Lnet/minecraft/class_1092;field_21777:I
named mipmapLevels
Lnet/minecraft/client/render/model/BakedModelManager;mipmapLevels:I
-
missingModel
- Mappings:
Namespace Name Mixin selector official g
Lfbi;g:Lfbd;
intermediary field_5407
Lnet/minecraft/class_1092;field_5407:Lnet/minecraft/class_1087;
named missingModel
Lnet/minecraft/client/render/model/BakedModelManager;missingModel:Lnet/minecraft/client/render/model/BakedModel;
-
stateLookup
- Mappings:
Namespace Name Mixin selector official h
Lfbi;h:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_20278
Lnet/minecraft/class_1092;field_20278:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
named stateLookup
Lnet/minecraft/client/render/model/BakedModelManager;stateLookup:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
BakedModelManager
- Mappings:
Namespace Name Mixin selector official <init>
Lfbi;<init>(Lezs;Ldyf;I)V
intermediary <init>
Lnet/minecraft/class_1092;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_324;I)V
named <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 a
Lfbi;a(Lfbj;)Lfbd;
intermediary method_4742
Lnet/minecraft/class_1092;method_4742(Lnet/minecraft/class_1091;)Lnet/minecraft/class_1087;
named getModel
Lnet/minecraft/client/render/model/BakedModelManager;getModel(Lnet/minecraft/client/util/ModelIdentifier;)Lnet/minecraft/client/render/model/BakedModel;
-
getMissingModel
- Mappings:
Namespace Name Mixin selector official a
Lfbi;a()Lfbd;
intermediary method_4744
Lnet/minecraft/class_1092;method_4744()Lnet/minecraft/class_1087;
named getMissingModel
Lnet/minecraft/client/render/model/BakedModelManager;getMissingModel()Lnet/minecraft/client/render/model/BakedModel;
-
getBlockModels
- Mappings:
Namespace Name Mixin selector official b
Lfbi;b()Leqb;
intermediary method_4743
Lnet/minecraft/class_1092;method_4743()Lnet/minecraft/class_773;
named getBlockModels
Lnet/minecraft/client/render/model/BakedModelManager;getBlockModels()Lnet/minecraft/client/render/block/BlockModels;
-
prepare
Description copied from class:SinglePreparationResourceReloader
Prepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
prepare
in classSinglePreparationResourceReloader<ModelLoader>
- Parameters:
resourceManager
- the resource managerprofiler
- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector official a
Lfbi;a(Lafk;Lash;)Lfbh;
intermediary method_18178
Lnet/minecraft/class_1092;method_18178(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1088;
named prepare
Lnet/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:SinglePreparationResourceReloader
Handles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
apply
in classSinglePreparationResourceReloader<ModelLoader>
- Parameters:
modelLoader
- the prepared objectresourceManager
- the resource managerprofiler
- the apply profiler- Mappings:
Namespace Name Mixin selector official a
Lfbi;a(Lfbh;Lafk;Lash;)V
intermediary method_18179
Lnet/minecraft/class_1092;method_18179(Lnet/minecraft/class_1088;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
named apply
Lnet/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 a
Lfbi;a(Lcoc;Lcoc;)Z
intermediary method_21611
Lnet/minecraft/class_1092;method_21611(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Z
named shouldRerender
Lnet/minecraft/client/render/model/BakedModelManager;shouldRerender(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
-
getAtlas
- Mappings:
Namespace Name Mixin selector official a
Lfbi;a(Lyh;)Lezq;
intermediary method_24153
Lnet/minecraft/class_1092;method_24153(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1059;
named getAtlas
Lnet/minecraft/client/render/model/BakedModelManager;getAtlas(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
setMipmapLevels
public void setMipmapLevels(int mipmapLevels) - Mappings:
Namespace Name Mixin selector official a
Lfbi;a(I)V
intermediary method_24152
Lnet/minecraft/class_1092;method_24152(I)V
named setMipmapLevels
Lnet/minecraft/client/render/model/BakedModelManager;setMipmapLevels(I)V
-