Class ImmutableXYZ
java.lang.Object
de.marcely.bedwars.tools.location.XYZ
de.marcely.bedwars.tools.location.ImmutableXYZ
- All Implemented Interfaces:
Cloneable,ConfigurationSerializable
Extends
XYZ and forbids any modifications done to it-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableXYZ(double x, double y, double z) ImmutableXYZ(XYZ xyz) ImmutableXYZ(Location loc) ImmutableXYZ(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 de.marcely.bedwars.tools.location.XYZ
add, clone, deserialize, distance, distance, distanceSquared, distanceSquared, equalsBlockCoords, equalsBlockCoords, equalsBlockCoords, getBlock, getBlockX, getBlockY, getBlockZ, getX, getY, getZ, isZero, serialize, set, subtract, toLocation, toVector
-
Constructor Details
-
ImmutableXYZ
public ImmutableXYZ() -
ImmutableXYZ
-
ImmutableXYZ
-
ImmutableXYZ
-
ImmutableXYZ
public ImmutableXYZ(double x, double y, double z)
-
-
Method Details
-
setX
Description copied from class:XYZSets the x-coordinate -
setY
Description copied from class:XYZSets the y-coordinate -
setZ
Description copied from class:XYZSets the z-coordinate -
set
Description copied from class:XYZSets the new coordinates -
set
Description copied from class:XYZCopies and sets the xyz coordinates from the given object -
set
Description copied from class:XYZCopies and sets the xyz coordinates from the given object -
add
Description copied from class:XYZAdds the x-coordinates -
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
subtract
-
multiply
-
multiply
-
zero
Description copied from class:XYZSets all coordinates to 0
-