Class BlockIgniteDomainEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.block.BaseBlock
-
- work.torp.domain.api.events.block.BlockIgniteDomainEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class BlockIgniteDomainEvent extends BaseBlock implements org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description BlockIgniteDomainEvent(work.torp.domain.domainblock.DomainBlock domainBlock, org.bukkit.block.Block block, org.bukkit.event.block.BlockIgniteEvent.IgniteCause igniteCause, org.bukkit.entity.Player player)BlockIgniteDomainEvent This event is called when a block is broken
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCancelReason()booleanisCancelled()voidsetCancelled(boolean cancel)voidsetCancelReason(java.lang.String cancelReason)-
Methods inherited from class work.torp.domain.api.events.block.BaseBlock
getBlock, getHandlerList, getHandlers, logBaseValues
-
-
-
-
Constructor Detail
-
BlockIgniteDomainEvent
public BlockIgniteDomainEvent(work.torp.domain.domainblock.DomainBlock domainBlock, org.bukkit.block.Block block, org.bukkit.event.block.BlockIgniteEvent.IgniteCause igniteCause, org.bukkit.entity.Player player)BlockIgniteDomainEvent This event is called when a block is broken- Parameters:
domainBlock- The domain block where the block is being brokenblock- The block that is being brokenigniteCause- Cause of the fire ignitionplayer- The player that ignited the fire (if applicable)
-
-
Method Detail
-
getCancelReason
public java.lang.String getCancelReason()
-
setCancelReason
public void setCancelReason(java.lang.String cancelReason)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
-