Class ModelManager
java.lang.Object
net.minecraft.client.resources.ReloadListener<ModelBakery>
net.minecraft.client.renderer.model.ModelManager
- All Implemented Interfaces:
AutoCloseable
,IFutureReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
Modifier and TypeFieldDescriptionprivate SpriteMap
private Map<ResourceLocation,
IBakedModel> private final BlockColors
private final BlockModelShapes
private int
private IBakedModel
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
private final TextureManager
-
Constructor Summary
ConstructorDescriptionModelManager
(TextureManager p_i226057_1_, BlockColors p_i226057_2_, int p_i226057_3_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(ModelBakery p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) void
close()
getAtlas
(ResourceLocation p_229356_1_) getModel
(ModelResourceLocation p_174953_1_) getModel
(ResourceLocation modelLocation) protected ModelBakery
prepare
(IResourceManager p_212854_1_, IProfiler p_212854_2_) boolean
requiresRender
(BlockState p_224742_1_, BlockState p_224742_2_) void
updateMaxMipLevel
(int p_229355_1_) Methods inherited from class net.minecraft.client.resources.ReloadListener
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.resources.IFutureReloadListener
getName
-
Field Details
-
bakedRegistry
-
atlases
-
blockModelShaper
-
textureManager
-
blockColors
-
maxMipmapLevels
private int maxMipmapLevels -
missingModel
-
modelGroups
-
-
Constructor Details
-
ModelManager
-
-
Method Details
-
getModel
-
getModel
-
getMissingModel
-
getBlockModelShaper
-
prepare
- Specified by:
prepare
in classReloadListener<ModelBakery>
-
apply
- Specified by:
apply
in classReloadListener<ModelBakery>
-
requiresRender
-
getAtlas
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
updateMaxMipLevel
public void updateMaxMipLevel(int p_229355_1_) -
getResourceType
-