Enum Class GuiFlag
- All Implemented Interfaces:
Serializable, Comparable<GuiFlag>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrevents the player from progressing in or being granted advancement criteria while this GUI is open.Instructs the GUI API to ignore all interactions in the bottom (player) inventory.Prevents the player from picking up items from the ground while this GUI is open.Instructs the GUI API to ignore all interactions in the top (menu) inventory. -
Method Summary
Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DISABLE_TOP
Instructs the GUI API to ignore all interactions in the top (menu) inventory.When set, the
GuiElement.onClick(GuiView, int, ClickType, ItemStack, ItemStack)andGuiElement.onDrag(GuiView, Map)handlers will not be triggered for the top segment, allowing for vanilla-default behavior or custom external handling. -
DISABLE_BOTTOM
Instructs the GUI API to ignore all interactions in the bottom (player) inventory.When set, elements defined for the player's inventory will not have their interaction handlers executed.
-
DISABLE_ITEM_PICKUP
Prevents the player from picking up items from the ground while this GUI is open. -
DISABLE_ADVANCEMENTS
Prevents the player from progressing in or being granted advancement criteria while this GUI is open.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-