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,
EnumFacing facing,
int color)
Takes a texture and converts it into BakedQuads.
|
static java.util.List<UnpackedBakedQuad> |
convertTextureHorizontal(VertexFormat format,
TRSRTransformation transform,
TextureAtlasSprite template,
TextureAtlasSprite sprite,
float z,
EnumFacing facing,
int color)
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,
EnumFacing facing,
int color)
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,
EnumFacing facing,
int color)
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, EnumFacing facing, int color)
format
- template
- The input texture to convertsprite
- The texture whose UVs shall be used @return The generated quads.public static java.util.List<UnpackedBakedQuad> convertTextureHorizontal(VertexFormat format, TRSRTransformation transform, TextureAtlasSprite template, TextureAtlasSprite sprite, float z, EnumFacing facing, int color)
public static java.util.List<UnpackedBakedQuad> convertTextureVertical(VertexFormat format, TRSRTransformation transform, TextureAtlasSprite template, TextureAtlasSprite sprite, float z, EnumFacing facing, int color)
public static UnpackedBakedQuad genQuad(VertexFormat format, TRSRTransformation transform, float x1, float y1, float x2, float y2, float z, TextureAtlasSprite sprite, EnumFacing facing, int color)