public final class ItemTextureQuadConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<UnpackedBakedQuad> |
convertTexture(VertexFormat format,
TRSRTransformation transform,
TextureAtlasSprite template,
TextureAtlasSprite sprite,
float z,
Direction facing,
int color,
int tint)
Takes a texture and converts it into BakedQuads.
|
static java.util.List<UnpackedBakedQuad> |
convertTextureHorizontal(VertexFormat format,
TRSRTransformation transform,
TextureAtlasSprite template,
TextureAtlasSprite sprite,
float z,
Direction facing,
int color,
int tint)
Scans a texture and converts it into a list of horizontal strips stacked on top of each other.
|
static java.util.List<UnpackedBakedQuad> |
convertTextureVertical(VertexFormat format,
TRSRTransformation transform,
TextureAtlasSprite template,
TextureAtlasSprite sprite,
float z,
Direction facing,
int color,
int tint)
Scans a texture and converts it into a list of vertical strips stacked next to each other from left to right.
|
static UnpackedBakedQuad |
genQuad(VertexFormat format,
TRSRTransformation transform,
float x1,
float y1,
float x2,
float y2,
float z,
TextureAtlasSprite sprite,
Direction facing,
int color,
int tint)
Generates a Front/Back quad for an itemmodel.
|
public static java.util.List<UnpackedBakedQuad> convertTexture(VertexFormat format, TRSRTransformation transform, TextureAtlasSprite template, TextureAtlasSprite sprite, float z, Direction facing, int color, int tint)
format
- template
- The input texture to convertsprite
- The texture whose UVs shall be usedpublic static java.util.List<UnpackedBakedQuad> convertTextureHorizontal(VertexFormat format, TRSRTransformation transform, TextureAtlasSprite template, TextureAtlasSprite sprite, float z, Direction facing, int color, int tint)
public static java.util.List<UnpackedBakedQuad> convertTextureVertical(VertexFormat format, TRSRTransformation transform, TextureAtlasSprite template, TextureAtlasSprite sprite, float z, Direction facing, int color, int tint)
public static UnpackedBakedQuad genQuad(VertexFormat format, TRSRTransformation transform, float x1, float y1, float x2, float y2, float z, TextureAtlasSprite sprite, Direction facing, int color, int tint)