PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
pocketmine\block\utils\RailConnectionInfo Class Reference
+ Collaboration diagram for pocketmine\block\utils\RailConnectionInfo:

Public Attributes

const CONNECTIONS
 
const CURVE_CONNECTIONS
 
const FLAG_ASCEND = 1 << 24
 

Detailed Description

Definition at line 29 of file RailConnectionInfo.php.

Member Data Documentation

◆ CONNECTIONS

const pocketmine\block\utils\RailConnectionInfo::CONNECTIONS
Initial value:
= [
BlockLegacyMetadata::RAIL_STRAIGHT_NORTH_SOUTH => [
Facing::NORTH,
Facing::SOUTH
],
BlockLegacyMetadata::RAIL_STRAIGHT_EAST_WEST => [
Facing::EAST,
Facing::WEST
],
BlockLegacyMetadata::RAIL_ASCENDING_EAST => [
Facing::WEST,
Facing::EAST | self::FLAG_ASCEND
],
BlockLegacyMetadata::RAIL_ASCENDING_WEST => [
Facing::EAST,
Facing::WEST | self::FLAG_ASCEND
],
BlockLegacyMetadata::RAIL_ASCENDING_NORTH => [
Facing::SOUTH,
Facing::NORTH | self::FLAG_ASCEND
],
BlockLegacyMetadata::RAIL_ASCENDING_SOUTH => [
Facing::NORTH,
Facing::SOUTH | self::FLAG_ASCEND
]
]

Definition at line 33 of file RailConnectionInfo.php.

◆ CURVE_CONNECTIONS

const pocketmine\block\utils\RailConnectionInfo::CURVE_CONNECTIONS
Initial value:
= [
BlockLegacyMetadata::RAIL_CURVE_SOUTHEAST => [
Facing::SOUTH,
Facing::EAST
],
BlockLegacyMetadata::RAIL_CURVE_SOUTHWEST => [
Facing::SOUTH,
Facing::WEST
],
BlockLegacyMetadata::RAIL_CURVE_NORTHWEST => [
Facing::NORTH,
Facing::WEST
],
BlockLegacyMetadata::RAIL_CURVE_NORTHEAST => [
Facing::NORTH,
Facing::EAST
]
]

Definition at line 64 of file RailConnectionInfo.php.

◆ FLAG_ASCEND

const pocketmine\block\utils\RailConnectionInfo::FLAG_ASCEND = 1 << 24

Definition at line 31 of file RailConnectionInfo.php.


The documentation for this class was generated from the following file: