public class ModelBuilder.ElementBuilder
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| class  | ModelBuilder.ElementBuilder.FaceBuilder | 
| class  | ModelBuilder.ElementBuilder.RotationBuilder | 
| Modifier and Type | Field and Description | 
|---|---|
| private java.util.Map<Direction,ModelBuilder.ElementBuilder.FaceBuilder> | faces | 
| private Vector3f | from | 
| private ModelBuilder.ElementBuilder.RotationBuilder | rotation | 
| private boolean | shade | 
| private Vector3f | to | 
| Constructor and Description | 
|---|
| ElementBuilder() | 
| Modifier and Type | Method and Description | 
|---|---|
| private java.util.function.BiConsumer<Direction,ModelBuilder.ElementBuilder.FaceBuilder> | addTexture(java.lang.String texture) | 
| ModelBuilder.ElementBuilder | allFaces(java.util.function.BiConsumer<Direction,ModelBuilder.ElementBuilder.FaceBuilder> action)Modify all possible faces dynamically using a function, creating new
 faces as necessary. | 
| (package private) BlockPart | build() | 
| ModelBuilder.ElementBuilder | cube(java.lang.String texture)Create a typical cube element, creating new faces as needed, applying the
 given texture, and setting the cullface. | 
| T | end() | 
| ModelBuilder.ElementBuilder.FaceBuilder | face(Direction dir)Return or create the face builder for the given direction. | 
| ModelBuilder.ElementBuilder | faces(java.util.function.BiConsumer<Direction,ModelBuilder.ElementBuilder.FaceBuilder> action)Modify all existing faces dynamically using a function. | 
| ModelBuilder.ElementBuilder | from(float x,
    float y,
    float z)Set the "from" position for this element. | 
| ModelBuilder.ElementBuilder.RotationBuilder | rotation() | 
| ModelBuilder.ElementBuilder | shade(boolean shade) | 
| ModelBuilder.ElementBuilder | texture(java.lang.String texture)Texture all existing faces in the current element with the given
 texture. | 
| ModelBuilder.ElementBuilder | textureAll(java.lang.String texture)Texture all possible faces in the current element with the given
 texture, creating new faces where necessary. | 
| ModelBuilder.ElementBuilder | to(float x,
  float y,
  float z)Set the "to" position for this element. | 
| private void | validateCoordinate(float coord,
                  char name) | 
| private void | validatePosition(Vector3f pos) | 
private Vector3f from
private Vector3f to
private final java.util.Map<Direction,ModelBuilder.ElementBuilder.FaceBuilder> faces
private ModelBuilder.ElementBuilder.RotationBuilder rotation
private boolean shade
private void validateCoordinate(float coord,
                                char name)
private void validatePosition(Vector3f pos)
public ModelBuilder.ElementBuilder from(float x, float y, float z)
x - x-position for this vectory - y-position for this vectorz - z-position for this vectorjava.lang.IllegalArgumentException - if the vector is out of bounds (any
                                  coordinate not between -16 and 32,
                                  inclusive)public ModelBuilder.ElementBuilder to(float x, float y, float z)
x - x-position for this vectory - y-position for this vectorz - z-position for this vectorjava.lang.IllegalArgumentException - if the vector is out of bounds (any
                                  coordinate not between -16 and 32,
                                  inclusive)public ModelBuilder.ElementBuilder.FaceBuilder face(Direction dir)
dir - the directionjava.lang.NullPointerException - if dir is nullpublic ModelBuilder.ElementBuilder.RotationBuilder rotation()
public ModelBuilder.ElementBuilder shade(boolean shade)
public ModelBuilder.ElementBuilder allFaces(java.util.function.BiConsumer<Direction,ModelBuilder.ElementBuilder.FaceBuilder> action)
action - the function to apply to each directionjava.lang.NullPointerException - if action is nullpublic ModelBuilder.ElementBuilder faces(java.util.function.BiConsumer<Direction,ModelBuilder.ElementBuilder.FaceBuilder> action)
action - the function to apply to each directionjava.lang.NullPointerException - if action is nullpublic ModelBuilder.ElementBuilder textureAll(java.lang.String texture)
texture - the texturejava.lang.NullPointerException - if texture is nullpublic ModelBuilder.ElementBuilder texture(java.lang.String texture)
texture - the texturejava.lang.NullPointerException - if texture is nullpublic ModelBuilder.ElementBuilder cube(java.lang.String texture)
texture - the texturejava.lang.NullPointerException - if texture is nullprivate java.util.function.BiConsumer<Direction,ModelBuilder.ElementBuilder.FaceBuilder> addTexture(java.lang.String texture)
BlockPart build()
public T end()