Jump to content

API:Sides: Difference between revisions

From Advanced Computers Wiki
Created page with "Several components refer to sides in method calls via an integer. Valid values are in the range 0 to 5, where each integer maps to the following absolute direction listed below: {| class="wikitable" |+ Side mapping |- ! Numerical side value !! Coordinate direction !! Minecraft direction |- | 0 || +y || Up |- | 1 || -y || Down |- | 2 || +z || South |- | 3 || -z || North |- | 4 || +x || East |- | 5 || -x || West |}"
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Several components refer to sides in method calls via an integer. Valid values are in the range 0 to 5, where each integer maps to the following absolute direction listed below:
Several components refer to sides in method calls via an integer. Valid values are in the range 0 to 5, where each integer maps to the following absolute directions listed below:


{| class="wikitable"
{| class="wikitable"
|+ Side mapping
|+ Side mapping
|-
|-
! Numerical side value !! Coordinate direction !! Minecraft direction
! Numerical side value !! Coordinate direction !! Minecraft direction (looking outwards)
|-
|-
| 0 || +y || Up
| 0 || -y || Down
|-
|-
| 1 || -y || Down
| 1 || +y || Up
|-
|-
| 2 || +z || South
| 2 || -z || North
|-
|-
| 3 || -z || North
| 3 || +z || South
|-
|-
| 4 || +x || East
| 4 || -x || West
|-
|-
| 5 || -x || West
| 5 || +x || East
|}
|}

Latest revision as of 23:24, 21 September 2026

Several components refer to sides in method calls via an integer. Valid values are in the range 0 to 5, where each integer maps to the following absolute directions listed below:

Side mapping
Numerical side value Coordinate direction Minecraft direction (looking outwards)
0 -y Down
1 +y Up
2 -z North
3 +z South
4 -x West
5 +x East