类 BakedModelManager
- java.lang.Object
-
- net.minecraft.resource.SinglePreparationResourceReloader<ModelLoader>
-
- net.minecraft.client.render.model.BakedModelManager
-
- 所有已实现的接口:
AutoCloseable,ResourceReloader
@Environment(CLIENT) public class BakedModelManager extends SinglePreparationResourceReloader<ModelLoader> implements AutoCloseable
- Mappings:
Namespace Name official exuintermediary net/minecraft/class_1092named net/minecraft/client/render/model/BakedModelManager
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
-
字段概要
字段 修饰符和类型 字段 说明 private @Nullable SpriteAtlasManageratlasManagerprivate BlockModelsblockModelCacheprivate BlockColorscolorMapprivate intmipmapLevelsprivate BakedModelmissingModelprivate Map<Identifier,BakedModel>modelsprivate Object2IntMap<BlockState>stateLookupprivate TextureManagertextureManager
-
构造器概要
构造器 构造器 说明 BakedModelManager(TextureManager textureManager, BlockColors colorMap, int mipmap)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)-
从类继承的方法 net.minecraft.resource.SinglePreparationResourceReloader
reload
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.resource.ResourceReloader
getName
-
-
-
-
字段详细资料
-
models
private Map<Identifier,BakedModel> models
- Mappings:
Namespace Name Mixin selector official aLexu;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
@Nullable private @Nullable SpriteAtlasManager atlasManager
- Mappings:
Namespace Name Mixin selector official bLexu;b:Levs;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
private final BlockModels blockModelCache
- Mappings:
Namespace Name Mixin selector official cLexu;c:Lemq;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
private final TextureManager textureManager
- Mappings:
Namespace Name Mixin selector official dLexu;d:Lewe;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
private final BlockColors colorMap
- Mappings:
Namespace Name Mixin selector official eLexu;e:Ldvb;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 fLexu;f:Iintermediary field_21777Lnet/minecraft/class_1092;field_21777:Inamed mipmapLevelsLnet/minecraft/client/render/model/BakedModelManager;mipmapLevels:I
-
missingModel
private BakedModel missingModel
- Mappings:
Namespace Name Mixin selector official gLexu;g:Lexp;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
private Object2IntMap<BlockState> stateLookup
- Mappings:
Namespace Name Mixin selector official hLexu;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;
-
-
构造器详细资料
-
BakedModelManager
public BakedModelManager(TextureManager textureManager, BlockColors colorMap, int mipmap)
- Mappings:
Namespace Name Mixin selector official <init>Lexu;<init>(Lewe;Ldvb;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
-
-
方法详细资料
-
getModel
public BakedModel getModel(ModelIdentifier id)
- Mappings:
Namespace Name Mixin selector official aLexu;a(Lexv;)Lexp;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
public BakedModel getMissingModel()
- Mappings:
Namespace Name Mixin selector official aLexu;a()Lexp;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
public BlockModels getBlockModels()
- Mappings:
Namespace Name Mixin selector official bLexu;b()Lemq;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
protected ModelLoader prepare(ResourceManager resourceManager, Profiler profiler)
从类复制的说明:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- 指定者:
prepare在类中SinglePreparationResourceReloader<ModelLoader>- 参数:
resourceManager- the resource managerprofiler- the prepare profiler- 返回:
- the prepared object
- Mappings:
Namespace Name Mixin selector official aLexu;a(Ladl;Lapl;)Lext;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
protected void apply(ModelLoader modelLoader, ResourceManager resourceManager, Profiler profiler)
从类复制的说明:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- 指定者:
apply在类中SinglePreparationResourceReloader<ModelLoader>- 参数:
modelLoader- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector official aLexu;a(Lext;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
public boolean shouldRerender(BlockState from, BlockState to)
- Mappings:
Namespace Name Mixin selector official aLexu;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
public SpriteAtlasTexture getAtlas(Identifier id)
- Mappings:
Namespace Name Mixin selector official aLexu;a(Lwp;)Lewc;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()
- 指定者:
close在接口中AutoCloseable- Mappings:
Namespace Name Mixin selector official closeLexu;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 aLexu;a(I)Vintermediary method_24152Lnet/minecraft/class_1092;method_24152(I)Vnamed setMipmapLevelsLnet/minecraft/client/render/model/BakedModelManager;setMipmapLevels(I)V
-
-