public class ModelBuilder.ElementBuilder.FaceBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Direction |
cullface |
private ModelBuilder.FaceRotation |
rotation |
private java.lang.String |
texture |
private int |
tintindex |
private float[] |
uvs |
Constructor and Description |
---|
FaceBuilder(Direction dir) |
Modifier and Type | Method and Description |
---|---|
(package private) BlockPartFace |
build() |
ModelBuilder.ElementBuilder.FaceBuilder |
cullface(Direction dir) |
ModelBuilder.ElementBuilder |
end() |
ModelBuilder.ElementBuilder.FaceBuilder |
rotation(ModelBuilder.FaceRotation rot)
Set the texture rotation for the current face.
|
ModelBuilder.ElementBuilder.FaceBuilder |
texture(java.lang.String texture)
Set the texture for the current face.
|
ModelBuilder.ElementBuilder.FaceBuilder |
tintindex(int index) |
ModelBuilder.ElementBuilder.FaceBuilder |
uvs(float u1,
float v1,
float u2,
float v2) |
private Direction cullface
private int tintindex
private java.lang.String texture
private float[] uvs
private ModelBuilder.FaceRotation rotation
FaceBuilder(Direction dir)
public ModelBuilder.ElementBuilder.FaceBuilder cullface(@Nullable Direction dir)
public ModelBuilder.ElementBuilder.FaceBuilder tintindex(int index)
public ModelBuilder.ElementBuilder.FaceBuilder texture(java.lang.String texture)
texture
- the texturejava.lang.NullPointerException
- if texture
is null
public ModelBuilder.ElementBuilder.FaceBuilder uvs(float u1, float v1, float u2, float v2)
public ModelBuilder.ElementBuilder.FaceBuilder rotation(ModelBuilder.FaceRotation rot)
rot
- the rotationjava.lang.NullPointerException
- if rot
is null
BlockPartFace build()
public ModelBuilder.ElementBuilder end()