public class TextureAtlasSprite extends java.lang.Object implements java.lang.AutoCloseable, IForgeTextureAtlasSprite
修飾子とタイプ | クラスと説明 |
---|---|
static class |
TextureAtlasSprite.Info |
修飾子とタイプ | フィールドと説明 |
---|---|
protected NativeImage[] |
frames |
修飾子 | コンストラクタと説明 |
---|---|
protected |
TextureAtlasSprite(AtlasTexture atlasTextureIn,
TextureAtlasSprite.Info spriteInfoIn,
int mipmapLevelsIn,
int atlasWidthIn,
int atlasHeightIn,
int xIn,
int yIn,
NativeImage imageIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close() |
AtlasTexture |
getAtlasTexture() |
int |
getFrameCount() |
int |
getHeight()
Returns the height of the icon, in pixels.
|
float |
getInterpolatedU(double u)
Gets a U coordinate on the icon. 0 returns uMin and 16 returns uMax.
|
float |
getInterpolatedV(double v)
Gets a V coordinate on the icon. 0 returns vMin and 16 returns vMax.
|
float |
getMaxU()
Returns the maximum U coordinate to use when rendering with this icon.
|
float |
getMaxV()
Returns the maximum V coordinate to use when rendering with this icon.
|
float |
getMinU()
Returns the minimum U coordinate to use when rendering with this icon.
|
float |
getMinV()
Returns the minimum V coordinate to use when rendering with this icon.
|
ResourceLocation |
getName() |
int |
getPixelRGBA(int frameIndex,
int x,
int y) |
float |
getUvShrinkRatio() |
int |
getWidth()
Returns the width of the icon, in pixels.
|
boolean |
hasAnimationMetadata() |
boolean |
isPixelTransparent(int frameIndex,
int pixelX,
int pixelY) |
java.lang.String |
toString() |
void |
updateAnimation() |
void |
uploadMipmaps() |
com.mojang.blaze3d.vertex.IVertexBuilder |
wrapBuffer(com.mojang.blaze3d.vertex.IVertexBuilder bufferIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies, hasCustomLoader, load
protected final NativeImage[] frames
protected TextureAtlasSprite(AtlasTexture atlasTextureIn, TextureAtlasSprite.Info spriteInfoIn, int mipmapLevelsIn, int atlasWidthIn, int atlasHeightIn, int xIn, int yIn, NativeImage imageIn)
public int getWidth()
public int getHeight()
public float getMinU()
public float getMaxU()
public float getInterpolatedU(double u)
public float getMinV()
public float getMaxV()
public float getInterpolatedV(double v)
public ResourceLocation getName()
public AtlasTexture getAtlasTexture()
public int getFrameCount()
public void close()
close
インタフェース内 java.lang.AutoCloseable
public java.lang.String toString()
toString
クラス内 java.lang.Object
public boolean isPixelTransparent(int frameIndex, int pixelX, int pixelY)
public void uploadMipmaps()
public float getUvShrinkRatio()
public void updateAnimation()
public boolean hasAnimationMetadata()
public com.mojang.blaze3d.vertex.IVertexBuilder wrapBuffer(com.mojang.blaze3d.vertex.IVertexBuilder bufferIn)
public int getPixelRGBA(int frameIndex, int x, int y)