Class TextureAtlasSprite
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
- All Implemented Interfaces:
AutoCloseable
,IForgeTextureAtlasSprite
- Direct Known Subclasses:
MissingTextureSprite
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(package private) final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtlasTexture
private int
private final int[]
private final int[]
private final TextureAtlasSprite.Info
private final TextureAtlasSprite.InterpolationData
protected final NativeImage[]
private final AnimationMetadataSection
private int
private final float
private final float
private final float
private final float
private final int
private final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
TextureAtlasSprite
(AtlasTexture p_i226049_1_, TextureAtlasSprite.Info p_i226049_2_, int p_i226049_3_, int p_i226049_4_, int p_i226049_5_, int p_i226049_6_, int p_i226049_7_, NativeImage p_i226049_8_) -
Method Summary
Modifier and TypeMethodDescriptionatlas()
private float
void
close()
void
int
int
getName()
int
getPixelRGBA
(int frameIndex, int x, int y) float
getU
(double p_94214_1_) float
getU0()
float
getU1()
float
getV
(double p_94207_1_) float
getV0()
float
getV1()
int
getWidth()
boolean
boolean
isTransparent
(int p_195662_1_, int p_195662_2_, int p_195662_3_) toString()
private void
upload
(int p_195659_1_) private void
upload
(int p_195667_1_, int p_195667_2_, NativeImage[] p_195667_3_) void
float
wrap
(IVertexBuilder p_229230_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.extensions.IForgeTextureAtlasSprite
getDependencies, hasCustomLoader, load
-
Field Details
-
atlas
-
info
-
metadata
-
mainImage
-
framesX
private final int[] framesX -
framesY
private final int[] framesY -
interpolationData
-
x
private final int x -
y
private final int y -
u0
private final float u0 -
u1
private final float u1 -
v0
private final float v0 -
v1
private final float v1 -
frame
private int frame -
subFrame
private int subFrame
-
-
Constructor Details
-
TextureAtlasSprite
protected TextureAtlasSprite(AtlasTexture p_i226049_1_, TextureAtlasSprite.Info p_i226049_2_, int p_i226049_3_, int p_i226049_4_, int p_i226049_5_, int p_i226049_6_, int p_i226049_7_, NativeImage p_i226049_8_)
-
-
Method Details
-
upload
private void upload(int p_195659_1_) -
upload
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getU0
public float getU0() -
getU1
public float getU1() -
getU
public float getU(double p_94214_1_) -
getV0
public float getV0() -
getV1
public float getV1() -
getV
public float getV(double p_94207_1_) -
getName
-
atlas
-
getFrameCount
public int getFrameCount() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-
isTransparent
public boolean isTransparent(int p_195662_1_, int p_195662_2_, int p_195662_3_) -
uploadFirstFrame
public void uploadFirstFrame() -
atlasSize
private float atlasSize() -
uvShrinkRatio
public float uvShrinkRatio() -
cycleFrames
public void cycleFrames() -
isAnimation
public boolean isAnimation() -
wrap
-
getPixelRGBA
public int getPixelRGBA(int frameIndex, int x, int y)
-