Class FaceBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.FaceBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate @Nullable Directionprivate booleanprivate intprivate Quadrantprivate @Nullable TextureSlotprivate intprivate @Nullable BlockElementFace.UVs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientOcclusion(boolean ambientOcclusion) Set the ambient occlusion of the face.(package private) BlockElementFacebuild()color(int color) Sets the color of the face.(package private) FaceBuildercopy()Sets which direction should cull this face when fully occluded, or null to never cull.lightEmission(int lightEmission) Set the light emission 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 -
lightEmission
private int lightEmission -
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- iftextureisnull
-
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- ifrotisnull
-
lightEmission
Set the light emission of the face (0-15)- Parameters:
lightEmission- the light value- 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()
-