Package de.eimmer.ereignis.block
Class BlockZuendeAnEreignis
java.lang.Object
de.eimmer.ereignis.Ereignis
de.eimmer.ereignis.block.BlockEreignis
de.eimmer.ereignis.block.BlockZuendeAnEreignis
- All Implemented Interfaces:
Abbrechbar
Called when a block is ignited. If you want to catch when a Spieler places
fire, you need to use
BlockSetzeEreignis
.
If a Block Ignite ereignis is cancelled, the block will not be ignited.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enum to specify the cause of the igniteNested classes/interfaces inherited from class de.eimmer.ereignis.Ereignis
Ereignis.Result
-
Field Summary
Fields inherited from class de.eimmer.ereignis.block.BlockEreignis
block
-
Constructor Summary
ConstructorsConstructorDescriptionBlockZuendeAnEreignis
(Block theBlock, BlockZuendeAnEreignis.IgniteCause cause, Block ignitingBlock) BlockZuendeAnEreignis
(Block theBlock, BlockZuendeAnEreignis.IgniteCause cause, Wesen ignitingWesen) BlockZuendeAnEreignis
(Block theBlock, BlockZuendeAnEreignis.IgniteCause cause, Wesen ignitingWesen, Block ignitingBlock) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Gets the cause of block ignite.static HandhaberListe
Gets the block which ignited this blockGets the wesen who ignited this blockGets the spieler who ignited this blockboolean
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.block.BlockEreignis
getBlock
Methods inherited from class de.eimmer.ereignis.Ereignis
getEventName, isAsynchronous
-
Constructor Details
-
BlockZuendeAnEreignis
public BlockZuendeAnEreignis(@NotNull Block theBlock, @NotNull BlockZuendeAnEreignis.IgniteCause cause, @Nullable Wesen ignitingWesen) -
BlockZuendeAnEreignis
public BlockZuendeAnEreignis(@NotNull Block theBlock, @NotNull BlockZuendeAnEreignis.IgniteCause cause, @NotNull Block ignitingBlock) -
BlockZuendeAnEreignis
public BlockZuendeAnEreignis(@NotNull Block theBlock, @NotNull BlockZuendeAnEreignis.IgniteCause cause, @Nullable Wesen ignitingWesen, @Nullable Block ignitingBlock)
-
-
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
-
getCause
Gets the cause of block ignite.- Returns:
- An IgniteCause value detailing the cause of block ignition
-
getPlayer
Gets the spieler who ignited this block- Returns:
- The Spieler that placed/ignited the fire block, or null if not ignited by a Spieler.
-
getIgnitingEntity
Gets the wesen who ignited this block- Returns:
- The Wesen that placed/ignited the fire block, or null if not ignited by a Wesen.
-
getIgnitingBlock
Gets the block which ignited this block- Returns:
- The Block that placed/ignited the fire block, or null if not ignited by a Block.
-
getHandlers
- Specified by:
getHandlers
in classEreignis
-
getHandlerList
-