IAsset, IDisposablepublic interface ITexture extends IAsset
| Modifier and Type | Field | Description |
|---|---|---|
static int |
BOTTOM_LEFT |
|
static int |
BOTTOM_RIGHT |
|
static IResourceName |
ID |
|
static int |
TOP_LEFT |
|
static int |
TOP_RIGHT |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bind() |
|
void |
bind(TextureBank bank,
boolean revertAfterBind) |
|
void |
draw(float x,
float y) |
|
void |
draw(float x,
float y,
float scale) |
|
void |
draw(float x,
float y,
float width,
float height) |
|
void |
draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2) |
|
void |
draw(float x,
float y,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4,
float srcX,
float srcY,
float srcX2,
float srcY2,
int[] light,
int filter) |
|
void |
draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2,
int filter) |
|
void |
draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2,
int[] light) |
|
void |
draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2,
int[] light,
int filter) |
|
void |
draw(float x,
float y,
float width,
float height,
int filter) |
|
void |
draw(float x,
float y,
float width,
float height,
int[] light) |
|
void |
draw(float x,
float y,
float width,
float height,
int[] light,
int filter) |
|
com.google.gson.JsonElement |
getAdditionalData(java.lang.String name) |
|
int |
getId() |
|
java.nio.ByteBuffer |
getPixelData() |
|
ITexture |
getPositionalVariation(int x,
int y) |
|
int |
getRenderHeight() |
|
int |
getRenderOffsetX() |
|
int |
getRenderOffsetY() |
|
int |
getRenderWidth() |
|
ITexture |
getSubTexture(int x,
int y,
int width,
int height) |
|
ITexture |
getSubTexture(int x,
int y,
int width,
int height,
boolean inheritVariations,
boolean inheritData) |
|
int |
getTextureColor(int x,
int y) |
|
int |
getTextureHeight() |
|
int |
getTextureWidth() |
|
ITexture |
getVariation(java.util.Random random) |
|
void |
param(int param,
int value) |
|
void |
setAdditionalData(java.util.Map<java.lang.String,com.google.gson.JsonElement> data) |
|
void |
setVariations(java.util.List<ITexture> variations) |
|
void |
unbind() |
|
void |
unbind(TextureBank bank,
boolean revertAfterUnbind) |
disposestatic final IResourceName ID
static final int TOP_LEFT
static final int BOTTOM_LEFT
static final int BOTTOM_RIGHT
static final int TOP_RIGHT
void bind(TextureBank bank, boolean revertAfterBind)
void bind()
void param(int param,
int value)
int getId()
int getTextureWidth()
int getTextureHeight()
java.nio.ByteBuffer getPixelData()
void unbind(TextureBank bank, boolean revertAfterUnbind)
void unbind()
void draw(float x,
float y)
void draw(float x,
float y,
float scale)
void draw(float x,
float y,
float width,
float height)
void draw(float x,
float y,
float width,
float height,
int[] light)
void draw(float x,
float y,
float width,
float height,
int filter)
void draw(float x,
float y,
float width,
float height,
int[] light,
int filter)
void draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2)
void draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2,
int[] light)
void draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2,
int filter)
void draw(float x,
float y,
float x2,
float y2,
float srcX,
float srcY,
float srcX2,
float srcY2,
int[] light,
int filter)
void draw(float x,
float y,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4,
float srcX,
float srcY,
float srcX2,
float srcY2,
int[] light,
int filter)
@ApiInternal void setAdditionalData(java.util.Map<java.lang.String,com.google.gson.JsonElement> data)
@ApiInternal void setVariations(java.util.List<ITexture> variations)
com.google.gson.JsonElement getAdditionalData(java.lang.String name)
ITexture getVariation(java.util.Random random)
ITexture getPositionalVariation(int x, int y)
ITexture getSubTexture(int x, int y, int width, int height)
ITexture getSubTexture(int x, int y, int width, int height, boolean inheritVariations, boolean inheritData)
int getTextureColor(int x,
int y)
int getRenderWidth()
int getRenderHeight()
int getRenderOffsetX()
int getRenderOffsetY()