类 TextureAtlasSprite
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
- 直接已知子类:
UnitTextureAtlasSprite
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final ResourceLocation
private final SpriteContents
private final float
private final float
private final float
private final float
(专用程序包) final int
(专用程序包) final int
-
构造器概要
构造器限定符构造器说明protected
TextureAtlasSprite
(ResourceLocation p_250211_, SpriteContents p_248526_, int p_248950_, int p_249741_, int p_248672_, int p_248637_) -
方法概要
修饰符和类型方法说明private float
contents()
int
getPixelRGBA
(int frameIndex, int x, int y) float
getU
(float p_298825_) float
getU0()
float
getU1()
float
getUOffset
(float p_174728_) float
getV
(float p_299087_) float
getV0()
float
getV1()
float
getVOffset
(float p_174742_) int
getX()
int
getY()
toString()
void
float
wrap
(VertexConsumer p_118382_)
-
字段详细资料
-
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
-
-
构造器详细资料
-
TextureAtlasSprite
protected TextureAtlasSprite(ResourceLocation p_250211_, SpriteContents p_248526_, int p_248950_, int p_249741_, int p_248672_, int p_248637_)
-
-
方法详细资料
-
getX
public int getX() -
getY
public int getY() -
getU0
public float getU0() -
getU1
public float getU1() -
contents
-
createTicker
-
getU
public float getU(float p_298825_) -
getUOffset
public float getUOffset(float p_174728_) -
getV0
public float getV0() -
getV1
public float getV1() -
getV
public float getV(float p_299087_) -
getVOffset
public float getVOffset(float p_174742_) -
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)
-