Uses of Interface
net.neoforged.neoforge.common.util.AttributeTooltipContext
Packages that use AttributeTooltipContext
-
Uses of AttributeTooltipContext in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return AttributeTooltipContextModifier and TypeMethodDescriptionstatic AttributeTooltipContextAttributeTooltipContext.of(@Nullable Player player, Item.TooltipContext itemCtx, TooltipDisplay tooltipDisplay, TooltipFlag flag) Methods in net.neoforged.neoforge.common.util with parameters of type AttributeTooltipContextModifier and TypeMethodDescriptionstatic voidAttributeUtil.addAttributeTooltips(ItemStack stack, Consumer<Component> tooltip, TooltipDisplay tooltipDisplay, AttributeTooltipContext ctx) Checks if attribute modifier tooltips should show, and if they should, adds tooltips for all attribute modifiers present on an item stack to the stack's tooltip lines.static voidAttributeUtil.applyModifierTooltips(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) Applies the attribute modifier tooltips for all attribute modifiers present on the item stack.static voidAttributeUtil.applyTextFor(ItemStack stack, Consumer<Component> tooltip, Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack. -
Uses of AttributeTooltipContext in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as AttributeTooltipContextModifier and TypeFieldDescriptionprotected final AttributeTooltipContextAddAttributeTooltipsEvent.ctxprotected final AttributeTooltipContextGatherSkippedAttributeTooltipsEvent.ctxMethods in net.neoforged.neoforge.event that return AttributeTooltipContextModifier and TypeMethodDescriptionAddAttributeTooltipsEvent.getContext()The current tooltip context.GatherSkippedAttributeTooltipsEvent.getContext()The current tooltip context.Constructors in net.neoforged.neoforge.event with parameters of type AttributeTooltipContextModifierConstructorDescriptionAddAttributeTooltipsEvent(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx)