java.lang.Object
org.cloudburstmc.api.event.Event
org.cloudburstmc.api.event.entity.EntityEvent
org.cloudburstmc.api.event.entity.CreeperPowerEvent
- All Implemented Interfaces:
Cancellable
author: MagicDroidX
Nukkit Project
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum to specify the cause of the change in power -
Field Summary
Fields inherited from class org.cloudburstmc.api.event.entity.EntityEvent
entity -
Constructor Summary
ConstructorsConstructorDescriptionCreeperPowerEvent(Creeper creeper, LightningBolt lightningBolt, CreeperPowerEvent.PowerCause cause) CreeperPowerEvent(Creeper creeper, CreeperPowerEvent.PowerCause cause) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets the cause of the creeper being (un)powered.Gets the lightning bolt which is striking the Creeper.Methods inherited from class org.cloudburstmc.api.event.Event
isCancelled, setCancelled, setCancelledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Constructor Details
-
CreeperPowerEvent
public CreeperPowerEvent(Creeper creeper, LightningBolt lightningBolt, CreeperPowerEvent.PowerCause cause) -
CreeperPowerEvent
-
-
Method Details
-
getEntity
- Overrides:
getEntityin classEntityEvent
-
getLightningBolt
Gets the lightning bolt which is striking the Creeper.- Returns:
- The Entity for the lightning bolt which is striking the Creeper
-
getCause
Gets the cause of the creeper being (un)powered.- Returns:
- A PowerCause value detailing the cause of change in power.
-