Uses of Interface
net.neoforged.neoforge.common.util.AttributeTooltipContext
Packages that use AttributeTooltipContext
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of AttributeTooltipContext in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as AttributeTooltipContextModifier and TypeFieldDescriptionprotected final AttributeTooltipContext
AddAttributeTooltipsEvent.ctx
protected final AttributeTooltipContext
GatherSkippedAttributeTooltipsEvent.ctx
Methods in net.neoforged.neoforge.client.event that return AttributeTooltipContextModifier and TypeMethodDescriptionAddAttributeTooltipsEvent.getContext()
The current tooltip context.GatherSkippedAttributeTooltipsEvent.getContext()
The current tooltip context.Constructors in net.neoforged.neoforge.client.event with parameters of type AttributeTooltipContextModifierConstructorDescriptionAddAttributeTooltipsEvent
(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) -
Uses of AttributeTooltipContext in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return AttributeTooltipContextModifier and TypeMethodDescriptionstatic AttributeTooltipContext
AttributeTooltipContext.of
(@Nullable Player player, Item.TooltipContext itemCtx, TooltipFlag flag) Methods in net.neoforged.neoforge.common.util with parameters of type AttributeTooltipContextModifier and TypeMethodDescriptionstatic void
AttributeUtil.addAttributeTooltips
(ItemStack stack, Consumer<Component> tooltip, 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 void
AttributeUtil.applyModifierTooltips
(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) Applies the attribute modifier tooltips for all attribute modifiers present on the item stack.static void
AttributeUtil.applyTextFor
(ItemStack stack, Consumer<Component> tooltip, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack.