Class ModelManager
java.lang.Object
net.minecraft.client.resources.model.ModelManager
- All Implemented Interfaces:
 AutoCloseable,PreparableReloadListener
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtlasSetprivate Map<ModelResourceLocation, 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 Summary
ConstructorsConstructorDescriptionModelManager(TextureManager p_119406_, BlockColors p_119407_, int p_119408_)  - 
Method Summary
Modifier and TypeMethodDescriptionprivate voidapply(ModelManager.ReloadState p_248996_, ProfilerFiller p_251960_) voidclose()getAtlas(ResourceLocation p_119429_) getModel(ModelResourceLocation p_119423_) private static CompletableFuture<Map<ResourceLocation, BlockModel>> loadBlockModels(ResourceManager p_251361_, Executor p_252189_) private static CompletableFuture<Map<ResourceLocation, List<BlockStateModelLoader.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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName 
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
VANILLA_ATLASES
 - 
bakedRegistry
 - 
atlases
 - 
blockModelShaper
 - 
blockColors
 - 
maxMipmapLevels
private int maxMipmapLevels - 
missingModel
 - 
modelGroups
 - 
modelBakery
 
 - 
 - 
Constructor Details
- 
ModelManager
 
 - 
 - 
Method Details
- 
getModel
 - 
getMissingModel
 - 
getBlockModelShaper
 - 
reload
public 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 interfacePreparableReloadListener
 - 
loadBlockModels
private static CompletableFuture<Map<ResourceLocation,BlockModel>> loadBlockModels(ResourceManager p_251361_, Executor p_252189_)  - 
loadBlockStates
private static CompletableFuture<Map<ResourceLocation,List<BlockStateModelLoader.LoadedJson>>> loadBlockStates(ResourceManager p_252084_, Executor p_249943_)  - 
loadModels
private ModelManager.ReloadState loadModels(ProfilerFiller p_252136_, Map<ResourceLocation, AtlasSet.StitchResult> p_250646_, ModelBakery p_248945_)  - 
apply
 - 
requiresRender
 - 
getAtlas
 - 
close
public void close()- Specified by:
 closein interfaceAutoCloseable
 - 
updateMaxMipLevel
public void updateMaxMipLevel(int p_119411_)  - 
getModelBakery
 
 -