Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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--;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user