Class UtilLocation

java.lang.Object
net.lewmc.essence.core.UtilLocation

public class UtilLocation extends Object
Essence location utility.
  • Constructor Details

    • UtilLocation

      public UtilLocation(Essence plugin)
      Constructor for the LocationUtil class.
      Parameters:
      plugin - Reference to the main Essence class.
  • Method Details

    • UpdateLastLocation

      public void UpdateLastLocation(org.bukkit.entity.Player player)
    • GetRandomLocation

      public org.bukkit.Location GetRandomLocation(org.bukkit.entity.Player player, org.bukkit.WorldBorder wb)
      Retrieves a random location around the player.
      Parameters:
      player - Player - The player to search around.
      wb - WorldBorder - The end of the world
      Returns:
      Location - The location to return.
    • GetGroundY

      public int GetGroundY(org.bukkit.World world, int x, int z)