Class Location2D
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
ConstructorsModifierConstructorDescriptionprotectedLocation2D(@Nullable org.bukkit.World world, double x, double z) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Location2Dfrom(@Nullable org.bukkit.World world, double x, double z) Get a new Location2DMethods 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
-
Constructor Details
-
Location2D
protected Location2D(@Nullable org.bukkit.World world, double x, double z)
-
-
Method Details
-
from
Get a new Location2D- Parameters:
world- World this location is inx- X position for this locationz- Z position for this location- Returns:
- Location2D
-