java.lang.Object
org.bukkit.Location
cloud.commandframework.bukkit.parsers.location.Location2D
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable

public class Location2D extends org.bukkit.Location
Location projected onto the XZ-plane
Since:
1.4.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Location2D(@Nullable org.bukkit.World world, double x, double z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NonNull Location2D
    from(@Nullable org.bukkit.World world, double x, double z)
    Get a new Location2D

    Methods inherited from class org.bukkit.Location

    add, add, add, checkFinite, clone, deserialize, distance, distanceSquared, equals, getBlock, getBlockX, getBlockY, getBlockZ, getChunk, getDirection, getPitch, getWorld, getX, getY, getYaw, getZ, hashCode, length, lengthSquared, locToBlock, multiply, normalizePitch, normalizeYaw, serialize, setDirection, setPitch, setWorld, setX, setY, setYaw, setZ, subtract, subtract, subtract, toString, toVector, zero

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Location2D

      protected Location2D(@Nullable org.bukkit.World world, double x, double z)
  • Method Details

    • from

      public static @NonNull Location2D from(@Nullable org.bukkit.World world, double x, double z)
      Get a new Location2D
      Parameters:
      world - World this location is in
      x - X position for this location
      z - Z position for this location
      Returns:
      Location2D