Class GraveSpawner

java.lang.Object
com.haven.havenplugin.graves.GraveSpawner

public class GraveSpawner extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraveSpawner(org.bukkit.plugin.Plugin plugin, GraveConfig config)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Location
    findGraveLocation(org.bukkit.entity.Player player, Map<UUID, org.bukkit.Location> lastSolidGround)
    Determines the best grave spawn location for the given player death.
    org.bukkit.Location
    findSpawnNear(org.bukkit.Location origin, boolean wasWater)
     
    void
    placeGraveBlock(org.bukkit.Location loc, float yaw)
    Places the grave block (a PLAYER_HEAD) at the given location, oriented to match the provided yaw angle.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraveSpawner

      public GraveSpawner(org.bukkit.plugin.Plugin plugin, GraveConfig config)
  • Method Details

    • findGraveLocation

      public org.bukkit.Location findGraveLocation(org.bukkit.entity.Player player, Map<UUID, org.bukkit.Location> lastSolidGround)
      Determines the best grave spawn location for the given player death. Returns null if no valid location exists OR if the only candidate is the End obsidian platform (caller should check isOnEndPlatform(Location) on a non-null result to send the appropriate player message).
    • placeGraveBlock

      public void placeGraveBlock(org.bukkit.Location loc, float yaw)
      Places the grave block (a PLAYER_HEAD) at the given location, oriented to match the provided yaw angle.
    • findSpawnNear

      public org.bukkit.Location findSpawnNear(org.bukkit.Location origin, boolean wasWater)