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 AttributeTooltipContext
AttributeTooltipContext.of
(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item.TooltipContext itemCtx, net.minecraft.world.item.component.TooltipDisplay tooltipDisplay, net.minecraft.world.item.TooltipFlag flag) Methods in net.neoforged.neoforge.common.util with parameters of type AttributeTooltipContextModifier and TypeMethodDescriptionstatic void
AttributeUtil.addAttributeTooltips
(net.minecraft.world.item.ItemStack stack, Consumer<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.component.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 void
AttributeUtil.applyModifierTooltips
(net.minecraft.world.item.ItemStack stack, Consumer<net.minecraft.network.chat.Component> tooltip, AttributeTooltipContext ctx) Applies the attribute modifier tooltips for all attribute modifiers present on the item stack.static void
AttributeUtil.applyTextFor
(net.minecraft.world.item.ItemStack stack, Consumer<net.minecraft.network.chat.Component> tooltip, com.google.common.collect.Multimap<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>, net.minecraft.world.entity.ai.attributes.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 AttributeTooltipContext
AddAttributeTooltipsEvent.ctx
protected final AttributeTooltipContext
GatherSkippedAttributeTooltipsEvent.ctx
Methods 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
(net.minecraft.world.item.ItemStack stack, Consumer<net.minecraft.network.chat.Component> tooltip, AttributeTooltipContext ctx) GatherSkippedAttributeTooltipsEvent
(net.minecraft.world.item.ItemStack stack, AttributeTooltipContext ctx)