Class ModelBuilder.ElementBuilder.FaceBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.FaceBuilder
- Enclosing class:
- ModelBuilder.ElementBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate Direction
private int
private boolean
private ModelBuilder.FaceRotation
private String
private int
private float[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionao
(boolean ao) Set the ambient occlusion of the face.(package private) BlockElementFace
build()
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
- iftexture
isnull
-
uvs
-
rotation
Set the texture rotation for the current face.- Parameters:
rot
- the rotation- Returns:
- this builder
- Throws:
NullPointerException
- ifrot
isnull
-
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
-