| Modifier and Type | Method and Description |
|---|---|
@NotNull Element.Builder |
addFace(@NotNull CubeFace type,
@NotNull ElementFace face)
Adds a face to the element.
|
@NotNull Element |
build()
Builds the element.
|
default @NotNull Element.Builder |
face(@NotNull CubeFace type,
@NotNull ElementFace face)
Deprecated.
Use
addFace(CubeFace, ElementFace) instead |
@NotNull Element.Builder |
faces(@NotNull java.util.Map<CubeFace,ElementFace> faces)
Sets the element faces.
|
default @NotNull Element.Builder |
from(float x,
float y,
float z)
Sets the starting point of the element cuboid.
|
@NotNull Element.Builder |
from(@NotNull Vector3Float from)
Sets the starting point of the element cuboid.
|
@NotNull Element.Builder |
rotation(@Nullable ElementRotation rotation)
Sets the element rotation.
|
@NotNull Element.Builder |
shade(boolean shade)
Sets whether to render shadows for this element or not.
|
default @NotNull Element.Builder |
to(float x,
float y,
float z)
Sets the stop point of the element cuboid.
|
@NotNull Element.Builder |
to(@NotNull Vector3Float to)
Sets the stop point of the element cuboid.
|
@Contract(value="_ -> this") @NotNull @NotNull Element.Builder from(@NotNull @NotNull Vector3Float from)
from - The cuboid origin@Contract(value="_, _, _ -> this") @NotNull default @NotNull Element.Builder from(float x, float y, float z)
x - The x coordinatey - The y coordinatez - The z coordinate@Contract(value="_ -> this") @NotNull @NotNull Element.Builder to(@NotNull @NotNull Vector3Float to)
to - The cuboid stop point@NotNull default @NotNull Element.Builder to(float x, float y, float z)
x - The x coordinatey - The y coordinatez - The z coordinate@Contract(value="_ -> this") @NotNull @NotNull Element.Builder rotation(@Nullable @Nullable ElementRotation rotation)
rotation - The element rotation@Contract(value="_ -> this") @NotNull @NotNull Element.Builder shade(boolean shade)
shade - True to render shadows@Contract(value="_ -> this") @NotNull @NotNull Element.Builder faces(@NotNull @NotNull java.util.Map<CubeFace,ElementFace> faces)
faces - The element faces@NotNull @NotNull Element.Builder addFace(@NotNull @NotNull CubeFace type, @NotNull @NotNull ElementFace face)
type - Which face to addface - The face data@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Contract(value="_, _ -> this") @NotNull default @NotNull Element.Builder face(@NotNull @NotNull CubeFace type, @NotNull @NotNull ElementFace face)
addFace(CubeFace, ElementFace) insteadtype - Which face to addface - The face data@Contract(value="-> new") @NotNull @NotNull Element build()