Class ItemTooltipEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.player.PlayerEvent
net.minecraftforge.event.entity.player.ItemTooltipEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.player.PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerChangeGameModeEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.TabListNameFormat
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemTooltipEvent
(@NotNull ItemStack itemStack, @Nullable Player player, List<Component> list, TooltipFlag flags) This event is fired ininvalid reference
ItemStack#getTooltipLines(Player, TooltipFlag)
-
Method Summary
Modifier and TypeMethodDescription@Nullable Player
This event is fired with a null player during startup when populating search trees for tooltips.getFlags()
Use to determine if the advanced information on item tooltips is being shown, toggled by F3+H.@NotNull ItemStack
TheItemStack
with the tooltip.TheItemStack
tooltip.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
flags
-
itemStack
-
toolTip
-
-
Constructor Details
-
ItemTooltipEvent
public ItemTooltipEvent(@NotNull @NotNull ItemStack itemStack, @Nullable @Nullable Player player, List<Component> list, TooltipFlag flags) This event is fired ininvalid reference
ItemStack#getTooltipLines(Player, TooltipFlag)
invalid reference
Minecraft#createSearchTrees()
-
-
Method Details
-
getFlags
Use to determine if the advanced information on item tooltips is being shown, toggled by F3+H. -
getItemStack
TheItemStack
with the tooltip. -
getToolTip
TheItemStack
tooltip. -
getEntity
This event is fired with a null player during startup when populating search trees for tooltips.- Overrides:
getEntity
in classPlayerEvent
-