Class CommonClientEvents.ItemTooltips
java.lang.Object
net.rebel459.unified.impl.client.core.CommonClientEvents.ItemTooltips
- Enclosing class:
CommonClientEvents
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<CommonClientEvents.ItemTooltips.AttributeEntry> static final List<CommonClientEvents.ItemTooltips.BaseAttributeEntry> static final EnumMap<EventTiming, List<QuadConsumer<net.minecraft.world.item.ItemStack, Consumer<net.minecraft.network.chat.Component>, net.minecraft.world.item.component.TooltipDisplay, net.minecraft.client.player.LocalPlayer>>> static final EnumMap<EventTiming, List<Consumer<CommonClientEvents.ItemTooltips.TooltipContext>>> static final List<Consumer<CommonClientEvents.ItemTooltips.LineContext>> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpassAddAttributes(EventTiming type, net.minecraft.world.item.ItemStack stack, Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.component.TooltipDisplay display, net.minecraft.client.player.LocalPlayer player) static voidstatic voidpassAfterAttributeAdded(Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.component.ItemAttributeModifiers itemModifiers, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) static voidpassAfterBaseAttributeAdded(Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.component.ItemAttributeModifiers itemModifiers, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, double displayValue) static void
-
Field Details
-
TOOLTIP_DETAILS
public static final EnumMap<EventTiming, List<Consumer<CommonClientEvents.ItemTooltips.TooltipContext>>> TOOLTIP_DETAILS -
TOOLTIP_ATTRIBUTES
public static final EnumMap<EventTiming, List<QuadConsumer<net.minecraft.world.item.ItemStack, Consumer<net.minecraft.network.chat.Component>, net.minecraft.world.item.component.TooltipDisplay, net.minecraft.client.player.LocalPlayer>>> TOOLTIP_ATTRIBUTES -
ATTRIBUTE_ENTRIES
-
BASE_ATTRIBUTE_ENTRIES
-
TOOLTIP_LINES
-
-
Method Details
-
passAddDetails
public static void passAddDetails(EventTiming type, CommonClientEvents.ItemTooltips.TooltipContext client) -
passAddAttributes
public static void passAddAttributes(EventTiming type, net.minecraft.world.item.ItemStack stack, Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.component.TooltipDisplay display, net.minecraft.client.player.LocalPlayer player) -
passAfterAttributeAdded
public static void passAfterAttributeAdded(Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.component.ItemAttributeModifiers itemModifiers, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) -
passAfterBaseAttributeAdded
public static void passAfterBaseAttributeAdded(Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.component.ItemAttributeModifiers itemModifiers, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, double displayValue) -
passInsertLines
-