Class ModelBuilder.ElementBuilder.FaceBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.FaceBuilder
- Enclosing class:
- ModelBuilder.ElementBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Directionprivate intprivate booleanprivate ModelBuilder.FaceRotationprivate Stringprivate intprivate float[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionao(boolean ao) Set the ambient occlusion of the face.(package private) BlockElementFacebuild()emissive()Make the face emissive (emissivity = 15).emissivity(int emissivity) Set the emissivity of the face (0-15).end()Set the texture rotation for the current face.Set the texture for the current face.tintindex(int index) uvs(float u1, float v1, float u2, float v2)
-
Field Details
-
cullface
-
tintindex
private int tintindex -
texture
-
uvs
private float[] uvs -
rotation
-
emissivity
private int emissivity -
hasAmbientOcclusion
private boolean hasAmbientOcclusion
-
-
Constructor Details
-
FaceBuilder
FaceBuilder(Direction dir)
-
-
Method Details
-
cullface
-
tintindex
-
texture
Set the texture for the current face.- Parameters:
texture- the texture- Returns:
- this builder
- Throws:
NullPointerException- iftextureisnull
-
uvs
-
rotation
Set the texture rotation for the current face.- Parameters:
rot- the rotation- Returns:
- this builder
- Throws:
NullPointerException- ifrotisnull
-
emissivity
Set the emissivity of the face (0-15).- Parameters:
emissivity- the emissivity- Returns:
- this builder
-
emissive
Make the face emissive (emissivity = 15).- Returns:
- this builder
-
ao
Set the ambient occlusion of the face.- Parameters:
ao- the ambient occlusion- Returns:
- this builder
-
build
BlockElementFace build() -
end
-