use of com.skelril.openboss.Boss in project Skree by Skelril.
the class CatacombsInstance method spawnNormal.
private Boss<Zombie, CatacombsBossDetail> spawnNormal(Location<World> loc) {
Zombie zombie = spawnZombie(loc);
Boss<Zombie, CatacombsBossDetail> boss = new Boss<>(zombie, new CatacombsBossDetail(this, wave));
List<Instruction<BindCondition, Boss<Zombie, CatacombsBossDetail>>> bindProcessor = boss.getBindProcessor();
bindProcessor.add(new CatacombsHealthInstruction(20));
bindProcessor.add(new NamedBindInstruction<>("Guardian Zombie"));
return boss;
}
use of com.skelril.openboss.Boss in project Skree by Skelril.
the class PatientXInstance method spawnBoss.
public void spawnBoss() {
resetDifficulty();
freezeBlocks(false);
Zombie zombie = (Zombie) getRegion().getExtent().createEntity(EntityTypes.ZOMBIE, getRegion().getCenter());
getRegion().getExtent().spawnEntity(zombie, Cause.source(SpawnCause.builder().type(SpawnTypes.PLUGIN).build()).build());
Boss<Zombie, ZoneBossDetail<PatientXInstance>> boss = new Boss<>(zombie, new ZoneBossDetail<>(this));
bossManager.bind(boss);
this.boss = boss;
}
use of com.skelril.openboss.Boss in project Skree by Skelril.
the class ShnugglesPrimeInstance method spawnBoss.
public void spawnBoss() {
Giant spawned = (Giant) getRegion().getExtent().createEntity(EntityTypes.GIANT, getRegion().getCenter());
getRegion().getExtent().spawnEntity(spawned, Cause.source(SpawnCause.builder().type(SpawnTypes.PLUGIN).build()).build());
Boss<Giant, ZoneBossDetail<ShnugglesPrimeInstance>> boss = new Boss<>(spawned, new ZoneBossDetail<>(this));
bossManager.bind(boss);
this.boss = boss;
}
use of com.skelril.openboss.Boss in project Skree by Skelril.
the class FreakyFourInstance method spawnBoss.
public void spawnBoss(FreakyFourBoss boss, long delay) {
loadingBoss = true;
Task.builder().execute(() -> {
Entity entity = getRegion().getExtent().createEntity(boss.getEntityType(), getCenter(boss));
getRegion().getExtent().spawnEntity(entity, Cause.source(SpawnCause.builder().type(SpawnTypes.PLUGIN).build()).build());
Boss<Living, ZoneBossDetail<FreakyFourInstance>> aBoss = new Boss<>((Living) entity, new ZoneBossDetail<>(this));
bossManagers.get(boss).bind(aBoss);
bosses.put(boss, aBoss);
loadingBoss = false;
}).delayTicks(delay).submit(SkreePlugin.inst());
}
Aggregations