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 ResourceLocation
private static final org.slf4j.Logger
private final int
private final int
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionSpriteLoader
(ResourceLocation pLocation, int pMaxSupportedTextureSize, int pMinWidth, int pMinHeight) -
Method Summary
Modifier and TypeMethodDescriptionstatic SpriteLoader
create
(TextureAtlas pAtlas) private Map
<ResourceLocation, TextureAtlasSprite> getStitchedSprites
(Stitcher<SpriteContents> pStitcher, int pX, int pY) loadAndStitch
(ResourceManager pResouceManager, ResourceLocation pLocation, int pMipLevel, Executor pExecutor) loadAndStitch
(ResourceManager pResourceManager, ResourceLocation pLocation, int pMipLevel, Executor pExecutor, Collection<MetadataSectionSerializer<?>> pSectionSerializers) static CompletableFuture
<List<SpriteContents>> runSpriteSuppliers
(SpriteResourceLoader pSpriteResourceLoader, List<Function<SpriteResourceLoader, SpriteContents>> pFactories, Executor pExecutor) stitch
(List<SpriteContents> pContents, int pMipLevel, Executor pExecutor)
-
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 pLocation, int pMaxSupportedTextureSize, int pMinWidth, int pMinHeight)
-
-
Method Details
-
create
-
stitch
public SpriteLoader.Preparations stitch(List<SpriteContents> pContents, int pMipLevel, Executor pExecutor) -
runSpriteSuppliers
public static CompletableFuture<List<SpriteContents>> runSpriteSuppliers(SpriteResourceLoader pSpriteResourceLoader, List<Function<SpriteResourceLoader, SpriteContents>> pFactories, Executor pExecutor) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager pResouceManager, ResourceLocation pLocation, int pMipLevel, Executor pExecutor) -
loadAndStitch
public CompletableFuture<SpriteLoader.Preparations> loadAndStitch(ResourceManager pResourceManager, ResourceLocation pLocation, int pMipLevel, Executor pExecutor, Collection<MetadataSectionSerializer<?>> pSectionSerializers) -
getStitchedSprites
private Map<ResourceLocation,TextureAtlasSprite> getStitchedSprites(Stitcher<SpriteContents> pStitcher, int pX, int pY)
-