@jsprismarine/prismarine
Version:
Dedicated Minecraft Bedrock Edition server written in TypeScript
36 lines • 1.25 kB
TypeScript
import { Vector3 } from '../../../math/src/index.ts';
import { World } from './';
/**
* Represents the coordinates of a Vector3 in a given World.
*/
export declare class Position extends Vector3 {
private world;
/**
* Create a new position
* @param {number} x - The x coordinate of the position.
* @param {number} y - The y coordinate of the position.
* @param {number} z - The z coordinate of the position.
* @param {World} world - The world of the position.
* @returns {Position} The new position.
*/
constructor(x: number, y: number, z: number, world: World);
toString(): string;
/**
* Creates a Position from a Vector3 and a World.
* @param {Vector3} vector - The vector to create the position from.
* @param {World} world - The world of the position.
* @returns {Position} The new position.
*/
static fromVector3(vector: Vector3, world: World): Position;
/**
* Get the world of the position.
* @returns {World} The world of the position.
*/
getWorld(): World;
/**
* Set the world of the position.
* @param {World} world - The world to set.
*/
setWorld(world: World): void;
}
//# sourceMappingURL=Position.d.ts.map