Class ModelElementTexture
java.lang.Object
net.minecraft.client.render.model.json.ModelElementTexture
@Environment(CLIENT) public class ModelElementTexture extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelElementTexture.Deserializer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelElementTexture(float[] uvs, int rotation)
-
Method Summary
Modifier and Type Method Description int
getDirectionIndex(int offset)
private int
getRotatedUVIndex(int rotation)
float
getU(int rotation)
float
getV(int rotation)
void
setUvs(float[] uvs)
-
Field Details
-
uvs
public float[] uvs -
rotation
public final int rotation
-
-
Constructor Details
-
ModelElementTexture
-
-
Method Details
-
getU
public float getU(int rotation) -
getV
public float getV(int rotation) -
getRotatedUVIndex
private int getRotatedUVIndex(int rotation) -
getDirectionIndex
public int getDirectionIndex(int offset) -
setUvs
public void setUvs(float[] uvs)
-