Advertisement
tinyevil

Untitled

Jan 10th, 2020
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.17 KB | None | 0 0
  1.   public int getBurnTime(ItemStack itemstack)
  2.   {
  3.     Item item = itemstack.func_77973_b();
  4.     if (((item instanceof ItemBlock)) && ((((ItemBlock)item).field_150939_a instanceof LOTRBlockSaplingBase))) {
  5.       return 100;
  6.     }
  7.     if (item == LOTRMod.nauriteGem) {
  8.       return 600;
  9.     }
  10.     if ((item == Item.func_150898_a(LOTRMod.blockOreStorage)) && (itemstack.func_77960_j() == 10)) {
  11.       return 6000;
  12.     }
  13.     if (item == LOTRMod.mallornStick) {
  14.       return 100;
  15.     }
  16.     if (((item instanceof ItemTool)) && (((ItemTool)item).func_150913_i() == LOTRMaterial.MALLORN.toToolMaterial())) {
  17.       return 200;
  18.     }
  19.     if (((item instanceof ItemSword)) && (((ItemSword)item).func_150932_j().equals(LOTRMaterial.MALLORN.toToolMaterial().toString()))) {
  20.       return 200;
  21.     }
  22.     if (((item instanceof ItemHoe)) && (((ItemHoe)item).func_77842_f().equals(LOTRMaterial.MALLORN.toToolMaterial().toString()))) {
  23.       return 200;
  24.     }
  25.     if ((item == Items.field_151120_aE) || (item == Item.func_150898_a(LOTRMod.reeds)) || (item == Item.func_150898_a(LOTRMod.driedReeds)) || (item == Item.func_150898_a(LOTRMod.cornStalk))) {
  26.       return 100;
  27.     }
  28.     return 0;
  29.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement