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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for creating aShownInTooltipdata component. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets 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:
trueto show in the tooltip
-
showInTooltip
Returns a copy of this data component with the specified show-in-tooltip state.- Parameters:
showInTooltip-trueto show in the tooltip- Returns:
- the new data component
-