forked from boskee/Minecraft
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcrafting.pxd
More file actions
36 lines (25 loc) · 753 Bytes
/
crafting.pxd
File metadata and controls
36 lines (25 loc) · 753 Bytes
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
import cython
cdef class Recipe:
cdef public:
bint shapeless
list ingre
object output
cdef class Recipes:
cdef public:
list recipes
int nr_recipes
cpdef object remove_empty_line_col(self, list ingre_list)
@cython.locals(ingre_list=list, sub_ingre=list)
cpdef object parse_recipe(self, object shape, object ingre)
cpdef object add_recipe(self, shape, ingre, output)
@cython.locals(ingre_list=list)
cpdef object add_shapeless_recipe(self, ingre, output)
@cython.locals(id_list=list, shapeless_id_list=list)
cpdef object craft(self, input_blocks)
cpdef object dump(self)
cdef class SmeltingRecipes:
cdef public:
list recipes
int nr_recipes
cpdef object add_recipe(self, ingre, output)
cpdef object smelt(self, ingre)