Class FaceBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.FaceBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private @Nullable Direction
private boolean
private Quadrant
private int
private @Nullable TextureSlot
private int
private BlockElementFace.UVs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientOcclusion
(boolean ambientOcclusion) Set the ambient occlusion of the face.(package private) BlockElementFace
build()
color
(int color) Sets the color of the face.(package private) FaceBuilder
copy()
Sets which direction should cull this face when fully occluded, or null to never cull.emissivity
(int blockLight, int skyLight) Set the block and sky light of the face (0-15).Set the texture rotation for the current face.texture
(TextureSlot texture) Set the texture for the current face.tintindex
(int index) Sets the color index used when attempting to tint this face.uvs
(float u1, float v1, float u2, float v2) Sets the texture uv mapping for this face.
-
Field Details
-
cullface
-
tintindex
private int tintindex -
texture
-
uvs
-
rotation
-
color
private int color -
blockLight
private int blockLight -
skyLight
private int skyLight -
hasAmbientOcclusion
private boolean hasAmbientOcclusion
-
-
Constructor Details
-
FaceBuilder
public FaceBuilder()
-
-
Method Details
-
cullface
Sets which direction should cull this face when fully occluded, or null to never cull. -
tintindex
Sets the color index used when attempting to tint this face. -
texture
Set the texture for the current face.- Parameters:
texture
- the texture- Returns:
- this builder
- Throws:
NullPointerException
- iftexture
isnull
-
uvs
Sets the texture uv mapping for this face. -
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
-
ambientOcclusion
Set the ambient occlusion of the face.- Parameters:
ambientOcclusion
- the ambient occlusion- Returns:
- this builder
-
build
BlockElementFace build() -
copy
FaceBuilder copy()
-