Пример #1
0
  public static void setCharging(EntityLivingBase entity, boolean flag) {
    if (flag) {
      BuffableType.MELEE.setBonus(entity, BonusType.CHARGE, 2);
    } else {
      BuffableType.MELEE.clearBonus(entity, BonusType.CHARGE);
    }

    DataWatcherFlag.IS_CHARGING.set(entity, flag);
  }
Пример #2
0
 public static boolean isCharging(EntityLivingBase entity) {
   return DataWatcherFlag.IS_CHARGING.get(entity);
 }