public interface IContainerTooltipHandler
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
handleItemDisplayName(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack itemstack,
java.util.List<java.lang.String> currenttip)
Use this for modifying the multiline display name of an item which may not necessarily be under the mouse.
|
java.util.List<java.lang.String> |
handleItemTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack itemstack,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
Use this for modifying the tooltips of items that are under the mouse.
|
java.util.List<java.lang.String> |
handleTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
Use this to add tooltips for other objects.
|
java.util.List<java.lang.String> handleTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
gui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topcurrenttip - A list of strings, representing each line of the current tooltip as modified by other handlersjava.util.List<java.lang.String> handleItemDisplayName(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack itemstack,
java.util.List<java.lang.String> currenttip)
gui - An instance of the currentscreen. If only general information about the item is wanted (Eg. potion effects) then this may be null.itemstack - The ItemStack under the mousecurrenttip - A list of strings, representing each line of the current tooltip as modified by other handlersjava.util.List<java.lang.String> handleItemTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack itemstack,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
gui - An instance of the currentscreenitemstack - The ItemStack under the mousecurrenttip - A list of strings, representing each line of the current tooltip as modified by other handlers