Class SpriteContents
java.lang.Object
net.minecraft.client.renderer.texture.SpriteContents
- All Implemented Interfaces:
AutoCloseable
,Stitcher.Entry
-
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
final ForgeTextureMetadata
(package private) final int
private static final org.slf4j.Logger
private final ResourceLocation
private final NativeImage
(package private) final int
-
Constructor Summary
ConstructorDescriptionSpriteContents
(ResourceLocation p_249787_, FrameSize p_251031_, NativeImage p_252131_, AnimationMetadataSection p_250432_) Deprecated.Forge: Use the overload with Forge metadata parameter to properly forward custom loaders.SpriteContents
(ResourceLocation p_249787_, FrameSize p_251031_, NativeImage p_252131_, AnimationMetadataSection p_250432_, ForgeTextureMetadata forgeMeta) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private SpriteContents.AnimatedTexture
createAnimatedTexture
(FrameSize p_250817_, int p_249792_, int p_252353_, AnimationMetadataSection p_250947_) (package private) int
int
height()
void
increaseMipLevel
(int p_248864_) boolean
isTransparent
(int p_250374_, int p_250934_, int p_249573_) 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
-
forgeMeta
-
-
Constructor Details
-
SpriteContents
@Deprecated public SpriteContents(ResourceLocation p_249787_, FrameSize p_251031_, NativeImage p_252131_, AnimationMetadataSection p_250432_) Deprecated.Forge: Use the overload with Forge metadata parameter to properly forward custom loaders. -
SpriteContents
public SpriteContents(ResourceLocation p_249787_, FrameSize p_251031_, NativeImage p_252131_, AnimationMetadataSection p_250432_, @Nullable ForgeTextureMetadata forgeMeta)
-
-
Method Details
-
getOriginalImage
-
increaseMipLevel
public void increaseMipLevel(int p_248864_) -
getFrameCount
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
-
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_)
-