22 lines
444 B
Java
22 lines
444 B
Java
package com.jdh.microcraft.entity.attack;
|
|
|
|
import com.jdh.microcraft.entity.mob.EntityAirWizard;
|
|
|
|
public abstract class WizardAttack {
|
|
protected final EntityAirWizard wizard;
|
|
public int time;
|
|
|
|
public WizardAttack(EntityAirWizard wizard, int time) {
|
|
this.wizard = wizard;
|
|
this.time = time;
|
|
}
|
|
|
|
public boolean done() {
|
|
return this.time <= 0;
|
|
}
|
|
|
|
public void tick() {
|
|
this.time--;
|
|
}
|
|
}
|