Class AtlasManager
java.lang.Object
net.minecraft.client.resources.model.AtlasManager
- All Implemented Interfaces:
AutoCloseable, SpriteGetter, PreparableReloadListener
public class AtlasManager
extends Object
implements AutoCloseable, PreparableReloadListener, SpriteGetter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprivate static final recordprivate static final recordstatic classNested classes/interfaces inherited from interface PreparableReloadListener
PreparableReloadListener.PreparationBarrier, PreparableReloadListener.SharedState, PreparableReloadListener.StateKey<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier, AtlasManager.AtlasEntry> private final Map<Identifier, AtlasManager.AtlasEntry> private static final List<AtlasManager.AtlasConfig> private static final org.slf4j.Loggerprivate intprivate Map<SpriteId, TextureAtlasSprite> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidforEach(BiConsumer<Identifier, TextureAtlas> output) getAtlasOrThrow(Identifier atlasId) voidprepareSharedState(PreparableReloadListener.SharedState currentReload) reload(PreparableReloadListener.SharedState currentReload, Executor taskExecutor, PreparableReloadListener.PreparationBarrier preparationBarrier, Executor reloadExecutor) voidupdateMaxMipLevel(int maxMipmapLevels) private voidupdateSpriteMaps(AtlasManager.PendingStitchResults pendingStitches) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreparableReloadListener
getName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
KNOWN_ATLASES
-
PENDING_STITCH
public static final PreparableReloadListener.StateKey<AtlasManager.PendingStitchResults> PENDING_STITCH -
atlasByTexture
-
atlasById
-
spriteLookup
-
maxMipmapLevels
private int maxMipmapLevels
-
-
Constructor Details
-
AtlasManager
-
-
Method Details
-
getAtlasOrThrow
-
forEach
-
updateMaxMipLevel
public void updateMaxMipLevel(int maxMipmapLevels) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
get
- Specified by:
getin interfaceSpriteGetter
-
updateSpriteMaps
-