LocationBuilder

class LocationBuilder(startX: Int = 0, startY: Int = 0, startZ: Int = 0)(source)

A builder for creating locations. This builder can be used to create immutable and mutable locations with the given x, y and z coordinates.

Since

1.0.0

Parameters

startX

the x coordinate to start with, defaults to 0

startY

the y coordinate to start with, defaults to 0

startZ

the z coordinate to start with, defaults to 0

Constructors

Link copied to clipboard
constructor(from: Location)

Creates a new location builder with the given from location.

constructor(startX: Int = 0, startY: Int = 0, startZ: Int = 0)

Properties

Link copied to clipboard
var x: Int
Link copied to clipboard
var y: Int
Link copied to clipboard
var z: Int

Functions

Link copied to clipboard

Builds an ImmutableLocation with the x, y and z coordinates that were set on this builder.

Link copied to clipboard