Package de.eimmer.ereignis.wetter
Class BlitzEinschlagEreignis
java.lang.Object
de.eimmer.ereignis.Ereignis
de.eimmer.ereignis.wetter.WetterEreignis
de.eimmer.ereignis.wetter.BlitzEinschlagEreignis
- All Implemented Interfaces:
Abbrechbar
Stores data for lightning striking
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.eimmer.ereignis.Ereignis
Ereignis.Result
-
Field Summary
Fields inherited from class de.eimmer.ereignis.wetter.WetterEreignis
welt
-
Constructor Summary
ConstructorsConstructorDescriptionBlitzEinschlagEreignis
(Welt welt, BlitzEinschlag bolt) Deprecated.BlitzEinschlagEreignis
(Welt welt, BlitzEinschlag bolt, BlitzEinschlagEreignis.Cause cause) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Gets the cause of this lightning strike.static HandhaberListe
Gets the bolt which is striking the earth.boolean
Gets the cancellation state of this ereignis.void
setCancelled
(boolean cancel) Sets the cancellation state of this ereignis.Methods inherited from class de.eimmer.ereignis.wetter.WetterEreignis
getWorld
Methods inherited from class de.eimmer.ereignis.Ereignis
getEventName, isAsynchronous
-
Constructor Details
-
BlitzEinschlagEreignis
Deprecated. -
BlitzEinschlagEreignis
public BlitzEinschlagEreignis(@NotNull Welt welt, @NotNull BlitzEinschlag bolt, @NotNull BlitzEinschlagEreignis.Cause cause)
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Abbrechbar
Gets the cancellation state of this ereignis. A cancelled ereignis will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelled
in interfaceAbbrechbar
- Returns:
- true if this ereignis is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:Abbrechbar
Sets the cancellation state of this ereignis. A cancelled ereignis will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceAbbrechbar
- Parameters:
cancel
- true if you wish to cancel this ereignis
-
getLightning
Gets the bolt which is striking the earth.- Returns:
- lightning wesen
-
getCause
Gets the cause of this lightning strike.- Returns:
- strike cause
-
getHandlers
- Specified by:
getHandlers
in classEreignis
-
getHandlerList
-