Class TextureAtlasSprite
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
- Direct Known Subclasses:
UnitTextureAtlasSprite
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocation
private final SpriteContents
private final float
private final float
private final float
private final float
(package private) final int
(package private) final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TextureAtlasSprite
(ResourceLocation atlasLocation, SpriteContents contents, int originX, int originY, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionprivate float
contents()
int
getPixelRGBA
(int frameIndex, int x, int y) float
getU
(float u) float
getU0()
float
getU1()
float
getUOffset
(float offset) float
getV
(float v) float
getV0()
float
getV1()
float
getVOffset
(float offset) int
getX()
int
getY()
toString()
void
float
wrap
(VertexConsumer consumer)
-
Field Details
-
atlasLocation
-
contents
-
x
final int x -
y
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(ResourceLocation atlasLocation, SpriteContents contents, int originX, int originY, int x, int y)
-
-
Method Details
-
getX
public int getX() -
getY
public int getY() -
getU0
public float getU0() -
getU1
public float getU1() -
contents
-
createTicker
-
getU
public float getU(float u) -
getUOffset
public float getUOffset(float offset) -
getV0
public float getV0() -
getV1
public float getV1() -
getV
public float getV(float v) -
getVOffset
public float getVOffset(float offset) -
atlasLocation
-
toString
-
uploadFirstFrame
public void uploadFirstFrame() -
atlasSize
private float atlasSize() -
uvShrinkRatio
public float uvShrinkRatio() -
wrap
-
getPixelRGBA
public int getPixelRGBA(int frameIndex, int x, int y)
-