tahg

Untitled

Oct 8th, 2014
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @SuppressWarnings({ "rawtypes", "unchecked" })
  2. @Override
  3. @SideOnly(Side.CLIENT)
  4. public void addInformation(ItemStack stack, EntityPlayer player,
  5. List list, boolean p_77624_4_) {
  6. super.addInformation(stack, player, list, p_77624_4_);
  7. NBTTagCompound data = stack.getTagCompound();
  8. if (data != null) {
  9. if (data.hasKey("levels"))
  10. list.add("Levels: " + data.getInteger("levels"));
  11. if (data.hasKey("levels")) {
  12. int size = data.getInteger("size");
  13. list.add("Size: " + size + "x" + size);
  14. }
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment