java.lang.Cloneable, ConfigurationSerializablepublic class BlockVector extends Vector
| Constructor | Description | 
|---|---|
| BlockVector() | Construct the vector with all components as 0. | 
| BlockVector(double x,
           double y,
           double z) | Construct the vector with provided double components. | 
| BlockVector(float x,
           float y,
           float z) | Construct the vector with provided float components. | 
| BlockVector(int x,
           int y,
           int z) | Construct the vector with provided integer components. | 
| BlockVector(Vector vec) | Construct the vector with another vector. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| BlockVector | clone() | Get a new block vector. | 
| static BlockVector | deserialize(java.util.Map<java.lang.String,java.lang.Object> args) | |
| boolean | equals(java.lang.Object obj) | Checks if another object is equivalent. | 
| int | hashCode() | Returns a hash code for this vector. | 
finalize, getClass, notify, notifyAll, wait, wait, waitadd, angle, checkFinite, copy, crossProduct, distance, distanceSquared, divide, dot, getBlockX, getBlockY, getBlockZ, getCrossProduct, getEpsilon, getMaximum, getMidpoint, getMinimum, getRandom, getX, getY, getZ, isInAABB, isInSphere, length, lengthSquared, midpoint, multiply, multiply, multiply, multiply, normalize, serialize, setX, setX, setX, setY, setY, setY, setZ, setZ, setZ, subtract, toBlockVector, toLocation, toLocation, toString, zeropublic BlockVector()
public BlockVector(Vector vec)
vec - The other vector.public BlockVector(int x,
                   int y,
                   int z)
x - X componenty - Y componentz - Z componentpublic BlockVector(double x,
                   double y,
                   double z)
x - X componenty - Y componentz - Z componentpublic BlockVector(float x,
                   float y,
                   float z)
x - X componenty - Y componentz - Z componentpublic boolean equals(java.lang.Object obj)
public int hashCode()
public BlockVector clone()
public static BlockVector deserialize(java.util.Map<java.lang.String,java.lang.Object> args)
Copyright © 2018. All rights reserved.