Enum Class TooltipLocation
- All Implemented Interfaces:
Serializable, Comparable<TooltipLocation>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAppend tooltip lines beforeItem.appendHoverText(ItemStack, Item.TooltipContext, TooltipDisplay, Consumer, TooltipFlag)Append tooltip lines betweenItem.appendHoverText(ItemStack, Item.TooltipContext, TooltipDisplay, Consumer, TooltipFlag)and data component tooltipsAppend tooltip lines between data component tooltips and additional item info (item ID, data component count, disabled status, OP warning)Append tooltip lines after additional item info (item ID, data component count, disabled status, OP warning) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TooltipLocationReturns the enum constant of this class with the specified name.static TooltipLocation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEAD
Append tooltip lines beforeItem.appendHoverText(ItemStack, Item.TooltipContext, TooltipDisplay, Consumer, TooltipFlag) -
POST_CUSTOM
Append tooltip lines betweenItem.appendHoverText(ItemStack, Item.TooltipContext, TooltipDisplay, Consumer, TooltipFlag)and data component tooltips -
PRE_ITEM_INFO
Append tooltip lines between data component tooltips and additional item info (item ID, data component count, disabled status, OP warning) -
TAIL
Append tooltip lines after additional item info (item ID, data component count, disabled status, OP warning)
-
-
Constructor Details
-
TooltipLocation
private TooltipLocation()
-
-
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
-