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
FieldsModifier and TypeFieldDescriptionstatic final BlockVector3Impstatic final BlockVector3Impstatic final BlockVector3Impstatic final BlockVector3Impstatic final BlockVector3ImpFields inherited from class com.sk89q.worldedit.math.BlockVector3
UNIT_MINUS_X, UNIT_MINUS_Y, UNIT_MINUS_Z -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBlockVector3Imp(int x, int y, int z) Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockVector3Impat(double x, double y, double z) static BlockVector3Impat(int x, int y, int z) inthashCode()toString()intx()Get the X coordinate.inty()Get the Y coordinate.intz()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, isAt, 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:BlockVector3Get the X coordinate.- Specified by:
xin classBlockVector3- Returns:
- the x coordinate
-
y
public int y()Description copied from class:BlockVector3Get the Y coordinate.- Specified by:
yin classBlockVector3- Returns:
- the y coordinate
-
z
public int z()Description copied from class:BlockVector3Get the Z coordinate.- Specified by:
zin classBlockVector3- Returns:
- the Z coordinate
-
hashCode
public int hashCode()- Overrides:
hashCodein classBlockVector3
-
toImmutable
- Overrides:
toImmutablein classBlockVector3
-
toString
- Overrides:
toStringin classBlockVector3
-