Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 11th, 2012  |  syntax: None  |  size: 1.93 KB  |  views: 22  |  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. package net.minecraft.src;
  2.  
  3.  
  4. public enum mod_NightmareToolMaterial
  5. {
  6.     WOOD("WOOD", 0, 0, 59, 2.0F, 0),
  7.     STONE("STONE", 1, 1, 131, 4F, 1),
  8.     IRON("IRON", 2, 2, 250, 6F, 2),
  9.     EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
  10.     GOLD("GOLD", 4, 0, 32, 12F, 0),
  11. //ADD YOUR TOOL TYPE HERE (ex: LAPIS can go here));
  12. /*
  13.     public static EnumToolMaterial[] values()
  14.     {
  15.         return (EnumToolMaterial[])field_21209_j.clone();
  16.     }
  17.  
  18.     public static EnumToolMaterial valueOf(String s)
  19.     {
  20.         return (EnumToolMaterial)Enum.valueOf(net.minecraft.src.EnumToolMaterial.class, s);
  21.     }
  22. */
  23.     private mod_NightmareToolMaterial(String s, int i, int j, int k, float f, int l)
  24.     {
  25. //        super(s, i);
  26.         harvestLevel = j;
  27.         maxUses = k;
  28.         efficiencyOnProperMaterial = f;
  29.         damageVsEntity = l;
  30.     }
  31.  
  32.     public int getMaxUses()
  33.     {
  34.         return maxUses;
  35.     }
  36.  
  37.     public float getEfficiencyOnProperMaterial()
  38.     {
  39.         return efficiencyOnProperMaterial;
  40.     }
  41.  
  42.     public int getDamageVsEntity()
  43.     {
  44.         return damageVsEntity;
  45.     }
  46.  
  47.     public int getHarvestLevel()
  48.     {
  49.         return harvestLevel;
  50.     }
  51. /*
  52.     public static final EnumToolMaterial WOOD;
  53.     public static final EnumToolMaterial STONE;
  54.     public static final EnumToolMaterial IRON;
  55.     public static final EnumToolMaterial EMERALD;
  56.     public static final EnumToolMaterial GOLD;
  57. */
  58.     private final int harvestLevel;
  59.     private final int maxUses;
  60.     private final float efficiencyOnProperMaterial;
  61.     private final int damageVsEntity;
  62.  
  63.     static
  64.     {
  65. /*
  66.         WOOD = new EnumToolMaterial("WOOD", 0, 0, 59, 2.0F, 0);
  67.         STONE = new EnumToolMaterial("STONE", 1, 1, 131, 4F, 1);
  68.         IRON = new EnumToolMaterial("IRON", 2, 2, 250, 6F, 2);
  69.         EMERALD = new EnumToolMaterial("EMERALD", 3, 3, 1561, 8F, 3);
  70.         GOLD = new EnumToolMaterial("GOLD", 4, 0, 32, 12F, 0);
  71. */
  72.     }
  73. }
clone this paste RAW Paste Data