Minecraft wiki entry for Development_versions, associated text: Vector
Added function length(): number- Returns the length of this vector
Added function normalized(): Vector- Returns this as a normalized vector
Added static function distance(a:Vector, b:Vector): number- Returns distance between two vectors
Added static function lerp(a:Vector, b:Vector, t: number): Vector- Returns the linear interpolation between a and b using t as the control
Added static function slerp(a:Vector, b:Vector, s: number): Vector- Returns the spherical linear interpolation between a and b using s as the control
Added static function cross(a:Vector, b:Vector): Vector- Returns the cross product of these two vectors
Added static function add(a:Vector, b:Vector): Vector- Returns the addition of these vectors
Added static function subtract(a:Vector, b:Vector): Vector- Returns the subtraction of these vectors
Added static function multiply(a:Vector, b:Vector): Vector- Returns the component-wise product of these vectors
Added static function divide(a:Vector, b:Vector): Vector- Returns the component-wise division of these vectors
Added static function multiply(a:Vector, b:number): Vector- Returns the product of this vector and a scalar
Added static function divide(a:Vector, b:number): Vector- Returns the division of this vector and a scalar
Added static function min(a:Vector, b:Vector): Vector- Returns a vector that is made from the smallest components of two vectors.
Added static function max(a:Vector, b:Vector): Vector- Returns a vector that is made from the largest components of two vectors
World
Added function playSound(soundName: String, soundOptions: SoundOptions): void- plays a sound specified by the sound name, at a location, pitch, or volume as optionally specified in the SoundOptions argument
EntityItemComponent
Added component EntityItemComponentthat can be used to obtain an ItemStack from an item entity – e.g., getComponent(“item”).itemStack