mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 04:26:42 +00:00
@ -68,6 +68,10 @@ public final class MCDirections {
|
||||
}
|
||||
|
||||
public static Direction fromPre13Hanging(int i) {
|
||||
return fromHorizontalHanging(i);
|
||||
}
|
||||
|
||||
public static Direction fromHorizontalHanging(int i) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
return Direction.SOUTH;
|
||||
@ -82,6 +86,21 @@ public final class MCDirections {
|
||||
}
|
||||
}
|
||||
|
||||
public static int toHorizontalHanging(Direction direction) {
|
||||
switch (direction) {
|
||||
case SOUTH:
|
||||
return 0;
|
||||
case WEST:
|
||||
return 1;
|
||||
case NORTH:
|
||||
return 2;
|
||||
case EAST:
|
||||
return 3;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static int fromLegacyHanging(byte i) {
|
||||
switch (i) {
|
||||
case 0: return 2;
|
||||
|
Reference in New Issue
Block a user