Permalink
Browse files

add faces.py

  • Loading branch information...
codewarrior0 committed Sep 29, 2011
1 parent 536cf7d commit 4db526c533c2fee91f7a9300ecbff8de9b7abe9d
Showing with 18 additions and 8 deletions.
  1. +17 −0 faces.py
  2. +1 −8 mclevelbase.py
View
@@ -0,0 +1,17 @@
+
+FaceXIncreasing = 0
+FaceXDecreasing = 1
+FaceYIncreasing = 2
+FaceYDecreasing = 3
+FaceZIncreasing = 4
+FaceZDecreasing = 5
+MaxDirections = 6
+
+faceDirections = (
+ (FaceXIncreasing, (1, 0, 0)),
+ (FaceXDecreasing, (-1, 0, 0)),
+ (FaceYIncreasing, (0, 1, 0)),
+ (FaceYDecreasing, (0, -1, 0)),
+ (FaceZIncreasing, (0, 0, 1)),
+ (FaceZDecreasing, (0, 0, -1))
+ )
View
@@ -22,14 +22,7 @@
import blockrotation
from entity import *
-
-FaceXIncreasing = 0
-FaceXDecreasing = 1
-FaceYIncreasing = 2
-FaceYDecreasing = 3
-FaceZIncreasing = 4
-FaceZDecreasing = 5
-MaxDirections = 6
+from faces import *
#String constants for common tag names
Entities = "Entities"

0 comments on commit 4db526c

Please sign in to comment.