Class TNTPrimeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
com.destroystokyo.paper.event.block.TNTPrimeEvent
- All Implemented Interfaces:
- Cancellable
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionTNTPrimeEvent(@NotNull Block theBlock, @NotNull TNTPrimeEvent.PrimeReason reason, @Nullable Entity primerEntity) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic @Nullable HandlerListGets the TNT primerEntity.Gets the TNT prime reasonbooleanGets whether spawningTNTPrimedshould be cancelled or notvoidsetCancelled(boolean cancel) Sets whether to cancel spawningTNTPrimedor notMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
TNTPrimeEvent
 
- 
- 
Method Details- 
getReasonGets the TNT prime reason- Returns:
- Prime reason
 
- 
getPrimerEntityGets the TNT primerEntity. It's null ifgetReason()isTNTPrimeEvent.PrimeReason.REDSTONEorTNTPrimeEvent.PrimeReason.FIRE. It's not null ifgetReason()isTNTPrimeEvent.PrimeReason.ITEMorTNTPrimeEvent.PrimeReason.PROJECTILEIt might be null ifgetReason()isTNTPrimeEvent.PrimeReason.EXPLOSION- Returns:
- The Entitywho primed the TNT
 
- 
isCancelledpublic boolean isCancelled()Gets whether spawningTNTPrimedshould be cancelled or not- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- Whether spawning TNTPrimedshould be cancelled or not
 
- 
setCancelledpublic void setCancelled(boolean cancel) Sets whether to cancel spawningTNTPrimedor not- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- whether spawning- TNTPrimedshould be cancelled or not
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-