Class TextureAtlasSprite
java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
- All Implemented Interfaces:
AutoCloseable,IForgeTextureAtlasSprite
- Direct Known Subclasses:
MissingTextureAtlasSprite
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) static classstatic class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TextureAtlas(package private) intprivate static org.apache.logging.log4j.Loggerprotected NativeImage[]private ResourceLocationprivate floatprivate floatprivate floatprivate float(package private) intprivate intprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextureAtlasSprite(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 floatvoidclose()createTicker(TextureAtlasSprite.Info p_174730_, int p_174731_, int p_174732_, int p_174733_)intintgetName()intgetPixelRGBA(int frameIndex, int x, int y)floatgetU(double p_118368_)floatgetU0()floatgetU1()floatgetUOffset(float p_174728_)floatgetV(double p_118394_)floatgetV0()floatgetV1()floatgetVOffset(float p_174742_)intgetWidth()intgetX()intgetY()booleanisTransparent(int p_118372_, int p_118373_, int p_118374_)toString()(package private) voidupload(int p_118376_, int p_118377_, NativeImage[] p_118378_)voidfloatwrap(VertexConsumer p_118382_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
closein 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)
-