Class ImmutableXYZD
java.lang.Object
de.marcely.bedwars.tools.location.XYZ
de.marcely.bedwars.tools.location.XYZD
de.marcely.bedwars.tools.location.ImmutableXYZD
- All Implemented Interfaces:
Cloneable, ConfigurationSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class XYZD
XYZD.Direction -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableXYZD(double x, double y, double z) ImmutableXYZD(double x, double y, double z, XYZD.Direction dir) ImmutableXYZD(XYZ xyz) ImmutableXYZD(XYZD xyz) ImmutableXYZD(Location loc) ImmutableXYZD(Vector vec) -
Method Summary
Modifier and TypeMethodDescriptionadd(double x, double y, double z) Adds the x-coordinatesmultiply(double amount) multiply(double x, double y, double z) set(double x, double y, double z) Sets the new coordinatesCopies and sets the xyz coordinates from the given objectCopies and sets the xyz coordinates from the given objectsetX(double x) Sets the x-coordinatesetY(double y) Sets the y-coordinatesetZ(double z) Sets the z-coordinatesubtract(double x, double y, double z) zero()Sets all coordinates to 0Methods inherited from class XYZD
clone, deserialize, getDirection, serialize, set, toLocationMethods inherited from class XYZ
add, distance, distance, distanceSquared, distanceSquared, equalsBlockCoords, equalsBlockCoords, equalsBlockCoords, getBlock, getBlockX, getBlockY, getBlockZ, getX, getY, getZ, isZero, set, subtract, toVector
-
Constructor Details
-
ImmutableXYZD
-
ImmutableXYZD
-
ImmutableXYZD
-
ImmutableXYZD
-
ImmutableXYZD
public ImmutableXYZD() -
ImmutableXYZD
public ImmutableXYZD(double x, double y, double z) -
ImmutableXYZD
-
-
Method Details
-
setX
-
setY
-
setZ
-
set
-
set
-
set
-
add
-
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
subtract
-
multiply
-
multiply
-
zero
-
setDirection
- Overrides:
setDirectionin classXYZD
-