Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/replcraft/lib/world/location.ts>Location

A library to control special structures on the ReplCraft Minecraft server
Latest
class Location
implements LocationOptions
import { Location } from "https://deno.land/x/replcraft@v1.1.0/lib/world/location.ts";

Constructors

new
Location(unnamed 0: LocationOptions)

Properties

x: number

X coordinate of the location

y: number

Y coordinate of the location

z: number

Z coordinate of the location

Methods

equals(location: Location): boolean

Check whether the locations are at the same location.

toObject(prefix?: string): ActionData

Convert the location instance into a ReplCraft-usable object.

Static Methods

from(
x: number,
y: number,
z: number,
): Location

Create a new location.