Exemplo n.º 1
0
 @Override
 public int getOperationTime() {
   if (ConfigRegistry.INSTACUT.getState()) {
     int base = DurationRegistry.WOODCUTTER.getOperationTime(omega);
     float ench =
         ReikaEnchantmentHelper.getEfficiencyMultiplier(
             this.getEnchantment(Enchantment.efficiency));
     return (int) (base / ench);
   }
   return 0;
 }
Exemplo n.º 2
0
 @Override
 public int getNumberConsecutiveOperations() {
   return DurationRegistry.WOODCUTTER.getNumberOperations(omega);
 }