Class AtlasManager
java.lang.Object
net.minecraft.client.resources.model.AtlasManager
- All Implemented Interfaces:
AutoCloseable,MaterialSet,PreparableReloadListener
public class AtlasManager
extends Object
implements PreparableReloadListener, MaterialSet, AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record(package private) static final record(package private) static final recordstatic classNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier, PreparableReloadListener.SharedState, PreparableReloadListener.StateKey<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation, AtlasManager.AtlasEntry> private final Map<ResourceLocation, AtlasManager.AtlasEntry> private static final List<AtlasManager.AtlasConfig> private Map<Material, TextureAtlasSprite> private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidforEach(BiConsumer<ResourceLocation, TextureAtlas> pAction) voidreload(PreparableReloadListener.SharedState p_432891_, Executor p_435942_, PreparableReloadListener.PreparationBarrier p_434562_, Executor p_433243_) voidupdateMaxMipLevel(int pMaxMipLevel) 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
-
KNOWN_ATLASES
-
PENDING_STITCH
public static final PreparableReloadListener.StateKey<AtlasManager.PendingStitchResults> PENDING_STITCH -
atlasByTexture
-
atlasById
-
materialLookup
-
maxMipmapLevels
private int maxMipmapLevels
-
-
Constructor Details
-
AtlasManager
-
-
Method Details
-
getAtlasOrThrow
-
forEach
-
updateMaxMipLevel
public void updateMaxMipLevel(int pMaxMipLevel) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
get
- Specified by:
getin interfaceMaterialSet
-