Class GatherEffectScreenTooltipsEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.GatherEffectScreenTooltipsEvent
public class GatherEffectScreenTooltipsEvent
extends net.neoforged.bus.api.Event
This event is called when an
EffectRenderingInventoryScreen
draws the tooltip lines for a hovered MobEffectInstance
.
It can be used to modify the tooltip.
This event is only fired on the physical client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobEffectInstance
protected final EffectRenderingInventoryScreen
<?> -
Constructor Summary
ConstructorsConstructorDescriptionGatherEffectScreenTooltipsEvent
(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
screen
-
effectInst
-
tooltip
-
-
Constructor Details
-
GatherEffectScreenTooltipsEvent
public GatherEffectScreenTooltipsEvent(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip)
-
-
Method Details
-
getScreen
- Returns:
- The screen which will be rendering the tooltip lines.
-
getEffectInstance
- Returns:
- The effect whose tooltip is being drawn.
-
getTooltip
- Returns:
- A mutable list of tooltip lines.
-