Class ModelElement
java.lang.Object
net.minecraft.client.render.model.json.ModelElement
@Environment(CLIENT) public class ModelElement extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelElement.Deserializer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelElement(Vec3f from, Vec3f to, Map<Direction,ModelElementFace> faces, ModelRotation rotation, boolean shade)
-
Method Summary
Modifier and Type Method Description private float[]
getRotatedMatrix(Direction direction)
private void
initTextures()
-
Field Details
-
from
-
to
-
faces
-
rotation
-
shade
public final boolean shade
-
-
Constructor Details
-
ModelElement
public ModelElement(Vec3f from, Vec3f to, Map<Direction,ModelElementFace> faces, @Nullable ModelRotation rotation, boolean shade)
-
-
Method Details
-
initTextures
private void initTextures() -
getRotatedMatrix
-