Location
wherever possible@Deprecated public class WorldVector extends Vector
Constructor and Description |
---|
WorldVector(LocalWorld world)
Deprecated.
Construct the Vector object.
|
WorldVector(LocalWorld world,
double x,
double y,
double z)
Deprecated.
Construct the Vector object.
|
WorldVector(LocalWorld world,
float x,
float y,
float z)
Deprecated.
Construct the Vector object.
|
WorldVector(LocalWorld world,
int x,
int y,
int z)
Deprecated.
Construct the Vector object.
|
WorldVector(LocalWorld world,
Vector other)
Deprecated.
Construct the Vector object.
|
WorldVector(Location location)
Deprecated.
Construct the Vector object.
|
Modifier and Type | Method and Description |
---|---|
LocalWorld |
getWorld()
Deprecated.
Get the world.
|
static WorldVector |
toBlockPoint(LocalWorld world,
double x,
double y,
double z)
Deprecated.
Get a block point from a point.
|
Location |
toLocation()
Deprecated.
Return this object as a new preferred
Location
object. |
BlockWorldVector |
toWorldBlockVector()
Deprecated.
Gets a BlockVector version.
|
add, add, add, add, ceil, clampY, compareTo, containedWithin, containedWithinBlock, cross, distance, distanceSq, divide, divide, divide, divide, divide, divide, dot, equals, floor, getBlockX, getBlockY, getBlockZ, getMaximum, getMidpoint, getMinimum, getX, getY, getZ, hashCode, isCollinearWith, length, lengthSq, multiply, multiply, multiply, multiply, multiply, multiply, multiply, normalize, positive, round, setX, setX, setY, setY, setZ, setZ, subtract, subtract, subtract, subtract, toBlockPoint, toBlockPoint, toBlockVector, toPitch, toString, toVector2D, toYaw, transform2D
public WorldVector(LocalWorld world, double x, double y, double z)
world
- a worldx
- the X coordinatey
- the Y coordinatez
- the Z coordinatepublic WorldVector(LocalWorld world, int x, int y, int z)
world
- a worldx
- the X coordinatey
- the Y coordinatez
- the Z coordinatepublic WorldVector(LocalWorld world, float x, float y, float z)
world
- a worldx
- the X coordinatey
- the Y coordinatez
- the Z coordinatepublic WorldVector(LocalWorld world, Vector other)
world
- a worldother
- the position to copypublic WorldVector(LocalWorld world)
world
- a worldpublic WorldVector(Location location)
location
- the locationpublic LocalWorld getWorld()
public static WorldVector toBlockPoint(LocalWorld world, double x, double y, double z)
world
- a worldx
- the X coordinatey
- the Y coordinatez
- the Z coordinatepublic BlockWorldVector toWorldBlockVector()
public Location toLocation()
Location
object.