Class SpriteLoader
java.lang.Object
net.minecraft.client.renderer.texture.SpriteLoader
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<MetadataSectionSerializer<?>> private final ResourceLocationprivate static final org.slf4j.Loggerprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSpriteLoader(ResourceLocation location, int maxSupportedTextureSize, int minWidth, int minHeight) -
Method Summary
Modifier and TypeMethodDescriptionstatic SpriteLoadercreate(TextureAtlas atlas) private Map<ResourceLocation, TextureAtlasSprite> getStitchedSprites(Stitcher<SpriteContents> stitcher, int x, int y) loadAndStitch(ResourceManager resouceManager, ResourceLocation location, int mipLevel, Executor executor) loadAndStitch(ResourceManager resourceManager, ResourceLocation location, int mipLevel, Executor executor, Collection<MetadataSectionSerializer<?>> sectionSerializers) static CompletableFuture<List<SpriteContents>> runSpriteSuppliers(SpriteResourceLoader spriteResourceLoader, List<Function<SpriteResourceLoader, SpriteContents>> factories, Executor executor) stitch(List<SpriteContents> contents, int mipLevel, Executor executor)
-
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
public SpriteLoader(ResourceLocation location, int maxSupportedTextureSize, int minWidth, int minHeight)
-
-
Method Details
-
create
-
stitch
public SpriteLoader.Preparations stitch(List<SpriteContents> contents, int mipLevel, Executor executor) -
runSpriteSuppliers
public static CompletableFuture<List<SpriteContents>> runSpriteSuppliers(SpriteResourceLoader spriteResourceLoader, List<Function<SpriteResourceLoader, SpriteContents>> factories, Executor executor) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager resouceManager, ResourceLocation location, int mipLevel, Executor executor) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager resourceManager, ResourceLocation location, int mipLevel, Executor executor, Collection<MetadataSectionSerializer<?>> sectionSerializers) -
getStitchedSprites
private Map<ResourceLocation,TextureAtlasSprite> getStitchedSprites(Stitcher<SpriteContents> stitcher, int x, int y)
-