27 lines
1.0 KiB
Java
27 lines
1.0 KiB
Java
package games.dmg.fantasystick.ability;
|
|
|
|
import games.dmg.fantasystick.session.ControlInput;
|
|
import java.math.BigDecimal;
|
|
import java.time.Duration;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import org.bukkit.damage.DamageSource;
|
|
import org.bukkit.entity.Entity;
|
|
import org.bukkit.entity.LivingEntity;
|
|
|
|
/** Bounded owned runtime supplied by the shared engine after durable cast authorization. */
|
|
public interface AbilityExecution extends AutoCloseable {
|
|
AbilityDefinition definition();
|
|
ControlInput input();
|
|
games.dmg.fantasystick.persistence.CharacterRecord character();
|
|
boolean stillCurrent();
|
|
List<Entity> eligible(Collection<? extends Entity> candidates, int maximum);
|
|
AbilityScheduler.Task later(Duration delay, Runnable action);
|
|
void own(AutoCloseable resource);
|
|
boolean trainingDummy(Entity target);
|
|
void damage(LivingEntity target, double amount, DamageSource source);
|
|
void report(AbilityReport.Type type, Entity target, BigDecimal amount);
|
|
void finish();
|
|
@Override void close();
|
|
}
|