Class LocationPair

java.lang.Object
me.therealkeyis.models.LocationPair

public class LocationPair extends Object
A pair of coordinates
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The x value for the location
    double
    The z value for the location
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocationPair(double x, double z)
    Creates a location pair from the provided coordinates
    LocationPair(org.bukkit.event.player.PlayerInteractEvent event)
    Creates a location pair from a PlayerInteractionEvent
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • x

      public double x
      The x value for the location
    • z

      public double z
      The z value for the location
  • Constructor Details

    • LocationPair

      public LocationPair(org.bukkit.event.player.PlayerInteractEvent event)
      Creates a location pair from a PlayerInteractionEvent
      Parameters:
      event - A player interaction event
    • LocationPair

      public LocationPair(double x, double z)
      Creates a location pair from the provided coordinates
      Parameters:
      x - the x coordinate
      z - the z coordinate