Advertisement
Guest User

Untitled

a guest
Aug 1st, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. package net.minecraft.server;
  2.  
  3. public enum EnumToolMaterial
  4. {
  5. private final int f;
  6. private final int g;
  7. private final float h;
  8. private final float i;
  9. private final int j;
  10.  
  11. private EnumToolMaterial(int paramInt2, int paramInt3, float paramFloat1, float paramFloat2, int paramInt4)
  12. {
  13. this.f = paramInt2;
  14. this.g = paramInt3;
  15. this.h = paramFloat1;
  16. this.i = paramFloat2;
  17. this.j = paramInt4;
  18. }
  19.  
  20. public int a()
  21. {
  22. return this.g;
  23. }
  24.  
  25. public float b()
  26. {
  27. return this.h;
  28. }
  29.  
  30. public float c()
  31. {
  32. return this.i;
  33. }
  34.  
  35. public int d()
  36. {
  37. return this.f;
  38. }
  39.  
  40. public int e()
  41. {
  42. return this.j;
  43. }
  44.  
  45. public Item f()
  46. {
  47. if (this == WOOD) {
  48. return Item.getItemOf(Blocks.PLANKS);
  49. }
  50. if (this == STONE) {
  51. return Item.getItemOf(Blocks.COBBLESTONE);
  52. }
  53. if (this == GOLD) {
  54. return Items.GOLD_INGOT;
  55. }
  56. if (this == IRON) {
  57. return Items.IRON_INGOT;
  58. }
  59. if (this == EMERALD) {
  60. return Items.DIAMOND;
  61. }
  62. if (this == AZURITE) {
  63. return Items.azurite;
  64. }
  65. if (this == OLIVINE) {
  66. return Items.olivine;
  67. }
  68. if (this == RUBELLITE) {
  69. return Items.rubellite;
  70. }
  71. if (this == PLATINE) {
  72. return Items.platine_ingot;
  73. }
  74. return null;
  75. }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement