PocketMine-MP 5.33.2 git-919492bdcad8510eb6606439eb77e1c604f1d1ea
Loading...
Searching...
No Matches
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->value,
Facing::SOUTH->value
],
BlockLegacyMetadata::RAIL_STRAIGHT_EAST_WEST => [
Facing::EAST->value,
Facing::WEST->value
],
BlockLegacyMetadata::RAIL_ASCENDING_EAST => [
Facing::WEST->value,
Facing::EAST->value | self::FLAG_ASCEND
],
BlockLegacyMetadata::RAIL_ASCENDING_WEST => [
Facing::EAST->value,
Facing::WEST->value | self::FLAG_ASCEND
],
BlockLegacyMetadata::RAIL_ASCENDING_NORTH => [
Facing::SOUTH->value,
Facing::NORTH->value | self::FLAG_ASCEND
],
BlockLegacyMetadata::RAIL_ASCENDING_SOUTH => [
Facing::NORTH->value,
Facing::SOUTH->value | 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->value,
Facing::EAST->value
],
BlockLegacyMetadata::RAIL_CURVE_SOUTHWEST => [
Facing::SOUTH->value,
Facing::WEST->value
],
BlockLegacyMetadata::RAIL_CURVE_NORTHWEST => [
Facing::NORTH->value,
Facing::WEST->value
],
BlockLegacyMetadata::RAIL_CURVE_NORTHEAST => [
Facing::NORTH->value,
Facing::EAST->value
]
]

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: