public class ItemTooltipEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
ItemTooltipEvent(ItemStack itemStack,
EntityPlayer entityPlayer,
java.util.List<java.lang.String> toolTip,
ITooltipFlag flags)
This event is fired in
ItemStack#getTooltip(EntityPlayer, boolean) , which in turn is called from it's respective GUIContainer. |
Modifier and Type | Method and Description |
---|---|
ITooltipFlag |
getFlags()
Use to determine if the advanced information on item tooltips is being shown, toggled by F3+H.
|
ItemStack |
getItemStack()
The
ItemStack with the tooltip. |
java.util.List<java.lang.String> |
getToolTip()
The
ItemStack tooltip. |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ItemTooltipEvent(@Nonnull ItemStack itemStack, EntityPlayer entityPlayer, java.util.List<java.lang.String> toolTip, ITooltipFlag flags)
ItemStack#getTooltip(EntityPlayer, boolean)
, which in turn is called from it's respective GUIContainer.public ITooltipFlag getFlags()
public java.util.List<java.lang.String> getToolTip()
ItemStack
tooltip.