接口 AttributeTooltipContext
- 所有超级接口:
Item.TooltipContext
Extended
Item.TooltipContext
used when generating attribute tooltips.-
字段概要
从接口继承的字段 net.minecraft.world.item.Item.TooltipContext
EMPTY
-
方法概要
修饰符和类型方法说明flag()
返回 the current tooltip flag。static AttributeTooltipContext
of
(@Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag) @Nullable Player
player()
返回 the player for whom tooltips are being generated for, if known。返回 the tooltip display。从接口继承的方法 net.minecraft.world.item.Item.TooltipContext
level, mapData, registries, tickRate
-
方法详细资料
-
player
返回 the player for whom tooltips are being generated for, if known。- 返回:
- the player for whom tooltips are being generated for, if known
-
tooltipDisplay
TooltipDisplay tooltipDisplay()返回 the tooltip display。- 返回:
- the tooltip display
-
flag
TooltipFlag flag()返回 the current tooltip flag。- 返回:
- the current tooltip flag
-
of
static AttributeTooltipContext of(@Nullable @Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag)
-