Don't like ads? PRO users don't see any ads ;-)
Guest

damageditemname

By: a guest on Jun 21st, 2012  |  syntax: Java  |  size: 9.99 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.                 switch(item.getId()){
  2.                         case 5:
  3.                                 switch(item.getDamage()){
  4.                                         case 0: return "Oak Planks";
  5.                                         case 1: return "Spruce Planks";
  6.                                         case 2: return "Birch Planks";
  7.                                         case 3: return "Jungle Planks";
  8.                                 }
  9.                         case 6:
  10.                                 switch(item.getDamage()){
  11.                                         case 0: return "Oak Sapling";
  12.                                         case 1: return "Spruce Sapling";
  13.                                         case 2: return "Birch Sapling";
  14.                                         case 3: return "Jungle Tree Sapling";
  15.                                 }
  16.                         case 17:
  17.                                 switch(item.getDamage()){
  18.                                         case 0: return "Oak Log";
  19.                                         case 1: return "Spruce Log";
  20.                                         case 2: return "Birch Log";
  21.                                         case 3: return "Jungle Log";
  22.                                 }
  23.                         case 18:
  24.                                 switch(item.getDamage()){
  25.                                         case 0: return "OakLeaves";
  26.                                         case 1: return "Spruce Leaves";
  27.                                         case 2: return "Birch Leaves";
  28.                                         case 3: return "Jungle Leaves";
  29.                                 }
  30.                         case 24:
  31.                                 switch(item.getDamage()){
  32.                                         case 0: return "Normal Sandstone";
  33.                                         case 1: return "Chiseled Sandstone";
  34.                                         case 2: return "Smooth Sandstone";
  35.                                 }
  36.                         case 31:
  37.                                 switch(item.getDamage()){
  38.                                         case 0: return "Dead Shrub";
  39.                                         case 1: return "Tall Grass";
  40.                                         case 2: return "Fern";
  41.                                 }
  42.                         case 35:
  43.                                 switch(item.getDamage()){
  44.                                     case 0: return "White Wool";
  45.                                     case 1: return "Orange Wool";
  46.                                     case 2: return "Magneta Wool";
  47.                                     case 3: return "Light Blue Wool";
  48.                                     case 4: return "Yellow Wool";
  49.                                     case 5: return "Lime Wool";
  50.                                     case 6: return "Pink Wool";
  51.                                     case 7: return "Gray Wool";
  52.                                     case 8: return "Light Gray Wool";
  53.                                     case 9: return "Cyan Wool";
  54.                                     case 10: return "Purple Wool";
  55.                                     case 11: return "Blue Wool";
  56.                                     case 12: return "Brown Wool";
  57.                                     case 13: return "Green Wool";
  58.                                     case 14: return "Red Wool";
  59.                                     case 15: return "Black Wool";
  60.                                 }
  61.                         case 43:
  62.                                 switch(item.getDamage()){
  63.                                         case 0: return "DoubleStone Slab";
  64.                                         case 1: return "DoubleSandstone Slab";
  65.                                         case 2: return "DoubleWooden Stone Slab";
  66.                                         case 3: return "DoubleCobblestone Slab";
  67.                                         case 4: return "DoubleBrick Slab";
  68.                                         case 5: return "DoubleStone Brick Slab";
  69.                                         case 6: return "DoubleStone Slab";
  70.                                 }              
  71.                         case 44:
  72.                                 switch(item.getDamage()){
  73.                                         case 0: return "Stone Slab";
  74.                                         case 1: return "Sandstone Slab";
  75.                                         case 2: return "Wooden Stone Slab";
  76.                                         case 3: return "Cobblestone Slab";
  77.                                         case 4: return "Brick Slab";
  78.                                         case 5: return "Stone Brick Slab";
  79.                                 }
  80.                         case 97:
  81.                                 switch(item.getDamage()){
  82.                                         case 0: return "SilverFish Stone";
  83.                                         case 1: return "SilverFish CobbleStone";
  84.                                         case 2: return "SilverFish Stonebrick";
  85.                                 }
  86.                         case 98:
  87.                                 switch(item.getDamage()){
  88.                                         case 0: return "Normal Stonebrick";
  89.                                         case 1: return "Mossy Stonebrick";
  90.                                         case 2: return "Cracked Stonebrick";
  91.                                         case 3: return "Chiseled Stonebrick";
  92.                                 }
  93.                         case 263:
  94.                                 switch(item.getDamage()){
  95.                                         case 0: return "Coal";
  96.                                         case 1: return "Charcoal";                     
  97.                                 }
  98.                         case 322:
  99.                                 switch(item.getDamage()){
  100.                                         case 0: return "Normal Golden Apple";
  101.                                         case 1: return "Enchanted Golden Apple";
  102.                                 }
  103.                         case 351:
  104.                                 switch(item.getDamage()){
  105.                         case 0:return "Ink Sac";
  106.                         case 1:return "Rose Red";
  107.                         case 2:return "Cactus Green";
  108.                         case 3:return "Cocoa Beans";
  109.                         case 4:return "Lapis Lazuli";
  110.                         case 5:return "Purple Dye";
  111.                         case 6:return "Cyan Dye";
  112.                         case 7:return "Light Gray Dye";
  113.                         case 8:return "Gray Dye";
  114.                         case 9:return "Pink Dye";
  115.                         case 10:return "Lime Dye";
  116.                         case 11:return "Dandelion Yellow";
  117.                         case 12:return "Light Blue Dye";
  118.                         case 13:return "Magenta Dye";
  119.                         case 14:return "Orange Dye";
  120.                         case 15:return "Bone Meal";
  121.                                 }
  122.                         case 373:
  123.                                 switch(item.getDamage()){
  124.                                         case 0:return "Water Bottle";
  125.                                         /**case 1:return "Potion of Regeneration";
  126.                                 case 2:return "Potion of Swiftness";
  127.                                         case 3:return "Potion of Fire Resistance";
  128.                                         case 4:return "Potion of Poison";
  129.                                         case 5:return "Potion of Healing";
  130.                                         case 6:return "Clear Potion";
  131.                                         case 7:return "Clear Potion";
  132.                                         case 8:return "Potion of Weakness";
  133.                                         case 9:return "Potion of Strength";
  134.                                         case 10:return "Potion of Slowness";
  135.                                         case 11:return "Diffuse Potion";
  136.                                         case 12:return "Potion of Harming";
  137.                                         case 13:return "Artless Potion";
  138.                                 case 14:return "Thin Potion";
  139.                                 case 15:return "Thin Potion";
  140.                                 */
  141.                                         case 16:return "Awkward Potion";
  142.                                 /**case 17:return "Potion of Regeneration";
  143.                                 case 18:return "Potion of Swiftness";
  144.                                 case 19:return "Potion of Fire Resistance";
  145.                                 case 20:return "Potion of Poison";
  146.                                 case 21:return "Potion of Healing";
  147.                                 case 22:return "Bungling Potion";
  148.                                 case 23:return "Bungling Potion";
  149.                                 case 24:return "Potion of Weakness";
  150.                                 case 25:return "Potion of Strength";
  151.                                 case 26:return "Potion of Slowness";
  152.                                 case 27:return "Smooth Potion";
  153.                                 case 28:return "Potion of Harming";
  154.                                 case 29:return "Suave Potion";
  155.                                 case 30:return "Debonair Potion";
  156.                                 case 31:return "Debonair Potion";
  157.                                 */
  158.                                 case 32:return "Thick Potion";
  159.                                 /**case 33:return "Potion of Regeneration II";
  160.                                 case 34:return "Potion of Swiftness II";
  161.                                 case 35:return "Potion of Fire Resistance";
  162.                                 case 36:return "Potion of Poison II";
  163.                                 case 37:return "Potion of Healing II";
  164.                                 case 38:return "Charming Potion";
  165.                                 case 39:return "Charming Potion";
  166.                                 case 40:return "Potion of Weakness";
  167.                                 case 41:return "Potion of Strength II";
  168.                                 case 42:return "Potion of Slowness";
  169.                                 case 43:return "Refined Potion";
  170.                                 case 44:return "Potion of Harming II";
  171.                                 case 45:return "Cordial Potion";
  172.                                 case 46:return "Sparkling Potion";
  173.                                 case 47:return "Sparkling Potion";
  174.                                 case 48:return "Potent Potion";
  175.                                 case 49:return "Potion of Regeneration II";
  176.                                 case 50:return "Potion of Swiftness II";
  177.                                 case 51:return "Potion of Fire Resistance";
  178.                                 case 52:return "Potion of Poison II";
  179.                                 case 53:return "Potion of Healing II";
  180.                                 case 54:return "Rank Potion";
  181.                                 case 55:return "Rank Potion";
  182.                                 case 56:return "Potion of Weakness";
  183.                                 case 57:return "Potion of Strength II";
  184.                                 case 58:return "Potion of Slowness";
  185.                                 case 59:return "Acrid Potion";
  186.                                 case 60:return "Potion of Harming II";
  187.                                 case 61:return "Gross Potion";
  188.                                 case 62:return "Stinky Potion";
  189.                                 case 63:return "Stinky Potion";
  190.                                 */
  191.                                 case 64:return "Mundane Potion";
  192.                                 case 8193:return "Regeneration Potion (0:45)";
  193.                                 case 8194:return "Swiftness Potion (3:00)";
  194.                                 case 8195:return "Fire Resistance Potion (3:00)";
  195.                                 case 8196:return "Poison Potion (0:45)";
  196.                                 case 8197:return "Healing Potion";
  197.                                 case 8200:return "Weakness Potion (1:30)";
  198.                                 case 8201:return "Strength Potion (3:00)";
  199.                                 case 8202:return "Slowness Potion (1:30)";
  200.                                 case 8204:return "Harming Potion";
  201.                                 case 8225:return "Regeneration Potion II (0:22)";
  202.                                 case 8226:return "Swiftness Potion II (1:30)";
  203.                                 case 8228:return "Poison Potion II (0:22)";
  204.                                 case 8229:return "Healing Potion II";
  205.                                 case 8233:return "Strength Potion II (1:30)";
  206.                                 case 8236:return "Harming Potion II";
  207.                                 case 8257:return "Regeneration Potion (2:00)";
  208.                                 case 8258:return "Swiftness Potion (8:00)";
  209.                                 case 8259:return "Fire Resistance Potion (8:00)";
  210.                                 case 8260:return "Poison Potion (2:00)";
  211.                                 case 8264:return "Weakness Potion (4:00)";
  212.                                 case 8265:return "Strength Potion (8:00)";
  213.                                 case 8266:return "Slowness Potion (4:00)";
  214.                                 case 16385:return "Regeneration Splash (0:33)";
  215.                                 case 16386:return "Swiftness Splash (2:15)";
  216.                                 case 16387:return "Fire Resistance Splash (2:15)";
  217.                                 case 16388:return "Poison Splash (0:33)";
  218.                                 case 16389:return "Healing Splash";
  219.                                 case 16392:return "Weakness Splash (1:07)";
  220.                                 case 16393:return "Strength Splash (2:15)";
  221.                                 case 16394:return "Slowness Splash (1:07)";
  222.                                 case 16396:return "Harming Splash";
  223.                                 case 16418:return "Swiftness Splash II (1:07)";
  224.                                 case 16420:return "Poison Splash II (0:16)";
  225.                                 case 16421:return "Healing Splash II";
  226.                                 case 16425:return "Strength Splash II (1:07)";
  227.                                 case 16428:return "Harming Splash II";
  228.                                 case 16449:return "Regeneration Splash (1:30)";
  229.                                 case 16450:return "Swiftness Splash (6:00)";
  230.                                 case 16451:return "Fire Resistance Splash (6:00)";
  231.                                 case 16452:return "Poison Splash (1:30)";
  232.                                 case 16456:return "Weakness Splash (3:00)";
  233.                                 case 16457:return "Strength Splash (6:00)";
  234.                                 case 16458:return "Slowness Splash (3:00)";
  235.                                 case 16471:return "Regeneration Splash II (0:16)";
  236.                                
  237.                         }
  238.                         case 383:
  239.                                 switch(item.getDamage()){
  240.                                         case 50:return "Creeper Egg";
  241.                                         case 51:return "Skeleton Egg";
  242.                                         case 52:return "Spider Egg";
  243.                                         case 54:return "Zombie Egg";
  244.                                         case 55:return "Slime Egg";
  245.                                         case 56:return "Ghast Egg";
  246.                                         case 57:return "Zombie Pigman Egg";
  247.                                         case 58:return "Enderman Egg";
  248.                                         case 59:return "Cave Spider Egg";
  249.                                         case 60:return "Silverfish Egg";
  250.                                         case 61:return "Blaze Egg";
  251.                                         case 62:return "Magma Cube Egg";
  252.                                         case 90:return "Pig Egg";
  253.                                         case 91:return "Sheep Egg";
  254.                                         case 92:return "Cow Egg";
  255.                                         case 93:return "Chicken Egg";
  256.                                         case 94:return "Squid Egg";
  257.                                         case 95:return "Wolf Egg";
  258.                                         case 96:return "Mooshroom Egg";
  259.                                         case 98:return "Ocelot Egg";
  260.                                         case 120:return "Villager Egg";
  261.                                 }