Class ModelBuilder.ElementBuilder.FaceBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.FaceBuilder
- Enclosing class:
- ModelBuilder.ElementBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate intprivate Directionprivate booleanprivate ModelBuilder.FaceRotationprivate intprivate Stringprivate intprivate float[]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionao(boolean ao) Set the ambient occlusion of the face.(package private) BlockElementFacebuild()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
- 
tintindexprivate int tintindex
- 
texture
- 
uvsprivate float[] uvs
- 
rotation
- 
colorprivate int color
- 
blockLightprivate int blockLight
- 
skyLightprivate int skyLight
- 
hasAmbientOcclusionprivate boolean hasAmbientOcclusion
- 
calculateNormalsprivate boolean calculateNormals
 
- 
- 
Constructor Details- 
FaceBuilderFaceBuilder(Direction dir) 
 
- 
- 
Method Details- 
cullface
- 
tintindex
- 
textureSet the texture for the current face.- Parameters:
- texture- the texture
- Returns:
- this builder
- Throws:
- NullPointerException- if- textureis- null
 
- 
uvs
- 
rotationSet the texture rotation for the current face.- Parameters:
- rot- the rotation
- Returns:
- this builder
- Throws:
- NullPointerException- if- rotis- null
 
- 
emissivitySet 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 light
- skyLight- the sky light
- Returns:
- this builder
 
- 
colorSets the color of the face.- Parameters:
- color- the color in ARGB format.
- Returns:
- this builder
 
- 
aoSet the ambient occlusion of the face.- Parameters:
- ao- the ambient occlusion
- Returns:
- this builder
 
- 
calculateNormalsSets 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
 
- 
buildBlockElementFace build()
- 
end
 
-