public interface Element
extends net.kyori.examination.Examinable
Model cubic element,
has "from" and "to" locations, rotation,
translation and scale| Modifier and Type | Interface and Description |
|---|---|
static interface |
Element.Builder
A builder for
Element instances. |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_SHADE |
static float |
MAX_EXTENT |
static float |
MIN_EXTENT |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull Element.Builder |
builder()
Deprecated.
Use
element() instead |
static @NotNull Element.Builder |
element()
Creates a new
Element builder |
@Unmodifiable @NotNull java.util.Map<CubeFace,ElementFace> |
faces()
Returns an unmodifiable map of the element faces
specifications.
|
@NotNull Vector3Float |
from()
Returns the starting point of the
element cuboid.
|
@NotNull ElementRotation |
rotation()
Gets the element rotation.
|
boolean |
shade()
Determines whether to render shadows
for this element or not
|
@NotNull Vector3Float |
to()
Returns the stop point of the element
cuboid.
|
static final boolean DEFAULT_SHADE
static final float MIN_EXTENT
static final float MAX_EXTENT
@Contract(value="-> new") @NotNull static @NotNull Element.Builder element()
Element builder@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Contract(value="-> new") @NotNull static @NotNull Element.Builder builder()
element() insteadElement builder@NotNull @NotNull Vector3Float from()
@NotNull @NotNull Vector3Float to()
@NotNull @NotNull ElementRotation rotation()
boolean shade()
@NotNull @Unmodifiable @NotNull java.util.Map<CubeFace,ElementFace> faces()
If a face is left out, it does not render