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) int
hashCode()
toString()
int
x()
Get the X coordinate.int
y()
Get the Y coordinate.int
z()
Get the Z coordinate.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, getBiome, getBlock, getBlockX, getBlockY, getBlockZ, getFullBlock, getMaximum, getMinimum, getNbtData, getOrdinal, getOrdinalBelow, getOrdinalChar, getStateAbove, getStateRelativeY, getX, getY, getZ, isLongPackable, length, lengthSq, multiply, multiply, multiply, multiply, mutX, mutX, mutY, mutY, mutZ, mutZ, normalize, plus, round, setBiome, 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
-
x
public int x()Description copied from class:BlockVector3
Get the X coordinate.- Specified by:
x
in classBlockVector3
- Returns:
- the x coordinate
-
y
public int y()Description copied from class:BlockVector3
Get the Y coordinate.- Specified by:
y
in classBlockVector3
- Returns:
- the y coordinate
-
z
public int z()Description copied from class:BlockVector3
Get the Z coordinate.- Specified by:
z
in classBlockVector3
- Returns:
- the Z coordinate
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBlockVector3
-
toImmutable
- Overrides:
toImmutable
in classBlockVector3
-
toString
- Overrides:
toString
in classBlockVector3
-