Java 类org.bukkit.event.entity.CreeperPowerEvent 实例源码

项目:Pokkit    文件:EntityEvents.java   
@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);
}
项目:BedrockAPI    文件:CreeperPowerEvent.java   
public CreeperPowerEvent(Creeper creeper, LightningStrike bolt, CreeperPowerEvent.PowerCause cause) {
}
项目:BedrockAPI    文件:CreeperPowerEvent.java   
public CreeperPowerEvent(Creeper creeper, CreeperPowerEvent.PowerCause cause) {
}
项目:BedrockAPI    文件:CreeperPowerEvent.java   
public CreeperPowerEvent.PowerCause getCause() {
    return null;
}
项目:Shopkeepers    文件:LivingEntityShopListener.java   
@EventHandler(ignoreCancelled = true)
void onCreeperCharged(CreeperPowerEvent event) {
    if (plugin.isShopkeeper(event.getEntity())) {
        event.setCancelled(true);
    }
}