@ApiStatus.NonExtendable
public static interface UnstitchAtlasSource.Region
extends net.kyori.examination.Examinable
UnstitchAtlasSource image.| Modifier and Type | Method and Description |
|---|---|
@NotNull Vector2Float |
dimensions()
Gets the dimensions of the region
(X = width, Y = height)
|
default double |
height()
Deprecated.
Use
dimensions() Y component instead |
static @NotNull UnstitchAtlasSource.Region |
of(@NotNull net.kyori.adventure.key.Key sprite,
double x,
double y,
double width,
double height)
Deprecated.
In favor of
region(Key, Vector2Float, Vector2Float) |
@NotNull Vector2Float |
position()
Gets the position of the top-left corner
of the region.
|
static @NotNull UnstitchAtlasSource.Region |
region(@NotNull net.kyori.adventure.key.Key sprite,
@NotNull Vector2Float position,
@NotNull Vector2Float dimensions)
Creates a new
UnstitchAtlasSource.Region instance. |
@NotNull net.kyori.adventure.key.Key |
sprite()
Gets the sprite name.
|
default double |
width()
Deprecated.
Use
dimensions() X component instead |
default double |
x()
Deprecated.
Use
position() X component instead |
default double |
y()
Deprecated.
Use
position() Y component instead |
@NotNull @NotNull net.kyori.adventure.key.Key sprite()
@NotNull @NotNull Vector2Float position()
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") default double x()
position() X component instead@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") default double y()
position() Y component instead@NotNull @NotNull Vector2Float dimensions()
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") default double width()
dimensions() X component instead@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") default double height()
dimensions() Y component instead@NotNull static @NotNull UnstitchAtlasSource.Region region(@NotNull @NotNull net.kyori.adventure.key.Key sprite, @NotNull @NotNull Vector2Float position, @NotNull @NotNull Vector2Float dimensions)
UnstitchAtlasSource.Region instance.sprite - The sprite nameposition - The coordinates of the top-left corner of the regiondimensions - The dimensions of the region (width, height)@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull UnstitchAtlasSource.Region of(@NotNull @NotNull net.kyori.adventure.key.Key sprite, double x, double y, double width, double height)
region(Key, Vector2Float, Vector2Float)UnstitchAtlasSource.Region instance.sprite - The sprite namex - The X coordinate of the top-left corner of the regiony - The Y coordinate of the top-left corner of the regionwidth - The width of the regionheight - The height of the region