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 hxb
-
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.class_11558, ResourceReloader.Key<T>, ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<AtlasManager.Metadata> private final Map<Identifier, AtlasManager.Entry> private intprivate Map<SpriteIdentifier, Sprite> static final ResourceReloader.Key<AtlasManager.Stitch> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private AtlasManager.EntrygetEntry(Identifier id) voidprepareSharedState(ResourceReloader.class_11558 class_11558) reload(ResourceReloader.class_11558 class_11558, Executor executor, ResourceReloader.Synchronizer synchronizer, 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 bLhxb;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 aLhxb;a:Laxn$c;
-
entries
- Mappings:
Namespace Name Mixin selector named entriesLnet/minecraft/client/texture/AtlasManager;entries:Ljava/util/Map;intermediary field_61863Lnet/minecraft/class_11697;field_61863:Ljava/util/Map;official cLhxb;c: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 dLhxb;d: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 eLhxb;e: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>Lhxb;<init>(Lhvf;I)V
-
-
Method Details
-
getEntry
- Mappings:
Namespace Name Mixin selector named getEntryLnet/minecraft/client/texture/AtlasManager;getEntry(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/AtlasManager$Entry;intermediary method_73033Lnet/minecraft/class_11697;method_73033(Lnet/minecraft/class_2960;)Lnet/minecraft/class_11697$class_7772;official bLhxb;b(Lamh;)Lhxb$b;
-
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 aLhxb;a(Lamh;)Lhvc;
-
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 aLhxb;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 aLhxj;a(Lhxi;)Lhvd;
-
reload
public CompletableFuture<Void> reload(ResourceReloader.class_11558 class_11558, Executor executor, ResourceReloader.Synchronizer synchronizer, 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$class_11558;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 reloadLaxn;reload(Laxn$b;Ljava/util/concurrent/Executor;Laxn$a;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-