use of net.laboulangerie.laboulangeriemmo.core.combo.KeyStreak in project LaBoulangerieMmo by LaBoulangerie.
the class FastMine method shouldTrigger.
@Override
public boolean shouldTrigger(Event baseEvent) {
ComboCompletedEvent event = (ComboCompletedEvent) baseEvent;
ItemStack item = event.getPlayer().getInventory().getItemInMainHand();
return item != null && (item.getType() == Material.NETHERITE_PICKAXE || item.getType() == Material.DIAMOND_PICKAXE || item.getType() == Material.IRON_PICKAXE) && event.getKeyStreak().match(new KeyStreak(ComboKey.LEFT, ComboKey.LEFT, ComboKey.LEFT));
}
Aggregations