Interface AttributeTooltipContext
- All Superinterfaces:
Item.TooltipContext
Extended
Item.TooltipContext used when generating attribute tooltips.-
Field Summary
Fields inherited from interface net.minecraft.world.item.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 net.minecraft.world.item.Item.TooltipContext
isPeaceful, level, mapData, registries, tickRate
-
Method Details
-
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
TooltipDisplay tooltipDisplay()Returns the tooltip display.- Returns:
- the tooltip display
-
flag
TooltipFlag flag()Returns the current tooltip flag.- Returns:
- the current tooltip flag
-
of
static AttributeTooltipContext of(@Nullable @Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag)
-