public class TextureWrapper
extends java.lang.Object
| Constructor and Description |
|---|
TextureWrapper() |
TextureWrapper(ResourceLocationAPI<?> texture,
ColorCache mask,
float alpha,
double maxU,
double maxV) |
TextureWrapper(TextureWrapper other) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(RenderAPI renderer) |
void |
bind(RenderContext ctx) |
void |
draw(RenderContext ctx,
Vector3 center) |
ColorCache |
getColorMask(boolean withAlpha) |
Vector2 |
getVectorU()
x = minV ; y = maxV
|
Vector4 |
getVectorUV()
x = minU ; y = minV ; z = maxU ; w = maxV
|
Vector2 |
getVectorV()
x = minU ; y = maxU
|
static TextureWrapper |
of(ResourceLocationAPI<?> texture) |
static TextureWrapper |
of(ResourceLocationAPI<?> texture,
ColorCache colorMask) |
static TextureWrapper |
of(ResourceLocationAPI<?> texture,
ColorCache colorMask,
float alpha) |
static TextureWrapper |
of(ResourceLocationAPI<?> texture,
ColorCache colorMask,
float alpha,
double maxU,
double maxV) |
static TextureWrapper |
of(ResourceLocationAPI<?> texture,
ColorCache colorMask,
float alpha,
double width,
double height,
double maxU,
double maxV,
double minU,
double minV) |
static TextureWrapper |
of(ResourceLocationAPI<?> texture,
ColorCache colorMask,
float alpha,
Vector2 maxUV) |
static TextureWrapper |
of(java.lang.String path) |
static TextureWrapper |
of(java.lang.String path,
ColorCache colorMask) |
static TextureWrapper |
of(java.lang.String path,
ColorCache colorMask,
float alpha) |
static TextureWrapper |
of(java.lang.String path,
ColorCache colorMask,
float alpha,
double maxU,
double maxV) |
static TextureWrapper |
of(java.lang.String path,
ColorCache colorMask,
float alpha,
Vector2 maxUV) |
static TextureWrapper |
of(java.lang.String modid,
java.lang.String path) |
static TextureWrapper |
of(java.lang.String modid,
java.lang.String path,
ColorCache colorMask) |
static TextureWrapper |
of(java.lang.String modid,
java.lang.String path,
ColorCache colorMask,
float alpha) |
static TextureWrapper |
of(java.lang.String modid,
java.lang.String path,
ColorCache colorMask,
float alpha,
double maxU,
double maxV) |
static TextureWrapper |
of(java.lang.String modid,
java.lang.String path,
ColorCache colorMask,
float alpha,
Vector2 maxUV) |
TextureWrapper |
setAlpha(float alpha) |
TextureWrapper |
setHeight(double height) |
TextureWrapper |
setMask(ColorCache mask) |
TextureWrapper |
setMaskF(float r,
float g,
float b) |
TextureWrapper |
setMaskF(float r,
float g,
float b,
float a) |
TextureWrapper |
setMaskF(Vector3 rgb) |
TextureWrapper |
setMaskF(Vector3 rgb,
float alpha) |
TextureWrapper |
setMaskF(Vector4 rgba) |
TextureWrapper |
setMaskI(int r,
int g,
int b) |
TextureWrapper |
setMaskI(int r,
int g,
int b,
int a) |
TextureWrapper |
setMaskI(Vector3 rgb) |
TextureWrapper |
setMaskI(Vector3 rgb,
int alpha) |
TextureWrapper |
setMaxU(double max) |
TextureWrapper |
setMaxV(double max) |
TextureWrapper |
setMinU(double max) |
TextureWrapper |
setMinV(double max) |
TextureWrapper |
setSize(double width,
double height) |
TextureWrapper |
setTexture(ResourceLocationAPI<?> texture) |
TextureWrapper |
setU(double min,
double max) |
TextureWrapper |
setU(Vector2 minMax) |
TextureWrapper |
setUV(double minU,
double minV,
double maxU,
double maxV) |
TextureWrapper |
setUV(Vector4 uv) |
TextureWrapper |
setV(double min,
double max) |
TextureWrapper |
setV(Vector2 minMax) |
TextureWrapper |
setWidth(double width) |
public TextureWrapper()
public TextureWrapper(TextureWrapper other)
public TextureWrapper(ResourceLocationAPI<?> texture, ColorCache mask, float alpha, double maxU, double maxV)
public static TextureWrapper of(java.lang.String path)
public static TextureWrapper of(java.lang.String modid, java.lang.String path)
public static TextureWrapper of(ResourceLocationAPI<?> texture)
public static TextureWrapper of(java.lang.String path, ColorCache colorMask)
public static TextureWrapper of(java.lang.String modid, java.lang.String path, ColorCache colorMask)
public static TextureWrapper of(ResourceLocationAPI<?> texture, ColorCache colorMask)
public static TextureWrapper of(java.lang.String path, ColorCache colorMask, float alpha)
public static TextureWrapper of(java.lang.String modid, java.lang.String path, ColorCache colorMask, float alpha)
public static TextureWrapper of(ResourceLocationAPI<?> texture, ColorCache colorMask, float alpha)
public static TextureWrapper of(java.lang.String path, ColorCache colorMask, float alpha, Vector2 maxUV)
public static TextureWrapper of(java.lang.String path, ColorCache colorMask, float alpha, double maxU, double maxV)
public static TextureWrapper of(java.lang.String modid, java.lang.String path, ColorCache colorMask, float alpha, Vector2 maxUV)
public static TextureWrapper of(java.lang.String modid, java.lang.String path, ColorCache colorMask, float alpha, double maxU, double maxV)
public static TextureWrapper of(ResourceLocationAPI<?> texture, ColorCache colorMask, float alpha, Vector2 maxUV)
public static TextureWrapper of(ResourceLocationAPI<?> texture, ColorCache colorMask, float alpha, double maxU, double maxV)
public static TextureWrapper of(ResourceLocationAPI<?> texture, ColorCache colorMask, float alpha, double width, double height, double maxU, double maxV, double minU, double minV)
public void bind(RenderContext ctx)
public void bind(RenderAPI renderer)
public void draw(RenderContext ctx, Vector3 center)
public ColorCache getColorMask(boolean withAlpha)
public Vector2 getVectorU()
public Vector2 getVectorV()
public Vector4 getVectorUV()
public TextureWrapper setAlpha(float alpha)
public TextureWrapper setHeight(double height)
public TextureWrapper setMaskF(float r, float g, float b)
public TextureWrapper setMaskF(float r, float g, float b, float a)
public TextureWrapper setMaskF(Vector3 rgb)
public TextureWrapper setMaskF(Vector3 rgb, float alpha)
public TextureWrapper setMaskF(Vector4 rgba)
public TextureWrapper setMaskI(int r, int g, int b)
public TextureWrapper setMaskI(int r, int g, int b, int a)
public TextureWrapper setMaskI(Vector3 rgb)
public TextureWrapper setMaskI(Vector3 rgb, int alpha)
public TextureWrapper setMask(ColorCache mask)
public TextureWrapper setMaxU(double max)
public TextureWrapper setMaxV(double max)
public TextureWrapper setMinU(double max)
public TextureWrapper setMinV(double max)
public TextureWrapper setSize(double width, double height)
public TextureWrapper setTexture(ResourceLocationAPI<?> texture)
public TextureWrapper setU(Vector2 minMax)
public TextureWrapper setU(double min, double max)
public TextureWrapper setUV(Vector4 uv)
public TextureWrapper setUV(double minU, double minV, double maxU, double maxV)
public TextureWrapper setV(Vector2 minMax)
public TextureWrapper setV(double min, double max)
public TextureWrapper setWidth(double width)