Class ModelManager
java.lang.Object
net.minecraft.client.resources.model.ModelManager
- All Implemented Interfaces:
- AutoCloseable,- PreparableReloadListener
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final AtlasSetprivate Map<ResourceLocation,BakedModel> private final BlockColorsprivate final BlockModelShaperprivate static final org.slf4j.Loggerprivate intprivate BakedModelprivate ModelBakeryprivate it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>private static final Map<ResourceLocation,ResourceLocation> 
- 
Constructor SummaryConstructorsConstructorDescriptionModelManager(TextureManager p_119406_, BlockColors p_119407_, int p_119408_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidapply(ModelManager.ReloadState p_248996_, ProfilerFiller p_251960_) voidclose()getAtlas(ResourceLocation p_119429_) getModel(ModelResourceLocation p_119423_) getModel(ResourceLocation modelLocation) private static CompletableFuture<Map<ResourceLocation,BlockModel>> loadBlockModels(ResourceManager p_251361_, Executor p_252189_) private static CompletableFuture<Map<ResourceLocation,List<ModelBakery.LoadedJson>>> loadBlockStates(ResourceManager p_252084_, Executor p_249943_) private ModelManager.ReloadStateloadModels(ProfilerFiller p_252136_, Map<ResourceLocation, AtlasSet.StitchResult> p_250646_, ModelBakery p_248945_) final CompletableFuture<Void>reload(PreparableReloadListener.PreparationBarrier p_249079_, ResourceManager p_251134_, ProfilerFiller p_250336_, ProfilerFiller p_252324_, Executor p_250550_, Executor p_249221_) booleanrequiresRender(BlockState p_119416_, BlockState p_119417_) voidupdateMaxMipLevel(int p_119411_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetName
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
VANILLA_ATLASES
- 
bakedRegistry
- 
atlases
- 
blockModelShaper
- 
blockColors
- 
maxMipmapLevelsprivate int maxMipmapLevels
- 
missingModel
- 
modelGroups
- 
modelBakery
 
- 
- 
Constructor Details- 
ModelManager
 
- 
- 
Method Details- 
getModel
- 
getModel
- 
getMissingModel
- 
getBlockModelShaper
- 
reloadpublic final CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier p_249079_, ResourceManager p_251134_, ProfilerFiller p_250336_, ProfilerFiller p_252324_, Executor p_250550_, Executor p_249221_) - Specified by:
- reloadin interface- PreparableReloadListener
 
- 
loadBlockModelsprivate static CompletableFuture<Map<ResourceLocation,BlockModel>> loadBlockModels(ResourceManager p_251361_, Executor p_252189_) 
- 
loadBlockStatesprivate static CompletableFuture<Map<ResourceLocation,List<ModelBakery.LoadedJson>>> loadBlockStates(ResourceManager p_252084_, Executor p_249943_) 
- 
loadModelsprivate ModelManager.ReloadState loadModels(ProfilerFiller p_252136_, Map<ResourceLocation, AtlasSet.StitchResult> p_250646_, ModelBakery p_248945_) 
- 
apply
- 
requiresRender
- 
getAtlas
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
updateMaxMipLevelpublic void updateMaxMipLevel(int p_119411_) 
- 
getModelBakery
 
-