Class TNTPrimeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
com.destroystokyo.paper.event.block.TNTPrimeEvent
- All Implemented Interfaces:
Cancellable
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block -
Constructor Summary
ConstructorsConstructorDescriptionTNTPrimeEvent(@NotNull Block theBlock, @NotNull TNTPrimeEvent.PrimeReason reason, @Nullable Entity primerEntity) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable HandlerListDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the TNT primerEntity.Deprecated, for removal: This API element is subject to removal in a future version.Gets the TNT prime reasonbooleanDeprecated, for removal: This API element is subject to removal in a future version.Gets whether spawningTNTPrimedshould be cancelled or notvoidsetCancelled(boolean cancel) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether to cancel spawningTNTPrimedor notMethods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getReason
Deprecated, for removal: This API element is subject to removal in a future version.Gets the TNT prime reason- Returns:
- Prime reason
-
getPrimerEntity
Deprecated, for removal: This API element is subject to removal in a future version.Gets 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
-
isCancelled
public boolean isCancelled()Deprecated, for removal: This API element is subject to removal in a future version.Gets whether spawningTNTPrimedshould be cancelled or not- Specified by:
isCancelledin interfaceCancellable- Returns:
- Whether spawning
TNTPrimedshould be cancelled or not
-
setCancelled
public void setCancelled(boolean cancel) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether to cancel spawningTNTPrimedor not- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel- whether spawningTNTPrimedshould be cancelled or not
-
getHandlers
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHandlersin classEvent
-
getHandlerList
Deprecated, for removal: This API element is subject to removal in a future version.
-
TNTPrimeEvent