Class GravePostCreateEvent

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

public class GravePostCreateEvent extends GraveEntityEvent
Represents an event that occurs after a grave creation attempt has completed.

This is a post event: it fires after GraveCreateEvent and after placement has been attempted. It is primarily intended for addons/integrations that want to react to the outcome.

The placed location may be null if the grave was not placed (e.g. failed placement, void death with safe-location disabled, or placement handled elsewhere).

  • Constructor Details

    • GravePostCreateEvent

      public GravePostCreateEvent(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull Grave grave, @Nullable @Nullable org.bukkit.Location placedLocation)
      Constructs a new GravePostCreateEvent.
      Parameters:
      entity - The entity the grave belongs to.
      grave - The grave that was created for this death.
      placedLocation - The final placement location, or null if not placed.
  • Method Details

    • getPlacedLocation

      @Nullable public @Nullable org.bukkit.Location getPlacedLocation()
      Gets the final placement location.
      Returns:
      The location the grave was placed at, or null if not placed.
    • isPlaced

      public boolean isPlaced()
      Checks whether the grave was successfully placed.
      Returns:
      true if getPlacedLocation() is non-null.
    • 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()