Facing class
The variants of a block that turns to face the way it was placed: stairs that climb away from the player, a door across the way they walk. Each variant is a block of its own, named here by id.
Constructors
- Facing.axis({required String x, required String z})
-
Two variants, one per axis the placer looks along.
const
- Facing.compass({required String north, required String east, required String south, required String west})
-
Four variants, one per compass side the placer looks toward (north is
-Z, east +X).
const
Properties
- east → String?
-
The compass variants; null on an axis facing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- north → String?
-
The compass variants; null on an axis facing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- south → String?
-
The compass variants; null on an axis facing.
final
-
variants
→ List<
String> -
Every variant.
no setter
- west → String?
-
The compass variants; null on an axis facing.
final
- x → String?
-
The axis variants; null on a compass facing.
final
- z → String?
-
The axis variants; null on a compass facing.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toward(
double forwardX, double forwardZ) → String -
The variant for a placer looking along (
forwardX,forwardZ).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited