forked from fogleman/Minecraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
world_server.pxd
59 lines (40 loc) · 1.65 KB
/
world_server.pxd
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
import cython
#cython: boundscheck=False
#cython: wraparound=False
#cython: cdivision=True
@cython.locals(spreading_mutations=dict)
cdef class WorldServer(dict):
cdef public:
sectors
savingsystem
dict exposed_cache
urgent_queue
lazy_queue
sector_queue
generation_queue
spreading_mutable_blocks
server_lock
server
terraingen
cpdef object add_block(self, tuple position, object block,
bint sync=?, bint force=?, bint check_spread=?)
cpdef object init_block(self, tuple position, object block)
cpdef object remove_block(self, tuple position,
bint sync=?, bint check_spread=?)
@cython.locals(x=int, y=int, z=int, fx=int, fy=int, fz=int,
other_position=tuple)
cpdef bint is_exposed(self, tuple position)
@cython.locals(x=int, y=int, z=int, cx=int, cy=int, cz=int)
cpdef object get_exposed_sector_cached(self, tuple sector)
cpdef object get_exposed_sector(self, tuple sector)
@cython.locals(other_position=tuple)
cpdef object check_neighbors(self, tuple position)
@cython.locals(x=int, y=int, z=int, above_position=tuple)
cpdef object check_spreading_mutable(self, tuple position, object block)
cpdef bint has_neighbors(self, tuple position, object is_in=?, object diagonals=?,
object faces=?)
cpdef object generate_seed(self)
cpdef object open_sector(self, tuple sector)
cpdef object hide_sector(self, tuple sector)
cpdef object content_update(self)
cpdef object generate_vegetation(self, tuple position, vegetation_class)