Class SpriteLoader
java.lang.Object
net.minecraft.client.renderer.texture.SpriteLoader
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Set
<MetadataSectionSerializer<?>> private 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_) loadAndStitch
(ResourceManager p_295469_, ResourceLocation p_294925_, int p_294855_, Executor p_294720_, Collection<MetadataSectionSerializer<?>> p_294816_) static CompletableFuture
<List<SpriteContents>> runSpriteSuppliers
(SpriteResourceLoader p_294961_, List<Function<SpriteResourceLoader, SpriteContents>> p_261516_, Executor p_261791_) stitch
(List<SpriteContents> p_262029_, int p_261919_, Executor p_261665_)
-
Field Details
-
DEFAULT_METADATA_SECTIONS
-
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(SpriteResourceLoader p_294961_, List<Function<SpriteResourceLoader, SpriteContents>> p_261516_, Executor p_261791_) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager p_262108_, ResourceLocation p_261754_, int p_262104_, Executor p_261687_) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager p_295469_, ResourceLocation p_294925_, int p_294855_, Executor p_294720_, Collection<MetadataSectionSerializer<?>> p_294816_) -
getStitchedSprites
private Map<ResourceLocation,TextureAtlasSprite> getStitchedSprites(Stitcher<SpriteContents> p_276117_, int p_276111_, int p_276112_)
-