use of com.skelril.skree.content.zone.group.freakyfour.boss.bossmove.HealthBindInstruction in project Skree by Skelril.
the class SnipeeBossManager method handleBinds.
private void handleBinds() {
List<Instruction<BindCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>>>> bindProcessor = getBindProcessor();
bindProcessor.add(new NamedBindInstruction<>("Snipee"));
bindProcessor.add(new HealthBindInstruction<>(config.snipeeHP));
bindProcessor.add((condition, boss) -> {
Living entity = boss.getTargetEntity().get();
if (entity instanceof ArmorEquipable) {
((ArmorEquipable) entity).setItemInHand(HandTypes.MAIN_HAND, newItemStack(ItemTypes.BOW));
}
return Optional.empty();
});
}
Aggregations