Class ModelBuilder.ElementBuilder.FaceBuilder
- java.lang.Object
-
- net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.FaceBuilder
-
- Enclosing class:
- ModelBuilder.ElementBuilder
public class ModelBuilder.ElementBuilder.FaceBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FaceBuilder(Direction dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
cullface
private Direction cullface
-
tintindex
private int tintindex
-
texture
private java.lang.String texture
-
uvs
private float[] uvs
-
rotation
private ModelBuilder.FaceRotation rotation
-
-
Constructor Detail
-
FaceBuilder
FaceBuilder(Direction dir)
-
-
Method Detail
-
cullface
public ModelBuilder.ElementBuilder.FaceBuilder cullface(@Nullable Direction dir)
-
tintindex
public ModelBuilder.ElementBuilder.FaceBuilder tintindex(int index)
-
texture
public ModelBuilder.ElementBuilder.FaceBuilder texture(java.lang.String texture)
Set the texture for the current face.- Parameters:
texture
- the texture- Returns:
- this builder
- Throws:
java.lang.NullPointerException
- iftexture
isnull
-
uvs
public ModelBuilder.ElementBuilder.FaceBuilder uvs(float u1, float v1, float u2, float v2)
-
rotation
public ModelBuilder.ElementBuilder.FaceBuilder rotation(ModelBuilder.FaceRotation rot)
Set the texture rotation for the current face.- Parameters:
rot
- the rotation- Returns:
- this builder
- Throws:
java.lang.NullPointerException
- ifrot
isnull
-
build
BlockPartFace build()
-
end
public ModelBuilder.ElementBuilder end()
-
-