コード例 #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;
 }
コード例 #2
0
 @Override
 public int getNumberConsecutiveOperations() {
   return DurationRegistry.WOODCUTTER.getNumberOperations(omega);
 }