@@ -19,14 +19,21 @@ Represents a chunk in the world
19
19
- [ clear\_ colors] ( chunk.md#clear_colors )
20
20
- [ clear\_ textures] ( chunk.md#clear_textures )
21
21
- [ get\_ area\_ id] ( chunk.md#get_area_id )
22
+ - [ get\_ deep\_ flag] ( chunk.md#get_deep_flag )
23
+ - [ get\_ deep\_ flag\_ high] ( chunk.md#get_deep_flag_high )
22
24
- [ get\_ effect] ( chunk.md#get_effect )
25
+ - [ get\_ fishable\_ flag] ( chunk.md#get_fishable_flag )
26
+ - [ get\_ fishable\_ flag\_ high] ( chunk.md#get_fishable_flag_high )
23
27
- [ get\_ tex] ( chunk.md#get_tex )
24
28
- [ get\_ texture] ( chunk.md#get_texture )
25
29
- [ get\_ texture\_ count] ( chunk.md#get_texture_count )
26
30
- [ get\_ vert] ( chunk.md#get_vert )
31
+ - [ has\_ render\_ flags] ( chunk.md#has_render_flags )
27
32
- [ remove\_ texture] ( chunk.md#remove_texture )
28
33
- [ set\_ area\_ id] ( chunk.md#set_area_id )
34
+ - [ set\_ deep\_ flag] ( chunk.md#set_deep_flag )
29
35
- [ set\_ effect] ( chunk.md#set_effect )
36
+ - [ set\_ fishable\_ flag] ( chunk.md#set_fishable_flag )
30
37
- [ set\_ hole] ( chunk.md#set_hole )
31
38
- [ set\_ impassable] ( chunk.md#set_impassable )
32
39
- [ to\_ selection] ( chunk.md#to_selection )
@@ -142,6 +149,35 @@ Returns the area id of a chunk
142
149
143
150
___
144
151
152
+ ### get\_ deep\_ flag
153
+
154
+ ▸ ** get_deep_flag** (): * number*
155
+
156
+ Returns the lower bits of the deep flag
157
+ for the water in this chunk.
158
+
159
+ If chunk has no render data, 0 is returned
160
+
161
+ ** ` note ` ** Only contains the lower 32 bits.
162
+ For the higher bits, use get_fishable_flag_high
163
+
164
+ ** Returns:** * number*
165
+
166
+ ___
167
+
168
+ ### get\_ deep\_ flag\_ high
169
+
170
+ ▸ ** get_deep_flag_high** (): * number*
171
+
172
+ Returns the higher bits of the fishable flag
173
+ for the water in this chunk.
174
+
175
+ If chunk has no render data, 0 is returned
176
+
177
+ ** Returns:** * number*
178
+
179
+ ___
180
+
145
181
### get\_ effect
146
182
147
183
▸ ** get_effect** (` layer ` : * number* ): * number*
@@ -158,6 +194,35 @@ Name | Type |
158
194
159
195
___
160
196
197
+ ### get\_ fishable\_ flag
198
+
199
+ ▸ ** get_fishable_flag** (): * number*
200
+
201
+ Returns the lower bits of the fishable flag
202
+ for the water in this chunk.
203
+
204
+ If chunk has no render data, 0xffffffff is returned
205
+
206
+ ** ` note ` ** Only contains the lower 32 bits.
207
+ For the higher bits, use get_fishable_flag_high
208
+
209
+ ** Returns:** * number*
210
+
211
+ ___
212
+
213
+ ### get\_ fishable\_ flag\_ high
214
+
215
+ ▸ ** get_fishable_flag_high** (): * number*
216
+
217
+ Returns the higher bits of the fishable flag
218
+ for the water in this chunk.
219
+
220
+ If chunk has no render data, 0xffffffff is returned
221
+
222
+ ** Returns:** * number*
223
+
224
+ ___
225
+
161
226
### get\_ tex
162
227
163
228
▸ ** get_tex** (` index ` : * number* ): [ * tex* ] ( tex.md )
@@ -216,6 +281,16 @@ Name | Type | Description |
216
281
217
282
___
218
283
284
+ ### has\_ render\_ flags
285
+
286
+ ▸ ** has_render_flags** (): * any*
287
+
288
+ Returns true if the water in this chunk has deep/fishable flag data.
289
+
290
+ ** Returns:** * any*
291
+
292
+ ___
293
+
219
294
### remove\_ texture
220
295
221
296
▸ ** remove_texture** (` index ` : * number* ): * void*
@@ -249,6 +324,27 @@ Name | Type |
249
324
250
325
___
251
326
327
+ ### set\_ deep\_ flag
328
+
329
+ ▸ ** set_deep_flag** (` low ` : * number* , ` high? ` : * number* ): * void*
330
+
331
+ Sets the deep flags for the water in this chunk.
332
+ If the first bit is set (it is for value=1), emulators typically interpret this
333
+ to mean fatigue should be applied here.
334
+
335
+ -high is 0 by default.
336
+
337
+ #### Parameters:
338
+
339
+ Name | Type |
340
+ :------ | :------ |
341
+ ` low ` | * number* |
342
+ ` high? ` | * number* |
343
+
344
+ ** Returns:** * void*
345
+
346
+ ___
347
+
252
348
### set\_ effect
253
349
254
350
▸ ** set_effect** (` layer ` : * number* , ` effect ` : * number* ): * any*
@@ -266,6 +362,26 @@ Name | Type | Description |
266
362
267
363
___
268
364
365
+ ### set\_ fishable\_ flag
366
+
367
+ ▸ ** set_fishable_flag** (` low ` : * number* , ` high? ` : * number* ): * void*
368
+
369
+ Sets the fishable flag for the water in this chunk.
370
+ If render flag data is not present, it is automatically created.
371
+
372
+ - high is 0 by default
373
+
374
+ #### Parameters:
375
+
376
+ Name | Type |
377
+ :------ | :------ |
378
+ ` low ` | * number* |
379
+ ` high? ` | * number* |
380
+
381
+ ** Returns:** * void*
382
+
383
+ ___
384
+
269
385
### set\_ hole
270
386
271
387
▸ ** set_hole** (` hole ` : * boolean* ): * void*
0 commit comments