Class ModelManager
java.lang.Object
net.minecraft.client.resources.model.ModelManager
- All Implemented Interfaces:
AutoCloseable
,PreparableReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtlasSet
private Map
<ModelResourceLocation, BakedModel> private final BlockColors
private final BlockModelShaper
private static final org.slf4j.Logger
private int
private BakedModel
private ModelBakery
private it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> private static final Map
<ResourceLocation, ResourceLocation> -
Constructor Summary
ConstructorDescriptionModelManager
(TextureManager p_119406_, BlockColors p_119407_, int p_119408_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
apply
(ModelManager.ReloadState p_248996_, ProfilerFiller p_251960_) void
close()
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.ReloadState
loadModels
(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_) boolean
requiresRender
(BlockState p_119416_, BlockState p_119417_) void
updateMaxMipLevel
(int p_119411_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
reload
in 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:
close
in interfaceAutoCloseable
-
updateMaxMipLevel
public void updateMaxMipLevel(int p_119411_) -
getModelBakery
-