Advertisement
Guest User

moditemteir.java

a guest
Sep 13th, 2020
660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.37 KB | None | 0 0
  1. /*    */ package com.com.tools;
  2. /*    */
  3. /*    */
  4. /*    */
  5. /*    */
  6. /*    */ public enum ModItemTeir implements IItemTier {
  7. /* 10 */   CUSTOMNAMEHERE(1, 131, 4.0F, 3.0F, 5, () -> Ingredient.fromItems(RegistryHandler.YourItem.get()));
  8. /*    */
  9.  
  10.  
  11. /*    */   private final Supplier<Ingredient> repairmaterial;
  12. /*    */  
  13. /*    */   private final int enchantability;
  14. /*    */  
  15. /*    */   private final float attackDamage;
  16. /*    */  
  17. /*    */   private final float efficiency;
  18. /*    */  
  19. /*    */   private final int maxUses;
  20. /*    */  
  21. /*    */   private final int harvestLevel;
  22. /*    */  
  23. /*    */   ModItemTeir(int harvestLevel, int maxUses, float efficiency, float attackDamage, int enchantability, Supplier<Ingredient>             repairmaterial) {
  24. /* 25 */     this.harvestLevel = harvestLevel;
  25. /* 26 */     this.maxUses = maxUses;
  26. /* 27 */     this.efficiency = efficiency;
  27. /* 28 */     this.attackDamage = attackDamage;
  28. /* 29 */     this.enchantability = enchantability;
  29. /* 30 */     this.repairmaterial = repairmaterial;
  30. /*    */   }
  31. /*    */
  32. /*    */
  33. /*    */
  34. /*    */  
  35. /*    */   public int func_200926_a() {
  36. /* 37 */     return this.maxUses;
  37. /*    */   }
  38. /*    */
  39. /*    */  
  40. /*    */   public float func_200928_b() {
  41. /* 42 */     return this.efficiency;
  42. /*    */   }
  43. /*    */
  44. /*    */  
  45. /*    */   public float func_200929_c() {
  46. /* 47 */     return this.attackDamage;
  47. /*    */   }
  48. /*    */
  49. /*    */  
  50. /*    */   public int func_200925_d() {
  51. /* 52 */     return this.harvestLevel;
  52. /*    */   }
  53. /*    */
  54. /*    */  
  55. /*    */   public int func_200927_e() {
  56. /* 57 */     return this.enchantability;
  57. /*    */   }
  58. /*    */
  59. /*    */  
  60. /*    */   public Ingredient func_200924_f() {
  61. /* 62 */     return this.repairmaterial.get();
  62. /*    */   }
  63.  
  64.     @Override
  65.     public int getMaxUses() {
  66.         return this.maxUses;
  67.     }
  68.  
  69.     @Override
  70.     public float getEfficiency() {
  71.         return this.efficiency;
  72.     }
  73.  
  74.     @Override
  75.     public float getAttackDamage() {
  76.         return this.attackDamage;
  77.     }
  78.  
  79.     @Override
  80.     public int getHarvestLevel() {
  81.         return this.harvestLevel;
  82.     }
  83.  
  84.     @Override
  85.     public int getEnchantability() {
  86.         return this.enchantability;
  87.     }
  88.  
  89.     @Override
  90.     public Ingredient getRepairMaterial() {
  91.         return (Ingredient) this.repairmaterial;
  92.     }
  93.     /*    */ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement