Package net.minecraft.client.texture
Class SpriteLoader
java.lang.Object
net.minecraft.client.texture.SpriteLoader
- Mappings:
Namespace Name official gei
intermediary net/minecraft/class_7766
named net/minecraft/client/texture/SpriteLoader
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Identifier
private static final Logger
private final int
static final Set<ResourceMetadataReader<?>>
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Map<Identifier,
Sprite> collectStitchedSprites
(TextureStitcher<SpriteContents> stitcher, int atlasWidth, int atlasHeight) static SpriteLoader
fromAtlas
(SpriteAtlasTexture atlasTexture) load
(ResourceManager resourceManager, Identifier path, int mipLevel, Executor executor) load
(ResourceManager resourceManager, Identifier path, int mipLevel, Executor executor, Collection<ResourceMetadataReader<?>> metadatas) static CompletableFuture<List<SpriteContents>>
loadAll
(SpriteOpener opener, List<Function<SpriteOpener, SpriteContents>> sources, Executor executor) stitch
(List<SpriteContents> sprites, int mipLevel, Executor executor)
-
Field Details
-
METADATA_READERS
- Mappings:
Namespace Name Mixin selector official a
Lgei;a:Ljava/util/Set;
intermediary field_45632
Lnet/minecraft/class_7766;field_45632:Ljava/util/Set;
named METADATA_READERS
Lnet/minecraft/client/texture/SpriteLoader;METADATA_READERS:Ljava/util/Set;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lgei;b:Lorg/slf4j/Logger;
intermediary field_40548
Lnet/minecraft/class_7766;field_40548:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/texture/SpriteLoader;LOGGER:Lorg/slf4j/Logger;
-
id
- Mappings:
Namespace Name Mixin selector official c
Lgei;c:Lahg;
intermediary field_40549
Lnet/minecraft/class_7766;field_40549:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/texture/SpriteLoader;id:Lnet/minecraft/util/Identifier;
-
maxTextureSize
private final int maxTextureSize- Mappings:
Namespace Name Mixin selector official d
Lgei;d:I
intermediary field_40550
Lnet/minecraft/class_7766;field_40550:I
named maxTextureSize
Lnet/minecraft/client/texture/SpriteLoader;maxTextureSize:I
-
width
private final int width- Mappings:
Namespace Name Mixin selector official e
Lgei;e:I
intermediary field_43111
Lnet/minecraft/class_7766;field_43111:I
named width
Lnet/minecraft/client/texture/SpriteLoader;width:I
-
height
private final int height- Mappings:
Namespace Name Mixin selector official f
Lgei;f:I
intermediary field_43112
Lnet/minecraft/class_7766;field_43112:I
named height
Lnet/minecraft/client/texture/SpriteLoader;height:I
-
-
Constructor Details
-
SpriteLoader
- Mappings:
Namespace Name Mixin selector official <init>
Lgei;<init>(Lahg;III)V
intermediary <init>
Lnet/minecraft/class_7766;<init>(Lnet/minecraft/class_2960;III)V
named <init>
Lnet/minecraft/client/texture/SpriteLoader;<init>(Lnet/minecraft/util/Identifier;III)V
-
-
Method Details
-
fromAtlas
- Mappings:
Namespace Name Mixin selector official a
Lgei;a(Lgem;)Lgei;
intermediary method_45837
Lnet/minecraft/class_7766;method_45837(Lnet/minecraft/class_1059;)Lnet/minecraft/class_7766;
named fromAtlas
Lnet/minecraft/client/texture/SpriteLoader;fromAtlas(Lnet/minecraft/client/texture/SpriteAtlasTexture;)Lnet/minecraft/client/texture/SpriteLoader;
-
stitch
public SpriteLoader.StitchResult stitch(List<SpriteContents> sprites, int mipLevel, Executor executor) - Mappings:
Namespace Name Mixin selector official a
Lgei;a(Ljava/util/List;ILjava/util/concurrent/Executor;)Lgei$a;
intermediary method_47663
Lnet/minecraft/class_7766;method_47663(Ljava/util/List;ILjava/util/concurrent/Executor;)Lnet/minecraft/class_7766$class_7767;
named stitch
Lnet/minecraft/client/texture/SpriteLoader;stitch(Ljava/util/List;ILjava/util/concurrent/Executor;)Lnet/minecraft/client/texture/SpriteLoader$StitchResult;
-
loadAll
public static CompletableFuture<List<SpriteContents>> loadAll(SpriteOpener opener, List<Function<SpriteOpener, SpriteContents>> sources, Executor executor) - Mappings:
Namespace Name Mixin selector official a
Lgei;a(Lgeq;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
intermediary method_47664
Lnet/minecraft/class_7766;method_47664(Lnet/minecraft/class_8684;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
named loadAll
Lnet/minecraft/client/texture/SpriteLoader;loadAll(Lnet/minecraft/client/texture/SpriteOpener;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
load
public CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager resourceManager, Identifier path, int mipLevel, Executor executor) - Mappings:
Namespace Name Mixin selector official a
Lgei;a(Laqi;Lahg;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
intermediary method_52849
Lnet/minecraft/class_7766;method_52849(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
named load
Lnet/minecraft/client/texture/SpriteLoader;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
load
public CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager resourceManager, Identifier path, int mipLevel, Executor executor, Collection<ResourceMetadataReader<?>> metadatas) - Mappings:
Namespace Name Mixin selector official a
Lgei;a(Laqi;Lahg;ILjava/util/concurrent/Executor;Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
intermediary method_47661
Lnet/minecraft/class_7766;method_47661(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;ILjava/util/concurrent/Executor;Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
named load
Lnet/minecraft/client/texture/SpriteLoader;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;ILjava/util/concurrent/Executor;Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
-
collectStitchedSprites
private Map<Identifier,Sprite> collectStitchedSprites(TextureStitcher<SpriteContents> stitcher, int atlasWidth, int atlasHeight) - Mappings:
Namespace Name Mixin selector official a
Lgei;a(Lgek;II)Ljava/util/Map;
intermediary method_45836
Lnet/minecraft/class_7766;method_45836(Lnet/minecraft/class_1055;II)Ljava/util/Map;
named collectStitchedSprites
Lnet/minecraft/client/texture/SpriteLoader;collectStitchedSprites(Lnet/minecraft/client/texture/TextureStitcher;II)Ljava/util/Map;
-