Class GraveSpawner
java.lang.Object
com.haven.havenplugin.graves.GraveSpawner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationfindGraveLocation(org.bukkit.entity.Player player, Map<UUID, org.bukkit.Location> lastSolidGround) Determines the best grave spawn location for the given player death.org.bukkit.LocationfindSpawnNear(org.bukkit.Location origin, boolean wasWater) voidplaceGraveBlock(org.bukkit.Location loc, float yaw) Places the grave block (a PLAYER_HEAD) at the given location, oriented to match the provided yaw angle.
-
Constructor Details
-
GraveSpawner
-
-
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. Returnsnullif no valid location exists OR if the only candidate is the End obsidian platform (caller should checkisOnEndPlatform(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)
-