Class SpriteContents
java.lang.Object
net.minecraft.client.renderer.texture.SpriteContents
- All Implemented Interfaces:
AutoCloseable
,Stitcher.Entry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
(package private) static class
(package private) final class
(package private) class
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionSpriteContents
(ResourceLocation name, FrameSize frameSize, NativeImage originalImage, ResourceMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private SpriteContents.AnimatedTexture
createAnimatedTexture
(FrameSize frameSize, int width, int height, AnimationMetadataSection metadata) private int
int
height()
void
increaseMipLevel
(int mipLevel) boolean
isTransparent
(int frame, int x, int y) metadata()
name()
toString()
(package private) void
upload
(int x, int y, int frameX, int frameY, NativeImage[] atlasData) void
uploadFirstFrame
(int x, int y) 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 name, FrameSize frameSize, NativeImage originalImage, ResourceMetadata metadata)
-
-
Method Details
-
getOriginalImage
-
increaseMipLevel
public void increaseMipLevel(int mipLevel) -
getFrameCount
private int getFrameCount() -
createAnimatedTexture
@Nullable private SpriteContents.AnimatedTexture createAnimatedTexture(FrameSize frameSize, int width, int height, AnimationMetadataSection metadata) -
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 frame, int x, int y) -
uploadFirstFrame
public void uploadFirstFrame(int x, int y)
-