RailConnectionInfo
Table of Contents
-
CONNECTIONS
= [
//straights
\pocketmine\block\BlockLegacyMetadata::RAIL_STRAIGHT_NORTH_SOUTH => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::SOUTH],
\pocketmine\block\BlockLegacyMetadata::RAIL_STRAIGHT_EAST_WEST => [\pocketmine\math\Facing::EAST, \pocketmine\math\Facing::WEST],
//ascending
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_EAST => [\pocketmine\math\Facing::WEST, \pocketmine\math\Facing::EAST | self::FLAG_ASCEND],
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_WEST => [\pocketmine\math\Facing::EAST, \pocketmine\math\Facing::WEST | self::FLAG_ASCEND],
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_NORTH => [\pocketmine\math\Facing::SOUTH, \pocketmine\math\Facing::NORTH | self::FLAG_ASCEND],
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_SOUTH => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::SOUTH | self::FLAG_ASCEND],
]
-
CURVE_CONNECTIONS
= [\pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_SOUTHEAST => [\pocketmine\math\Facing::SOUTH, \pocketmine\math\Facing::EAST], \pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_SOUTHWEST => [\pocketmine\math\Facing::SOUTH, \pocketmine\math\Facing::WEST], \pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_NORTHWEST => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::WEST], \pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_NORTHEAST => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::EAST]]
-
FLAG_ASCEND
= 1 << 24
CONNECTIONS
public
mixed
CONNECTIONS
= [
//straights
\pocketmine\block\BlockLegacyMetadata::RAIL_STRAIGHT_NORTH_SOUTH => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::SOUTH],
\pocketmine\block\BlockLegacyMetadata::RAIL_STRAIGHT_EAST_WEST => [\pocketmine\math\Facing::EAST, \pocketmine\math\Facing::WEST],
//ascending
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_EAST => [\pocketmine\math\Facing::WEST, \pocketmine\math\Facing::EAST | self::FLAG_ASCEND],
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_WEST => [\pocketmine\math\Facing::EAST, \pocketmine\math\Facing::WEST | self::FLAG_ASCEND],
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_NORTH => [\pocketmine\math\Facing::SOUTH, \pocketmine\math\Facing::NORTH | self::FLAG_ASCEND],
\pocketmine\block\BlockLegacyMetadata::RAIL_ASCENDING_SOUTH => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::SOUTH | self::FLAG_ASCEND],
]
CURVE_CONNECTIONS
public
mixed
CURVE_CONNECTIONS
= [\pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_SOUTHEAST => [\pocketmine\math\Facing::SOUTH, \pocketmine\math\Facing::EAST], \pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_SOUTHWEST => [\pocketmine\math\Facing::SOUTH, \pocketmine\math\Facing::WEST], \pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_NORTHWEST => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::WEST], \pocketmine\block\BlockLegacyMetadata::RAIL_CURVE_NORTHEAST => [\pocketmine\math\Facing::NORTH, \pocketmine\math\Facing::EAST]]
FLAG_ASCEND
public
mixed
FLAG_ASCEND
= 1 << 24