-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlocks.py
More file actions
69 lines (55 loc) · 1.52 KB
/
Blocks.py
File metadata and controls
69 lines (55 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
class Blocks(object):
def __init__(self):
self.wall = "stone"
self.floor = "stone"
self.path = "stone"
self.subgoal = "beacon"
self.goal = "redstone_block"
self.start = "emerald_block"
def getWall(self):
return self.wall
def setWall(self, block):
self.wall = block
def getFloor(self):
return self.floor
def setFloor(self, block):
self.floor = block
def getPath(self):
return self.path
def setPath(self, block):
self.path = block
def getSubGoal(self):
return self.subgoal
def setSubGoal(self, block):
self.subgoal = block
def getGoal(self):
return self.goal
def setGoal(self, block):
self.goal = block
def getStart(self):
return self.start
def setStart(self, block):
self.start = block
def blockId(self, block):
if block == "air":
return 0.0
elif block == "stone":
return 1.0
elif block == "grass":
return 2.0
elif block == "dirt":
return 3.0
elif block == "glowstone":
return 89.0
elif block == "emerald_block":
return 133.0
elif block == "beacon":
return 138.0
elif block == "redstone_block":
return 152.0
elif block == "stained_hardened_clay":
return 159.0
elif block == "sea_lantern":
return 169.0
else:
return -1.0