public interface ItemTransform
extends net.kyori.examination.Examinable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ItemTransform.Builder
Builder implementation for creating
ItemTransform
instances |
static class |
ItemTransform.Type
Enum of all possible model displays
|
| Modifier and Type | Field and Description |
|---|---|
static Vector3Float |
DEFAULT_ROTATION |
static Vector3Float |
DEFAULT_SCALE |
static Vector3Float |
DEFAULT_TRANSLATION |
static float |
MAX_SCALE |
static float |
MAX_TRANSLATION |
static float |
MIN_SCALE |
static float |
MIN_TRANSLATION |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull ItemTransform.Builder |
builder()
Deprecated.
Use
transform() instead |
static @NotNull ItemTransform |
of(@NotNull Vector3Float rotation,
@NotNull Vector3Float translation,
@NotNull Vector3Float scale)
Deprecated.
|
@NotNull Vector3Float |
rotation()
Returns the rotation for this model
display
|
@NotNull Vector3Float |
scale()
Returns the scale of the mode
|
static @NotNull ItemTransform.Builder |
transform()
Static factory method for instantiating our
builder implementation, which eases the creation
of
ItemTransform instances |
static @NotNull ItemTransform |
transform(@NotNull Vector3Float rotation,
@NotNull Vector3Float translation,
@NotNull Vector3Float scale)
Creates a new
ItemTransform instance from
the given values |
@NotNull Vector3Float |
translation()
Returns the position of the model
|
static final float MIN_TRANSLATION
static final float MAX_TRANSLATION
static final float MIN_SCALE
static final float MAX_SCALE
static final Vector3Float DEFAULT_ROTATION
static final Vector3Float DEFAULT_TRANSLATION
static final Vector3Float DEFAULT_SCALE
@NotNull @NotNull Vector3Float rotation()
@NotNull @NotNull Vector3Float translation()
Components are always between MIN_TRANSLATION
and MAX_TRANSLATION
@NotNull @NotNull Vector3Float scale()
Components are always between MIN_SCALE
and MAX_SCALE constants
@NotNull static @NotNull ItemTransform transform(@NotNull @NotNull Vector3Float rotation, @NotNull @NotNull Vector3Float translation, @NotNull @NotNull Vector3Float scale)
ItemTransform instance from
the given valuesrotation - The display rotationtranslation - The display translation [-80, 80]scale - The display scale [0, 4]ItemTransform instance@NotNull static @NotNull ItemTransform.Builder transform()
ItemTransform instances@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull ItemTransform of(@NotNull @NotNull Vector3Float rotation, @NotNull @NotNull Vector3Float translation, @NotNull @NotNull Vector3Float scale)
transform(Vector3Float, Vector3Float, Vector3Float) insteadItemTransform instance from
the given valuesrotation - The display rotationtranslation - The display translation [-80, 80]scale - The display scale [0, 4]ItemTransform instance@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull ItemTransform.Builder builder()
transform() insteadItemTransform instances