Interface AttributeTooltipContext
- All Superinterfaces:
Item.TooltipContext
Extended
Item.TooltipContext used when generating attribute tooltips.-
Field Summary
Fields inherited from interface Item.TooltipContext
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionflag()Returns the current tooltip flag.static AttributeTooltipContextof(@Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag) @Nullable Playerplayer()Returns the player for whom tooltips are being generated for, if known.Returns the tooltip display.Methods inherited from interface Item.TooltipContext
isPeaceful, level, mapData, registries, tickRate
-
Method Details
-
player
@Nullable Player player()Returns the player for whom tooltips are being generated for, if known.- Returns:
- the player for whom tooltips are being generated for, if known
-
tooltipDisplay
-
flag
-
of
static AttributeTooltipContext of(@Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag)
-