Class SpriteContents
java.lang.Object
net.minecraft.client.renderer.texture.SpriteContents
- All Implemented Interfaces:
AutoCloseable
,Stitcher.Entry
- Direct Known Subclasses:
CustomSpriteSourceTest.CustomSpriteSource.CustomSpriteContents
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) static class
(package private) final class
(package private) class
-
Field Summary
Modifier and TypeFieldDescription(package private) final SpriteContents.AnimatedTexture
(package private) final int
private static final org.slf4j.Logger
private final ResourceMetadata
private final ResourceLocation
private final NativeImage
(package private) final int
-
Constructor Summary
ConstructorDescriptionSpriteContents
(ResourceLocation p_249787_, FrameSize p_251031_, NativeImage p_252131_, ResourceMetadata p_294742_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private SpriteContents.AnimatedTexture
createAnimatedTexture
(FrameSize p_250817_, int p_249792_, int p_252353_, AnimationMetadataSection p_250947_) private int
int
height()
void
increaseMipLevel
(int p_248864_) boolean
isTransparent
(int p_250374_, int p_250934_, int p_249573_) metadata()
name()
toString()
(package private) void
upload
(int p_248895_, int p_250245_, int p_250458_, int p_251337_, NativeImage[] p_248825_) void
uploadFirstFrame
(int p_252315_, int p_248634_) int
width()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
name
-
width
final int width -
height
final int height -
originalImage
-
byMipLevel
-
animatedTexture
-
metadata
-
-
Constructor Details
-
SpriteContents
public SpriteContents(ResourceLocation p_249787_, FrameSize p_251031_, NativeImage p_252131_, ResourceMetadata p_294742_)
-
-
Method Details
-
getOriginalImage
-
increaseMipLevel
public void increaseMipLevel(int p_248864_) -
getFrameCount
private int getFrameCount() -
createAnimatedTexture
@Nullable private SpriteContents.AnimatedTexture createAnimatedTexture(FrameSize p_250817_, int p_249792_, int p_252353_, AnimationMetadataSection p_250947_) -
upload
-
width
public int width()- Specified by:
width
in interfaceStitcher.Entry
-
height
public int height()- Specified by:
height
in interfaceStitcher.Entry
-
name
- Specified by:
name
in interfaceStitcher.Entry
-
getUniqueFrames
-
createTicker
-
metadata
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-
isTransparent
public boolean isTransparent(int p_250374_, int p_250934_, int p_249573_) -
uploadFirstFrame
public void uploadFirstFrame(int p_252315_, int p_248634_)
-