@EventHandler(ignoreCancelled = false) public void onCreeperPower(cn.nukkit.event.entity.CreeperPowerEvent event) { if (canIgnore(CreeperPowerEvent.getHandlerList())) { return; } PowerCause cause = PowerCause.valueOf(event.getCause().name()); // Dirty and fast conversion CreeperPowerEvent bukkitEvent = new CreeperPowerEvent((Creeper) PokkitEntity.toBukkit(event.getEntity()), cause); callCancellable(event, bukkitEvent); }
public CreeperPowerEvent(Creeper creeper, LightningStrike bolt, CreeperPowerEvent.PowerCause cause) { }
public CreeperPowerEvent(Creeper creeper, CreeperPowerEvent.PowerCause cause) { }
public CreeperPowerEvent.PowerCause getCause() { return null; }
@EventHandler(ignoreCancelled = true) void onCreeperCharged(CreeperPowerEvent event) { if (plugin.isShopkeeper(event.getEntity())) { event.setCancelled(true); } }