DARK_4NG3L

Create mouseOver Description For your items/blocks

Mar 31st, 2014
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1.     /** Item MouseOver Test **/
  2.     public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
  3.         par3List.add("Hello"); // The "Hello" bit is what will display Below the Item/Block name
  4.     }
  5.     // I think the following code is pointless but try it yourself!!
  6.     public String getItemDisplayName(ItemStack par1ItemStack)
  7.     {
  8.         return ("" + StatCollector.translateToLocal(this.getUnlocalizedNameInefficiently(par1ItemStack) + ".name")).trim();
  9.        
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment