Class TextureAtlasSprite
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
- All Implemented Interfaces:
AutoCloseable
,IForgeTextureAtlasSprite
- Direct Known Subclasses:
MissingTextureAtlasSprite
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) static class
static class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate TextureAtlas
(package private) int
private static org.apache.logging.log4j.Logger
protected NativeImage[]
private ResourceLocation
private float
private float
private float
private float
(package private) int
private int
private int
-
Constructor Summary
ModifierConstructorDescriptionprotected
TextureAtlasSprite(TextureAtlas p_118358_, TextureAtlasSprite.Info p_118359_, int p_118360_, int p_118361_, int p_118362_, int p_118363_, int p_118364_, NativeImage p_118365_)
-
Method Summary
Modifier and TypeMethodDescriptionatlas()
private float
void
close()
createTicker(TextureAtlasSprite.Info p_174730_, int p_174731_, int p_174732_, int p_174733_)
int
int
getName()
int
getPixelRGBA(int frameIndex, int x, int y)
float
getU(double p_118368_)
float
getU0()
float
getU1()
float
getUOffset(float p_174728_)
float
getV(double p_118394_)
float
getV0()
float
getV1()
float
getVOffset(float p_174742_)
int
getWidth()
int
getX()
int
getY()
boolean
isTransparent(int p_118372_, int p_118373_, int p_118374_)
toString()
(package private) void
upload(int p_118376_, int p_118377_, NativeImage[] p_118378_)
void
float
wrap(VertexConsumer p_118382_)
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
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
atlas
-
name
-
width
final int width -
height
final int height -
mainImage
-
animatedTexture
-
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
-
-
Constructor Details
-
TextureAtlasSprite
protected TextureAtlasSprite(TextureAtlas p_118358_, TextureAtlasSprite.Info p_118359_, int p_118360_, int p_118361_, int p_118362_, int p_118363_, int p_118364_, NativeImage p_118365_)
-
-
Method Details
-
getFrameCount
public int getFrameCount() -
createTicker
@Nullable private TextureAtlasSprite.AnimatedTexture createTicker(TextureAtlasSprite.Info p_174730_, int p_174731_, int p_174732_, int p_174733_) -
upload
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getU0
public float getU0() -
getU1
public float getU1() -
getU
public float getU(double p_118368_) -
getUOffset
public float getUOffset(float p_174728_) -
getV0
public float getV0() -
getV1
public float getV1() -
getV
public float getV(double p_118394_) -
getVOffset
public float getVOffset(float p_174742_) -
getName
-
atlas
-
getUniqueFrames
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-
isTransparent
public boolean isTransparent(int p_118372_, int p_118373_, int p_118374_) -
uploadFirstFrame
public void uploadFirstFrame() -
atlasSize
private float atlasSize() -
uvShrinkRatio
public float uvShrinkRatio() -
getAnimationTicker
-
wrap
-
getPixelRGBA
public int getPixelRGBA(int frameIndex, int x, int y)
-