Class ModelManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<ModelBakery>
net.minecraft.client.resources.model.ModelManager
- All Implemented Interfaces:
AutoCloseable
,PreparableReloadListener
public class ModelManager
extends SimplePreparableReloadListener<ModelBakery>
implements AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtlasSet
private Map<ResourceLocation,
BakedModel> private final BlockColors
private final BlockModelShaper
private int
private BakedModel
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
private final TextureManager
-
Constructor Summary
ConstructorDescriptionModelManager
(TextureManager p_119406_, BlockColors p_119407_, int p_119408_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(ModelBakery p_119419_, ResourceManager p_119420_, ProfilerFiller p_119421_) void
close()
getAtlas
(ResourceLocation p_119429_) getModel
(ModelResourceLocation p_119423_) getModel
(ResourceLocation modelLocation) protected ModelBakery
prepare
(ResourceManager p_119413_, ProfilerFiller p_119414_) boolean
requiresRender
(BlockState p_119416_, BlockState p_119417_) void
updateMaxMipLevel
(int p_119411_) Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
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.server.packs.resources.PreparableReloadListener
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 classSimplePreparableReloadListener<ModelBakery>
-
apply
- Specified by:
apply
in classSimplePreparableReloadListener<ModelBakery>
-
requiresRender
-
getAtlas
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
updateMaxMipLevel
public void updateMaxMipLevel(int p_119411_)
-