Interface ShownInTooltip<T>
- Type Parameters:
T
- the data component type
- All Known Subinterfaces:
DyedItemColor
,ItemAdventurePredicate
,ItemArmorTrim
,ItemAttributeModifiers
,ItemEnchantments
,JukeboxPlayable
,Unbreakable
Holds the state of whether a data component should be shown
in an item's tooltip.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A builder for creating aShownInTooltip
data component. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets if the data component should be shown in the item's tooltip.showInTooltip
(boolean showInTooltip) Returns a copy of this data component with the specified show-in-tooltip state.
-
Method Details
-
showInTooltip
Gets if the data component should be shown in the item's tooltip.- Returns:
true
to show in the tooltip
-
showInTooltip
Returns a copy of this data component with the specified show-in-tooltip state.- Parameters:
showInTooltip
-true
to show in the tooltip- Returns:
- the new data component
-