use of com.skelril.skree.content.zone.ZoneBossDetail 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.skree.content.zone.ZoneBossDetail in project Skree by Skelril.
the class DaBombBossManager method handleDamaged.
private void handleDamaged() {
List<Instruction<DamagedCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>>>> damagedProcessor = getDamagedProcessor();
damagedProcessor.add(new BackTeleportInstruction(config));
damagedProcessor.add(new HealableInstruction());
}
use of com.skelril.skree.content.zone.ZoneBossDetail in project Skree by Skelril.
the class FrimusBossManager method handleUnbinds.
private void handleUnbinds() {
List<Instruction<UnbindCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>>>> unbindProcessor = getUnbindProcessor();
unbindProcessor.add(new FreakyFourBossDeath());
}
use of com.skelril.skree.content.zone.ZoneBossDetail 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.skree.content.zone.ZoneBossDetail 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