@ApiStatus.NonExtendable
public interface GuiScaling
extends net.kyori.examination.Examinable
| Modifier and Type | Method and Description |
|---|---|
static @NotNull NineSliceGuiScaling |
nineSlice(int width,
int height,
@NotNull GuiBorder border)
Returns a
GuiScaling instance that slices the sprite into
4 corners, 4 edges and 1 center slice, which will be tiled across
the desired space. |
static @NotNull NineSliceGuiScaling |
nineSlice(int width,
int height,
int border)
Returns a
GuiScaling instance that slices the sprite into
4 corners, 4 edges and 1 center slice, which will be tiled across
the desired space. |
static @NotNull StretchGuiScaling |
stretch()
Returns a
GuiScaling instance that makes the sprite
stretch across the desired space. |
static @NotNull TileGuiScaling |
tile(int width,
int height)
Returns a
GuiScaling instance that makes the sprite
repeat itself across the desired space, starting from top-left. |
@NotNull static @NotNull StretchGuiScaling stretch()
GuiScaling instance that makes the sprite
stretch across the desired space.GuiScaling instance@NotNull static @NotNull TileGuiScaling tile(int width, int height)
GuiScaling instance that makes the sprite
repeat itself across the desired space, starting from top-left.width - The number of pixels for the sprite to cover
on-screen across its width, must be positiveheight - The number of pixels for the sprite to cover
on-screen across its height, must be positiveGuiScaling instance@NotNull static @NotNull NineSliceGuiScaling nineSlice(int width, int height, @NotNull @NotNull GuiBorder border)
GuiScaling instance that slices the sprite into
4 corners, 4 edges and 1 center slice, which will be tiled across
the desired space.width - The number of pixels for the sprite to cover
on-screen across its width, must be positiveheight - The number of pixels for the sprite to cover
on-screen across its height, must be positiveborder - The border sizesGuiScaling instance@NotNull static @NotNull NineSliceGuiScaling nineSlice(int width, int height, int border)
GuiScaling instance that slices the sprite into
4 corners, 4 edges and 1 center slice, which will be tiled across
the desired space.width - The number of pixels for the sprite to cover
on-screen across its width, must be positiveheight - The number of pixels for the sprite to cover
on-screen across its height, must be positiveborder - The border size for all sidesGuiScaling instance