Package com.sk89q.worldedit.math
Class BlockVector3Imp
java.lang.Object
com.sk89q.worldedit.math.BlockVector3
com.sk89q.worldedit.math.BlockVector3Imp
An immutable 3-dimensional vector.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BlockVector3Imp
static final BlockVector3Imp
static final BlockVector3Imp
static final BlockVector3Imp
static final BlockVector3Imp
Fields inherited from class com.sk89q.worldedit.math.BlockVector3
UNIT_MINUS_X, UNIT_MINUS_Y, UNIT_MINUS_Z
-
Constructor Summary
ModifierConstructorDescriptionprotected
BlockVector3Imp
(int x, int y, int z) Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockVector3Imp
at
(double x, double y, double z) static BlockVector3Imp
at
(int x, int y, int z) final int
getX()
Get the X coordinate.final int
getY()
Get the Y coordinate.final int
getZ()
Get the Z coordinate.int
hashCode()
final BlockVector3
toString()
Methods inherited from class com.sk89q.worldedit.math.BlockVector3
abs, add, add, add, ceil, checkLongPackable, clampY, containedWithin, cross, distance, distanceSq, divide, divide, divide, dot, equals, equals, floor, fromLongPackedForm, getBlock, getBlockX, getBlockY, getBlockZ, getFullBlock, getMaximum, getMinimum, getNbtData, getOrdinal, getOrdinalBelow, getOrdinalChar, getStateAbove, getStateRelativeY, isLongPackable, length, lengthSq, multiply, multiply, multiply, multiply, mutX, mutX, mutY, mutY, mutZ, mutZ, normalize, plus, round, setBlock, setComponents, setComponents, setFullBlock, setOrdinal, shl, shl, shr, shr, sortByCoordsYzx, subtract, subtract, subtract, toBlockVector2, toLongPackedForm, toParserString, toPitch, toVector3, toYaw, transform2D, withX, withY, withZ
-
Field Details
-
ZERO
-
UNIT_X
-
UNIT_Y
-
UNIT_Z
-
ONE
-
-
Constructor Details
-
BlockVector3Imp
protected BlockVector3Imp(int x, int y, int z) Construct an instance.- Parameters:
x
- the X coordinatey
- the Y coordinatez
- the Z coordinate
-
-
Method Details
-
at
-
at
-
getX
public final int getX()Description copied from class:BlockVector3
Get the X coordinate.- Specified by:
getX
in classBlockVector3
- Returns:
- the x coordinate
-
getY
public final int getY()Description copied from class:BlockVector3
Get the Y coordinate.- Specified by:
getY
in classBlockVector3
- Returns:
- the y coordinate
-
getZ
public final int getZ()Description copied from class:BlockVector3
Get the Z coordinate.- Specified by:
getZ
in classBlockVector3
- Returns:
- the z coordinate
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBlockVector3
-
toImmutable
- Overrides:
toImmutable
in classBlockVector3
-
toString
- Overrides:
toString
in classBlockVector3
-