Class ModelBuilder.ElementBuilder.FaceBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.FaceBuilder
- Enclosing class:
ModelBuilder.ElementBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private boolean
private int
private Direction
private boolean
private ModelBuilder.FaceRotation
private int
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()
calculateNormals
(boolean calc) Sets whether we should calculate actual normals for this face or inherit them from facing the way vanilla doescolor
(int color) Sets the color of the face.emissivity
(int blockLight, int skyLight) Set the block and sky light 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
-
color
private int color -
blockLight
private int blockLight -
skyLight
private int skyLight -
hasAmbientOcclusion
private boolean hasAmbientOcclusion -
calculateNormals
private boolean calculateNormals
-
-
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 block and sky light of the face (0-15). Traditional "emissivity" values set both of these to the same value.- Parameters:
blockLight
- the block lightskyLight
- the sky light- Returns:
- this builder
-
color
Sets the color of the face.- Parameters:
color
- the color in ARGB format.- Returns:
- this builder
-
ao
Set the ambient occlusion of the face.- Parameters:
ao
- the ambient occlusion- Returns:
- this builder
-
calculateNormals
Sets whether we should calculate actual normals for this face or inherit them from facing the way vanilla does- Parameters:
calc
- whether to calculate normals- Returns:
- this builder
-
build
BlockElementFace build() -
end
-