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