Package net.minecraft.client.texture
Class AtlasManager
java.lang.Object
net.minecraft.client.texture.AtlasManager
- All Implemented Interfaces:
AutoCloseable,SpriteHolder,ResourceReloader
@Environment(CLIENT)
public class AtlasManager
extends Object
implements ResourceReloader, SpriteHolder, AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/texture/AtlasManagerintermediary net/minecraft/class_11697official iek
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final recordstatic final recordstatic classNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Key<T>, ResourceReloader.Store, ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<AtlasManager.Metadata> private final Map<Identifier, AtlasManager.Entry> private final Map<Identifier, AtlasManager.Entry> private intprivate Map<SpriteIdentifier, Sprite> static final ResourceReloader.Key<AtlasManager.Stitch> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidInserts state that should be shared between reloaders into the provided data store.reload(ResourceReloader.Store store, Executor prepareExecutor, ResourceReloader.Synchronizer reloadSynchronizer, Executor applyExecutor) Performs a reload.voidsetMipmapLevels(int mipmapLevels) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
ATLAS_METADATA
- Mappings:
Namespace Name Mixin selector named ATLAS_METADATALnet/minecraft/client/texture/AtlasManager;ATLAS_METADATA:Ljava/util/List;intermediary field_61862Lnet/minecraft/class_11697;field_61862:Ljava/util/List;official bLiek;b:Ljava/util/List;
-
stitchKey
- Mappings:
Namespace Name Mixin selector named stitchKeyLnet/minecraft/client/texture/AtlasManager;stitchKey:Lnet/minecraft/resource/ResourceReloader$Key;intermediary field_61861Lnet/minecraft/class_11697;field_61861:Lnet/minecraft/class_3302$class_11559;official aLiek;a:Lbaj$c;
-
entriesByTextureId
- Mappings:
Namespace Name Mixin selector named entriesByTextureIdLnet/minecraft/client/texture/AtlasManager;entriesByTextureId:Ljava/util/Map;intermediary field_61939Lnet/minecraft/class_11697;field_61939:Ljava/util/Map;official cLiek;c:Ljava/util/Map;
-
entriesByDefinitionId
- Mappings:
Namespace Name Mixin selector named entriesByDefinitionIdLnet/minecraft/client/texture/AtlasManager;entriesByDefinitionId:Ljava/util/Map;intermediary field_61940Lnet/minecraft/class_11697;field_61940:Ljava/util/Map;official dLiek;d:Ljava/util/Map;
-
sprites
- Mappings:
Namespace Name Mixin selector named spritesLnet/minecraft/client/texture/AtlasManager;sprites:Ljava/util/Map;intermediary field_61864Lnet/minecraft/class_11697;field_61864:Ljava/util/Map;official eLiek;e:Ljava/util/Map;
-
mipmapLevels
private int mipmapLevels- Mappings:
Namespace Name Mixin selector named mipmapLevelsLnet/minecraft/client/texture/AtlasManager;mipmapLevels:Iintermediary field_61865Lnet/minecraft/class_11697;field_61865:Iofficial fLiek;f:I
-
-
Constructor Details
-
AtlasManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/AtlasManager;<init>(Lnet/minecraft/client/texture/TextureManager;I)Vintermediary <init>Lnet/minecraft/class_11697;<init>(Lnet/minecraft/class_1060;I)Vofficial <init>Liek;<init>(Licq;I)V
-
-
Method Details
-
getAtlasTexture
- Mappings:
Namespace Name Mixin selector named getAtlasTextureLnet/minecraft/client/texture/AtlasManager;getAtlasTexture(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/SpriteAtlasTexture;intermediary method_73025Lnet/minecraft/class_11697;method_73025(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1059;official aLiek;a(Lamj;)Licn;
-
acceptAtlasTextures
- Mappings:
Namespace Name Mixin selector named acceptAtlasTexturesLnet/minecraft/client/texture/AtlasManager;acceptAtlasTextures(Ljava/util/function/BiConsumer;)Vintermediary method_73156Lnet/minecraft/class_11697;method_73156(Ljava/util/function/BiConsumer;)Vofficial aLiek;a(Ljava/util/function/BiConsumer;)V
-
setMipmapLevels
public void setMipmapLevels(int mipmapLevels) - Mappings:
Namespace Name Mixin selector named setMipmapLevelsLnet/minecraft/client/texture/AtlasManager;setMipmapLevels(I)Vintermediary method_73024Lnet/minecraft/class_11697;method_73024(I)Vofficial aLiek;a(I)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getSprite
- Specified by:
getSpritein interfaceSpriteHolder- Mappings:
Namespace Name Mixin selector named getSpriteLnet/minecraft/client/texture/SpriteHolder;getSprite(Lnet/minecraft/client/util/SpriteIdentifier;)Lnet/minecraft/client/texture/Sprite;intermediary method_73030Lnet/minecraft/class_11701;method_73030(Lnet/minecraft/class_4730;)Lnet/minecraft/class_1058;official aLies;a(Lier;)Lico;
-
reload
public CompletableFuture<Void> reload(ResourceReloader.Store store, Executor prepareExecutor, ResourceReloader.Synchronizer reloadSynchronizer, Executor applyExecutor) Performs a reload. Returns a future that is completed when the reload is completed.In a reload, there is a prepare stage and an apply stage. For the prepare stage, you should create completable futures with CompletableFuture.supplyAsync(..., prepareExecutor) to ensure the prepare actions are done with the prepare executor. Then, you should have a completable future for all the prepared actions, and call combinedPrepare.thenCompose(synchronizer::waitFor) to notify the
synchronizer. Finally, you should run CompletableFuture.thenAcceptAsync(..., applyExecutor) for apply actions. In the end, returns the result ofthenAcceptAsync.- Specified by:
reloadin interfaceResourceReloader- Returns:
- a future for the reload
- See Also:
- Mappings:
Namespace Name Mixin selector named reloadLnet/minecraft/resource/ResourceReloader;reload(Lnet/minecraft/resource/ResourceReloader$Store;Ljava/util/concurrent/Executor;Lnet/minecraft/resource/ResourceReloader$Synchronizer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_25931Lnet/minecraft/class_3302;method_25931(Lnet/minecraft/class_3302$class_11558;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3302$class_4045;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;official reloadLbaj;reload(Lbaj$b;Ljava/util/concurrent/Executor;Lbaj$a;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-