Class GravePostTeleportEvent

All Implemented Interfaces:
Addon, org.bukkit.event.Cancellable

public class GravePostTeleportEvent extends GraveEntityEvent
Triggered after an entity has successfully teleported as part of a grave teleport.

If cancelled, GravesX should attempt to roll the entity back to the "from" location.

  • Constructor Details

    • GravePostTeleportEvent

      public GravePostTeleportEvent(@NotNull @NotNull Grave grave, @NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Location from, @NotNull @NotNull org.bukkit.Location to)
      Constructs a new GravePostTeleportEvent.
      Parameters:
      grave - the grave associated with the teleport
      entity - the entity that teleported
      from - the location before teleport
      to - the location after teleport
  • Method Details

    • getFrom

      @NotNull public @NotNull org.bukkit.Location getFrom()
      Location before teleport (cloned).
    • getTo

      @NotNull public @NotNull org.bukkit.Location getTo()
      Location after teleport (cloned).
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: GraveEntityEvent
      Gets the list of handlers for this event.
      Overrides:
      getHandlers in class GraveEntityEvent
      Returns:
      The handler list for this event.
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()