Uses of Class
org.bukkit.util.Vector
-
Packages that use Vector Package Description org.bukkit More generalized classes in the API.org.bukkit.configuration Classes dedicated to handling a plugin's runtime configuration.org.bukkit.entity Interfaces for non-voxel objects that can exist in aworld, including all players, monsters, projectiles, etc.org.bukkit.event.block org.bukkit.event.entity org.bukkit.event.player org.bukkit.projectiles Classes to represent the source of a projectileorg.bukkit.util Multi and single purpose classes to facilitate various programmatic concepts. -
-
Uses of Vector in org.bukkit
Methods in org.bukkit that return Vector Modifier and Type Method Description VectorLocation. getDirection()Gets a unit-vector pointing in the direction that this Location is facing.VectorLocation. toVector()Constructs a newVectorbased on this LocationMethods in org.bukkit with parameters of type Vector Modifier and Type Method Description LocationLocation. add(Vector vec)Adds the location by a vector.LocationLocation. setDirection(Vector vector)ArrowWorld. spawnArrow(Location location, Vector direction, float speed, float spread)<T extends Arrow>
TWorld. spawnArrow(Location location, Vector direction, float speed, float spread, Class<T> clazz)Creates an arrow entity of the given class at the givenLocationLocationLocation. subtract(Vector vec)Subtracts the location by a vector. -
Uses of Vector in org.bukkit.configuration
Methods in org.bukkit.configuration that return Vector Modifier and Type Method Description VectorConfigurationSection. getVector(String path)Gets the requested Vector by path.VectorConfigurationSection. getVector(String path, Vector def)Gets the requestedVectorby path, returning a default value if not found.VectorMemorySection. getVector(String path)VectorMemorySection. getVector(String path, Vector def)Methods in org.bukkit.configuration with parameters of type Vector Modifier and Type Method Description VectorConfigurationSection. getVector(String path, Vector def)Gets the requestedVectorby path, returning a default value if not found.VectorMemorySection. getVector(String path, Vector def) -
Uses of Vector in org.bukkit.entity
Methods in org.bukkit.entity that return Vector Modifier and Type Method Description VectorMinecart. getDerailedVelocityMod()Gets the derailed velocity modifier.VectorFireball. getDirection()Retrieve the direction this fireball is heading towardVectorMinecart. getFlyingVelocityMod()Gets the flying velocity modifier.VectorEntity. getVelocity()Gets this entity's current velocityVectorVehicle. getVelocity()Gets the vehicle's velocity.Methods in org.bukkit.entity with parameters of type Vector Modifier and Type Method Description voidMinecart. setDerailedVelocityMod(Vector derailed)Sets the derailed velocity modifier.voidFireball. setDirection(Vector direction)Fireballs fly straight and do not take setVelocity(...) well.voidMinecart. setFlyingVelocityMod(Vector flying)Sets the flying velocity modifier.voidEntity. setVelocity(Vector velocity)Sets this entity's velocityvoidVehicle. setVelocity(Vector vel)Sets the vehicle's velocity. -
Uses of Vector in org.bukkit.event.block
Methods in org.bukkit.event.block that return Vector Modifier and Type Method Description VectorBlockDispenseEvent. getVelocity()Gets the velocity.Methods in org.bukkit.event.block with parameters of type Vector Modifier and Type Method Description voidBlockDispenseEvent. setVelocity(Vector vel)Sets the velocity of the item being dispensed.Constructors in org.bukkit.event.block with parameters of type Vector Constructor Description BlockDispenseEvent(Block block, ItemStack dispensed, Vector velocity) -
Uses of Vector in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return Vector Modifier and Type Method Description VectorEntityPortalExitEvent. getAfter()Gets a copy of the velocity that the entity will have after exiting the portal.VectorEntityPortalExitEvent. getBefore()Gets a copy of the velocity that the entity has before entering the portal.Methods in org.bukkit.event.entity with parameters of type Vector Modifier and Type Method Description voidEntityPortalExitEvent. setAfter(Vector after)Sets the velocity that the entity will have after exiting the portal.Constructors in org.bukkit.event.entity with parameters of type Vector Constructor Description EntityPortalExitEvent(Entity entity, Location from, Location to, Vector before, Vector after) -
Uses of Vector in org.bukkit.event.player
Methods in org.bukkit.event.player that return Vector Modifier and Type Method Description VectorPlayerInteractAtEntityEvent. getClickedPosition()VectorPlayerVelocityEvent. getVelocity()Gets the velocity vector that will be sent to the playerMethods in org.bukkit.event.player with parameters of type Vector Modifier and Type Method Description voidPlayerVelocityEvent. setVelocity(Vector velocity)Sets the velocity vector that will be sent to the playerConstructors in org.bukkit.event.player with parameters of type Vector Constructor Description PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position)PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position, EquipmentSlot hand)PlayerVelocityEvent(Player player, Vector velocity) -
Uses of Vector in org.bukkit.projectiles
Methods in org.bukkit.projectiles with parameters of type Vector Modifier and Type Method Description <T extends Projectile>
TProjectileSource. launchProjectile(Class<? extends T> projectile, Vector velocity)Launches aProjectilefrom the ProjectileSource with an initial velocity. -
Uses of Vector in org.bukkit.util
Subclasses of Vector in org.bukkit.util Modifier and Type Class Description classBlockVectorA vector with a hash function that floors the X, Y, Z components, a la BlockVector in WorldEdit.Methods in org.bukkit.util that return Vector Modifier and Type Method Description VectorVector. add(Vector vec)Adds a vector to this oneVectorVector. clone()Get a new vector.VectorVector. copy(Vector vec)Copies another vectorVectorVector. crossProduct(Vector o)Calculates the cross product of this vector with another.static VectorVector. deserialize(Map<String,Object> args)VectorVector. divide(Vector vec)Divides the vector by another.VectorVector. getCrossProduct(Vector o)Calculates the cross product of this vector with another without mutating the original.static VectorVector. getMaximum(Vector v1, Vector v2)Gets the maximum components of two vectors.VectorVector. getMidpoint(Vector other)Gets a new midpoint vector between this vector and another.static VectorVector. getMinimum(Vector v1, Vector v2)Gets the minimum components of two vectors.static VectorVector. getRandom()Gets a random vector with components having a random value between 0 and 1.VectorVector. midpoint(Vector other)Sets this vector to the midpoint between this vector and another.VectorVector. multiply(double m)Performs scalar multiplication, multiplying all components with a scalar.VectorVector. multiply(float m)Performs scalar multiplication, multiplying all components with a scalar.VectorVector. multiply(int m)Performs scalar multiplication, multiplying all components with a scalar.VectorVector. multiply(Vector vec)Multiplies the vector by another.VectorVector. normalize()Converts this vector to a unit vector (a vector with length of 1).VectorVector. setX(double x)Set the X component.VectorVector. setX(float x)Set the X component.VectorVector. setX(int x)Set the X component.VectorVector. setY(double y)Set the Y component.VectorVector. setY(float y)Set the Y component.VectorVector. setY(int y)Set the Y component.VectorVector. setZ(double z)Set the Z component.VectorVector. setZ(float z)Set the Z component.VectorVector. setZ(int z)Set the Z component.VectorVector. subtract(Vector vec)Subtracts a vector from this one.VectorVector. zero()Zero this vector's components.Methods in org.bukkit.util with parameters of type Vector Modifier and Type Method Description VectorVector. add(Vector vec)Adds a vector to this onefloatVector. angle(Vector other)Gets the angle between this vector and another in radians.VectorVector. copy(Vector vec)Copies another vectorVectorVector. crossProduct(Vector o)Calculates the cross product of this vector with another.doubleVector. distance(Vector o)Get the distance between this vector and another.doubleVector. distanceSquared(Vector o)Get the squared distance between this vector and another.VectorVector. divide(Vector vec)Divides the vector by another.doubleVector. dot(Vector other)Calculates the dot product of this vector with another.VectorVector. getCrossProduct(Vector o)Calculates the cross product of this vector with another without mutating the original.static VectorVector. getMaximum(Vector v1, Vector v2)Gets the maximum components of two vectors.VectorVector. getMidpoint(Vector other)Gets a new midpoint vector between this vector and another.static VectorVector. getMinimum(Vector v1, Vector v2)Gets the minimum components of two vectors.booleanVector. isInAABB(Vector min, Vector max)Returns whether this vector is in an axis-aligned bounding box.booleanVector. isInSphere(Vector origin, double radius)Returns whether this vector is within a sphere.VectorVector. midpoint(Vector other)Sets this vector to the midpoint between this vector and another.VectorVector. multiply(Vector vec)Multiplies the vector by another.VectorVector. subtract(Vector vec)Subtracts a vector from this one.Constructors in org.bukkit.util with parameters of type Vector Constructor Description BlockIterator(World world, Vector start, Vector direction, double yOffset, int maxDistance)Constructs the BlockIteratorBlockVector(Vector vec)Construct the vector with another vector.
-