public interface GuiBorder
extends net.kyori.examination.Examinable
Sizes are specified in pixels, pixels that the border slices should cover on-screen.
| Modifier and Type | Method and Description |
|---|---|
static @NotNull GuiBorder |
border(int size)
Returns a
GuiBorder instance that will have a uniform
border size on all sides specified by the given size,
must be non-negative. |
static @NotNull GuiBorder |
border(int top,
int bottom,
int left,
int right)
Returns a
GuiBorder instance that will have the
specified border sizes on each side, all sizes must must
be non-negative. |
int |
bottom()
Returns the number of pixels for the border to cover
on-screen across its bottom side, non-negative.
|
int |
left()
Returns the number of pixels for the border to cover
on-screen across its left side, non-negative.
|
int |
right()
Returns the number of pixels for the border to cover
on-screen across its right side, non-negative.
|
int |
top()
Returns the number of pixels for the border to cover
on-screen across its top side, non-negative.
|
@NotNull static @NotNull GuiBorder border(int top, int bottom, int left, int right)
GuiBorder instance that will have the
specified border sizes on each side, all sizes must must
be non-negative.top - The top border size in pixelsbottom - The bottom border size in pixelsleft - The left border size in pixelsright - The right border size in pixelsGuiBorder instance@NotNull static @NotNull GuiBorder border(int size)
GuiBorder instance that will have a uniform
border size on all sides specified by the given size,
must be non-negative.GuiBorder instanceint top()
int bottom()
int left()
int right()