Skip to content

StructureMirror 5.47.0 ​

enum · pocketmine\world\structure\StructureMirror · source

Mirror of a structure when it is loaded (values of the structure block's "mirror" byte and of the network structure settings). Like Bedrock, mirroring across the X axis flips the Z coordinates (north and south swap) and mirroring across the Z axis flips the X coordinates (east and west swap).

Cases ​

NONE ​

php
case NONE = 0

X ​

php
case X = 1

XZ ​

php
case XZ = 3

Z ​

php
case Z = 2

Methods ​

flipsX() ​

php
public function flipsX() : bool

flipsZ() ​

php
public function flipsZ() : bool

swapsHandedness() ​

php
public function swapsHandedness() : bool

Whether the mirror changes handedness (left becomes right), i.e. it flips exactly one axis.

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.