Class MenuBackgroundChoice
java.lang.Object
dev.itsharshxd.zentrix.api.gui.background.MenuBackgroundChoice
What a
MenuBackgroundResolver decided for one menu.
Glyphs are written as in guis.yml: a name from backgrounds.glyphs, the
characters themselves (a unicode escape written as text works too), or none. They get the
shared backgrounds.color and backgrounds.reset, exactly like a rule's glyphs, so
an add-on can ship textures that server owners place with their own pack's spacing.
- Since:
- 1.15.0
-
Method Summary
Modifier and TypeMethodDescriptionThe glyphs of a texture of the resolver's own.@Nullable BooleanWhether the menu name follows the texture: true or false when the resolver said, null to followbackgrounds.text.static @NotNull MenuBackgroundChoiceA texture of the resolver's own, with the menu name shown or hidden asbackgrounds.textsays.static @NotNull MenuBackgroundChoiceA texture of the resolver's own.booleanisKeep()Whether this leaves the decision to others.booleanisNone()Whether this removes the texture.static @NotNull MenuBackgroundChoicekeep()Leaves the decision to the next resolver, and in the end toguis.yml.static @NotNull MenuBackgroundChoicenone()No texture: the menu shows its plain name.toString()
-
Method Details
-
keep
Leaves the decision to the next resolver, and in the end toguis.yml. -
none
No texture: the menu shows its plain name. -
glyphs
A texture of the resolver's own, with the menu name shown or hidden asbackgrounds.textsays.- Parameters:
glyphs- a palette name, the characters themselves, ornone
-
glyphs
@NotNull public static @NotNull MenuBackgroundChoice glyphs(@NotNull @NotNull String glyphs, boolean nameShown) A texture of the resolver's own.- Parameters:
glyphs- a palette name, the characters themselves, ornonenameShown- whether the menu name follows the texture
-
isKeep
public boolean isKeep()Whether this leaves the decision to others. -
isNone
public boolean isNone()Whether this removes the texture. -
getGlyphs
The glyphs of a texture of the resolver's own. -
getNameShown
Whether the menu name follows the texture: true or false when the resolver said, null to followbackgrounds.text. -
toString
-