Class FaceBuilder
java.lang.Object
net.neoforged.neoforge.client.model.generators.template.FaceBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private @Nullable net.minecraft.core.Direction
private boolean
private com.mojang.math.Quadrant
private int
private @Nullable net.minecraft.client.data.models.model.TextureSlot
private int
private net.minecraft.client.renderer.block.model.BlockElementFace.UVs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientOcclusion
(boolean ambientOcclusion) Set the ambient occlusion of the face.(package private) net.minecraft.client.renderer.block.model.BlockElementFace
build()
color
(int color) Sets the color of the face.(package private) FaceBuilder
copy()
cullface
(@Nullable net.minecraft.core.Direction dir) 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).rotation
(com.mojang.math.Quadrant rot) Set the texture rotation for the current face.texture
(net.minecraft.client.data.models.model.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
@Nullable private @Nullable net.minecraft.core.Direction cullface -
tintindex
private int tintindex -
texture
@Nullable private @Nullable net.minecraft.client.data.models.model.TextureSlot texture -
uvs
@Nullable private net.minecraft.client.renderer.block.model.BlockElementFace.UVs uvs -
rotation
private com.mojang.math.Quadrant 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
net.minecraft.client.renderer.block.model.BlockElementFace build() -
copy
FaceBuilder copy()
-