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(forRemoval=true, since="1.19.4") public class TNTPrimeEvent extends BlockEvent implements Cancellable
Deprecated, for removal: This API element is subject to removal in a future version.
Called when TNT block is about to turn into TNTPrimed

Cancelling it won't turn TNT into TNTPrimed and leaves the TNT block as-is

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Deprecated, 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

    Constructors
    Constructor
    Description
    TNTPrimeEvent(@NotNull Block block, @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 Type
    Method
    Description
    static @NotNull HandlerList
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NotNull HandlerList
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable Entity
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the TNT primer Entity.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the TNT prime reason
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets whether spawning TNTPrimed should be cancelled or not
    void
    setCancelled(boolean cancel)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets whether to cancel spawning TNTPrimed or not

    Methods inherited from class org.bukkit.event.block.BlockEvent

    getBlock

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait