3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

update cardinal directions to match Minecraft

Dieser Commit ist enthalten in:
Jim Bilbrey 2012-11-19 00:33:27 -05:00 committet von TomyLobo
Ursprung d8636ec811
Commit 5e1836a0f8

Datei anzeigen

@ -23,14 +23,14 @@ package com.sk89q.worldedit;
* Direction. * Direction.
*/ */
public enum PlayerDirection { public enum PlayerDirection {
NORTH(new Vector(-1, 0, 0), new Vector(0, 0, 1), true), NORTH(new Vector(0, 0, -1), new Vector(-1, 0, 0), true),
NORTH_EAST((new Vector(-1, 0, -1)).normalize(), (new Vector(-1, 0, 1)).normalize(), false), NORTH_EAST((new Vector(1, 0, -1)).normalize(), (new Vector(-1, 0, -1)).normalize(), false),
EAST(new Vector(0, 0, -1), new Vector(-1, 0, 0), true), EAST(new Vector(1, 0, 0), new Vector(0, 0, -1), true),
SOUTH_EAST((new Vector(1, 0, -1)).normalize(), (new Vector(-1, 0, -1)).normalize(), false), SOUTH_EAST((new Vector(1, 0, 1)).normalize(), (new Vector(1, 0, -1)).normalize(), false),
SOUTH(new Vector(1, 0, 0), new Vector(0, 0, -1), true), SOUTH(new Vector(0, 0, 1), new Vector(1, 0, 0), true),
SOUTH_WEST((new Vector(1, 0, 1)).normalize(), (new Vector(1, 0, -1)).normalize(), false), SOUTH_WEST((new Vector(-1, 0, 1)).normalize(), (new Vector(1, 0, 1)).normalize(), false),
WEST(new Vector(0, 0, 1), new Vector(1, 0, 0), true), WEST(new Vector(-1, 0, 0), new Vector(0, 0, 1), true),
NORTH_WEST((new Vector(-1, 0, 1)).normalize(), (new Vector(1, 0, 1)).normalize(), false), NORTH_WEST((new Vector(-1, 0, -1)).normalize(), (new Vector(-1, 0, 1)).normalize(), false),
UP(new Vector(0, 1, 0), new Vector(0, 0, 1), true), UP(new Vector(0, 1, 0), new Vector(0, 0, 1), true),
DOWN(new Vector(0, -1, 0), new Vector(0, 0, 1), true); DOWN(new Vector(0, -1, 0), new Vector(0, 0, 1), true);