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 classModelElementTexture.Deserializer -
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelElementTexture(float[] uvs, int rotation) -
Method Summary
Modifier and Type Method Description intgetDirectionIndex(int offset)private intgetRotatedUVIndex(int rotation)floatgetU(int rotation)floatgetV(int rotation)voidsetUvs(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)
-