Class SpriteLoader
java.lang.Object
net.minecraft.client.renderer.texture.SpriteLoader
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private static final org.slf4j.Logger
private final int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionSpriteLoader
(ResourceLocation p_276126_, int p_276121_, int p_276110_, int p_276114_) -
Method Summary
Modifier and TypeMethodDescriptionstatic SpriteLoader
create
(TextureAtlas p_249085_) private Map<ResourceLocation,
TextureAtlasSprite> getStitchedSprites
(Stitcher<SpriteContents> p_276117_, int p_276111_, int p_276112_) loadAndStitch
(ResourceManager p_262108_, ResourceLocation p_261754_, int p_262104_, Executor p_261687_) static SpriteContents
loadSprite
(ResourceLocation p_251630_, Resource p_250558_) static CompletableFuture<List<SpriteContents>>
runSpriteSuppliers
(List<Supplier<SpriteContents>> p_261516_, Executor p_261791_) stitch
(List<SpriteContents> p_262029_, int p_261919_, Executor p_261665_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
location
-
maxSupportedTextureSize
private final int maxSupportedTextureSize -
minWidth
private final int minWidth -
minHeight
private final int minHeight
-
-
Constructor Details
-
SpriteLoader
-
-
Method Details
-
create
-
stitch
public SpriteLoader.Preparations stitch(List<SpriteContents> p_262029_, int p_261919_, Executor p_261665_) -
runSpriteSuppliers
public static CompletableFuture<List<SpriteContents>> runSpriteSuppliers(List<Supplier<SpriteContents>> p_261516_, Executor p_261791_) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager p_262108_, ResourceLocation p_261754_, int p_262104_, Executor p_261687_) -
loadSprite
-
getStitchedSprites
private Map<ResourceLocation,TextureAtlasSprite> getStitchedSprites(Stitcher<SpriteContents> p_276117_, int p_276111_, int p_276112_)
-