isaacscript-common 18.2.0 → 18.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,16 @@ export declare enum ModCallbackCustom {
18
18
  * matches the variant provided.
19
19
  * - You can provide an optional fifth argument that will make the callback only fire if it
20
20
  * matches the sub-type provided.
21
+ *
22
+ * ```ts
23
+ * function entityTakeDmgFilter(
24
+ * entity: Entity,
25
+ * amount: float,
26
+ * damageFlags: BitFlags<DamageFlag>,
27
+ * source: EntityRef,
28
+ * countdownFrames: int,
29
+ * ): boolean | undefined {}
30
+ * ```
21
31
  */
22
32
  ENTITY_TAKE_DMG_FILTER = 0,
23
33
  /**
@@ -29,8 +39,60 @@ export declare enum ModCallbackCustom {
29
39
  * matches the `PlayerVariant` provided.
30
40
  * - You can provide an optional fourth argument that will make the callback only fire if it
31
41
  * matches the `PlayerType` provided.
42
+ *
43
+ * ```ts
44
+ * function entityTakeDmgPlayer(
45
+ * player: EntityPlayer,
46
+ * amount: float,
47
+ * damageFlags: BitFlags<DamageFlag>,
48
+ * source: EntityRef,
49
+ * countdownFrames: int,
50
+ * ): boolean | undefined {}
51
+ * ```
32
52
  */
33
53
  ENTITY_TAKE_DMG_PLAYER = 1,
54
+ /**
55
+ * The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback allows you to
56
+ * specify extra arguments for additional filtration.
57
+ *
58
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
59
+ * - You can provide an optional third argument that will make the callback only fire if it
60
+ * matches the `InputHook` provided.
61
+ * - You can provide an optional fourth argument that will make the callback only fire if it
62
+ * matches the `ButtonAction` provided.
63
+ *
64
+ * ```ts
65
+ * function inputActionFilter(
66
+ * entity: Entity | undefined,
67
+ * inputHook: InputHook,
68
+ * buttonAction: ButtonAction,
69
+ * ): boolean | undefined {}
70
+ * ```
71
+ */
72
+ INPUT_ACTION_FILTER = 2,
73
+ /**
74
+ * The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback automatically
75
+ * filters for `EntityType.ENTITY_PLAYER` and casts the `Entity` object to a `EntityPlayer`. It
76
+ * also allows you to specify extra arguments for additional filtration.
77
+ *
78
+ * - You can provide an optional third argument that will make the callback only fire if it
79
+ * matches the `PlayerVariant` provided.
80
+ * - You can provide an optional fourth argument that will make the callback only fire if it
81
+ * matches the `PlayerType` provided.
82
+ * - You can provide an optional fifth argument that will make the callback only fire if it
83
+ * matches the `InputHook` provided.
84
+ * - You can provide an optional sixth argument that will make the callback only fire if it
85
+ * matches the `ButtonAction` provided.
86
+ *
87
+ * ```ts
88
+ * function inputActionPlayer(
89
+ * player: EntityPlayer,
90
+ * inputHook: InputHook,
91
+ * buttonAction: ButtonAction,
92
+ * ): boolean | undefined {}
93
+ * ```
94
+ */
95
+ INPUT_ACTION_PLAYER = 3,
34
96
  /**
35
97
  * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
36
98
  * Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
@@ -43,7 +105,7 @@ export declare enum ModCallbackCustom {
43
105
  * function postAmbushFinished(ambushType: AmbushType): void {}
44
106
  * ```
45
107
  */
46
- POST_AMBUSH_FINISHED = 2,
108
+ POST_AMBUSH_FINISHED = 4,
47
109
  /**
48
110
  * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
49
111
  * Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
@@ -56,7 +118,7 @@ export declare enum ModCallbackCustom {
56
118
  * function postAmbushStarted(ambushType: AmbushType): void {}
57
119
  * ```
58
120
  */
59
- POST_AMBUSH_STARTED = 3,
121
+ POST_AMBUSH_STARTED = 5,
60
122
  /**
61
123
  * Fires on the `POST_BOMB_UPDATE` callback that it explodes.
62
124
  *
@@ -70,7 +132,7 @@ export declare enum ModCallbackCustom {
70
132
  * function postBombDetonated(bomb: EntityBomb): void {}
71
133
  * ```
72
134
  */
73
- POST_BOMB_EXPLODED = 4,
135
+ POST_BOMB_EXPLODED = 6,
74
136
  /**
75
137
  * Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
76
138
  *
@@ -87,7 +149,7 @@ export declare enum ModCallbackCustom {
87
149
  * function postBombInitLate(bomb: EntityBomb): void {}
88
150
  * ```
89
151
  */
90
- POST_BOMB_INIT_LATE = 5,
152
+ POST_BOMB_INIT_LATE = 7,
91
153
  /**
92
154
  * Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
93
155
  *
@@ -95,7 +157,7 @@ export declare enum ModCallbackCustom {
95
157
  * function postBoneSwing(boneClub: EntityKnife): void {}
96
158
  * ```
97
159
  */
98
- POST_BONE_SWING = 6,
160
+ POST_BONE_SWING = 8,
99
161
  /**
100
162
  * Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
101
163
  * to `CollectibleType.NULL` (i.e. an "empty" pedestal).
@@ -111,7 +173,7 @@ export declare enum ModCallbackCustom {
111
173
  * ): void {}
112
174
  * ```
113
175
  */
114
- POST_COLLECTIBLE_EMPTY = 7,
176
+ POST_COLLECTIBLE_EMPTY = 9,
115
177
  /**
116
178
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
117
179
  * respective collectible on the run. For more details on how this is calculated, see the
@@ -129,7 +191,7 @@ export declare enum ModCallbackCustom {
129
191
  * function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
130
192
  * ```
131
193
  */
132
- POST_COLLECTIBLE_INIT_FIRST = 8,
194
+ POST_COLLECTIBLE_INIT_FIRST = 10,
133
195
  /**
134
196
  * Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
135
197
  * begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
@@ -145,7 +207,7 @@ export declare enum ModCallbackCustom {
145
207
  * function postCursedTeleport(player: EntityPlayer): void {}
146
208
  * ```
147
209
  */
148
- POST_CURSED_TELEPORT = 9,
210
+ POST_CURSED_TELEPORT = 11,
149
211
  /**
150
212
  * Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
151
213
  * has teleported to the previous room, and is ready to play the animation for the modded revival
@@ -163,7 +225,7 @@ export declare enum ModCallbackCustom {
163
225
  * function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
164
226
  * ```
165
227
  */
166
- POST_CUSTOM_REVIVE = 10,
228
+ POST_CUSTOM_REVIVE = 12,
167
229
  /**
168
230
  * Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
169
231
  * Room floor.
@@ -179,7 +241,7 @@ export declare enum ModCallbackCustom {
179
241
  * ): void {}
180
242
  * ```
181
243
  */
182
- POST_DICE_ROOM_ACTIVATED = 11,
244
+ POST_DICE_ROOM_ACTIVATED = 13,
183
245
  /**
184
246
  * Fires from the `POST_RENDER` callback on every frame that a door exists.
185
247
  *
@@ -191,7 +253,7 @@ export declare enum ModCallbackCustom {
191
253
  * function postDoorRender(door: GridEntityDoor): void {}
192
254
  * ```
193
255
  */
194
- POST_DOOR_RENDER = 12,
256
+ POST_DOOR_RENDER = 14,
195
257
  /**
196
258
  * Fires from the `POST_UPDATE` callback on every frame that a door exists.
197
259
  *
@@ -203,7 +265,7 @@ export declare enum ModCallbackCustom {
203
265
  * function postDoorUpdate(door: GridEntityDoor): void {}
204
266
  * ```
205
267
  */
206
- POST_DOOR_UPDATE = 13,
268
+ POST_DOOR_UPDATE = 15,
207
269
  /**
208
270
  * Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
209
271
  *
@@ -220,7 +282,7 @@ export declare enum ModCallbackCustom {
220
282
  * function postEffectInitLate(effect: EntityEffect): void {}
221
283
  * ```
222
284
  */
223
- POST_EFFECT_INIT_LATE = 14,
285
+ POST_EFFECT_INIT_LATE = 16,
224
286
  /**
225
287
  * Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
226
288
  * was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
@@ -239,7 +301,7 @@ export declare enum ModCallbackCustom {
239
301
  * ): void {}
240
302
  * ```
241
303
  */
242
- POST_EFFECT_STATE_CHANGED = 15,
304
+ POST_EFFECT_STATE_CHANGED = 17,
243
305
  /**
244
306
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
245
307
  * updated to the new character until a game frame has passed.)
@@ -248,7 +310,7 @@ export declare enum ModCallbackCustom {
248
310
  * function postEsauJr(player: EntityPlayer): void {}
249
311
  * ```
250
312
  */
251
- POST_ESAU_JR = 16,
313
+ POST_ESAU_JR = 18,
252
314
  /**
253
315
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
254
316
  *
@@ -265,7 +327,7 @@ export declare enum ModCallbackCustom {
265
327
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
266
328
  * ```
267
329
  */
268
- POST_FAMILIAR_INIT_LATE = 17,
330
+ POST_FAMILIAR_INIT_LATE = 19,
269
331
  /**
270
332
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
271
333
  * was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
@@ -285,7 +347,7 @@ export declare enum ModCallbackCustom {
285
347
  * ): void {}
286
348
  * ```
287
349
  */
288
- POST_FAMILIAR_STATE_CHANGED = 18,
350
+ POST_FAMILIAR_STATE_CHANGED = 20,
289
351
  /**
290
352
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
291
353
  * not updated to the new character until a game frame has passed.)
@@ -297,7 +359,7 @@ export declare enum ModCallbackCustom {
297
359
  * function postFirstEsauJr(player: EntityPlayer): void {}
298
360
  * ```
299
361
  */
300
- POST_FIRST_ESAU_JR = 19,
362
+ POST_FIRST_ESAU_JR = 21,
301
363
  /**
302
364
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
303
365
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -310,7 +372,7 @@ export declare enum ModCallbackCustom {
310
372
  * function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
311
373
  * ```
312
374
  */
313
- POST_FIRST_FLIP = 20,
375
+ POST_FIRST_FLIP = 22,
314
376
  /**
315
377
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
316
378
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -323,7 +385,7 @@ export declare enum ModCallbackCustom {
323
385
  * function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
324
386
  * ```
325
387
  */
326
- POST_FLIP = 21,
388
+ POST_FLIP = 23,
327
389
  /**
328
390
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
329
391
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -334,7 +396,7 @@ export declare enum ModCallbackCustom {
334
396
  * function postGameStartedReordered(isContinued: boolean): void {}
335
397
  * ```
336
398
  */
337
- POST_GAME_STARTED_REORDERED = 22,
399
+ POST_GAME_STARTED_REORDERED = 24,
338
400
  /**
339
401
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
340
402
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -345,7 +407,7 @@ export declare enum ModCallbackCustom {
345
407
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
346
408
  * ```
347
409
  */
348
- POST_GAME_STARTED_REORDERED_LAST = 23,
410
+ POST_GAME_STARTED_REORDERED_LAST = 25,
349
411
  /**
350
412
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
351
413
  *
@@ -353,7 +415,7 @@ export declare enum ModCallbackCustom {
353
415
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
354
416
  * ```
355
417
  */
356
- POST_GREED_MODE_WAVE = 24,
418
+ POST_GREED_MODE_WAVE = 26,
357
419
  /**
358
420
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
359
421
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -372,7 +434,7 @@ export declare enum ModCallbackCustom {
372
434
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
373
435
  * ```
374
436
  */
375
- POST_GRID_ENTITY_BROKEN = 25,
437
+ POST_GRID_ENTITY_BROKEN = 27,
376
438
  /**
377
439
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
378
440
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -400,7 +462,7 @@ export declare enum ModCallbackCustom {
400
462
  * ): void {}
401
463
  * ```
402
464
  */
403
- POST_GRID_ENTITY_COLLISION = 26,
465
+ POST_GRID_ENTITY_COLLISION = 28,
404
466
  /**
405
467
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
406
468
  * with the `spawnCustomGridEntity` helper function.
@@ -417,7 +479,7 @@ export declare enum ModCallbackCustom {
417
479
  * ): void {}
418
480
  * ```
419
481
  */
420
- POST_GRID_ENTITY_CUSTOM_BROKEN = 27,
482
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 29,
421
483
  /**
422
484
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
423
485
  * with the `spawnCustomGridEntity` helper function.
@@ -441,7 +503,7 @@ export declare enum ModCallbackCustom {
441
503
  * ): void {}
442
504
  * ```
443
505
  */
444
- POST_GRID_ENTITY_CUSTOM_COLLISION = 28,
506
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 30,
445
507
  /**
446
508
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
447
509
  * the `spawnCustomGridEntity` helper function.
@@ -458,7 +520,7 @@ export declare enum ModCallbackCustom {
458
520
  * ): void {}
459
521
  * ```
460
522
  */
461
- POST_GRID_ENTITY_CUSTOM_INIT = 29,
523
+ POST_GRID_ENTITY_CUSTOM_INIT = 31,
462
524
  /**
463
525
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
464
526
  * with the `spawnCustomGridEntity` helper function.
@@ -475,7 +537,7 @@ export declare enum ModCallbackCustom {
475
537
  * ): void {}
476
538
  * ```
477
539
  */
478
- POST_GRID_ENTITY_CUSTOM_REMOVE = 30,
540
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 32,
479
541
  /**
480
542
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
481
543
  * with the `spawnCustomGridEntity` helper function.
@@ -492,7 +554,7 @@ export declare enum ModCallbackCustom {
492
554
  * ): void {}
493
555
  * ```
494
556
  */
495
- POST_GRID_ENTITY_CUSTOM_RENDER = 31,
557
+ POST_GRID_ENTITY_CUSTOM_RENDER = 33,
496
558
  /**
497
559
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
498
560
  * created with the `spawnCustomGridEntity` helper function.
@@ -511,7 +573,7 @@ export declare enum ModCallbackCustom {
511
573
  * ): void {}
512
574
  * ```
513
575
  */
514
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 32,
576
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 34,
515
577
  /**
516
578
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
517
579
  * with the `spawnCustomGridEntity` helper function.
@@ -528,7 +590,7 @@ export declare enum ModCallbackCustom {
528
590
  * ): void {}
529
591
  * ```
530
592
  */
531
- POST_GRID_ENTITY_CUSTOM_UPDATE = 33,
593
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 35,
532
594
  /**
533
595
  * Fires when a new grid entity is initialized. Specifically, this is either:
534
596
  *
@@ -550,7 +612,7 @@ export declare enum ModCallbackCustom {
550
612
  * function postGridEntityInit(gridEntity: GridEntity): void {}
551
613
  * ```
552
614
  */
553
- POST_GRID_ENTITY_INIT = 34,
615
+ POST_GRID_ENTITY_INIT = 36,
554
616
  /**
555
617
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
556
618
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -575,7 +637,7 @@ export declare enum ModCallbackCustom {
575
637
  * ): void {}
576
638
  * ```
577
639
  */
578
- POST_GRID_ENTITY_REMOVE = 35,
640
+ POST_GRID_ENTITY_REMOVE = 37,
579
641
  /**
580
642
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
581
643
  *
@@ -592,7 +654,7 @@ export declare enum ModCallbackCustom {
592
654
  * function postGridEntityRender(gridEntity: GridEntity): void {}
593
655
  * ```
594
656
  */
595
- POST_GRID_ENTITY_RENDER = 36,
657
+ POST_GRID_ENTITY_RENDER = 38,
596
658
  /**
597
659
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
598
660
  * "state" refers to the `GridEntity.State` field.)
@@ -614,7 +676,7 @@ export declare enum ModCallbackCustom {
614
676
  * ): void {}
615
677
  * ```
616
678
  */
617
- POST_GRID_ENTITY_STATE_CHANGED = 37,
679
+ POST_GRID_ENTITY_STATE_CHANGED = 39,
618
680
  /**
619
681
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
620
682
  *
@@ -631,7 +693,7 @@ export declare enum ModCallbackCustom {
631
693
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
632
694
  * ```
633
695
  */
634
- POST_GRID_ENTITY_UPDATE = 38,
696
+ POST_GRID_ENTITY_UPDATE = 40,
635
697
  /**
636
698
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
637
699
  * temporary collectible effect.
@@ -654,7 +716,7 @@ export declare enum ModCallbackCustom {
654
716
  * ): void {}
655
717
  * ```
656
718
  */
657
- POST_HOLY_MANTLE_REMOVED = 39,
719
+ POST_HOLY_MANTLE_REMOVED = 41,
658
720
  /**
659
721
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
660
722
  * active collectible item, implying that the item was just used.
@@ -677,7 +739,7 @@ export declare enum ModCallbackCustom {
677
739
  * ): void {}
678
740
  * ```
679
741
  */
680
- POST_ITEM_DISCHARGE = 40,
742
+ POST_ITEM_DISCHARGE = 42,
681
743
  /**
682
744
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
683
745
  * when the animation of the player holding the item above their head is finished and the item is
@@ -698,7 +760,7 @@ export declare enum ModCallbackCustom {
698
760
  * ): void {}
699
761
  * ```
700
762
  */
701
- POST_ITEM_PICKUP = 41,
763
+ POST_ITEM_PICKUP = 43,
702
764
  /**
703
765
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
704
766
  *
@@ -715,7 +777,7 @@ export declare enum ModCallbackCustom {
715
777
  * function postKnifeInitLate(knife: EntityKnife): void {}
716
778
  * ```
717
779
  */
718
- POST_KNIFE_INIT_LATE = 42,
780
+ POST_KNIFE_INIT_LATE = 44,
719
781
  /**
720
782
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
721
783
  *
@@ -732,7 +794,7 @@ export declare enum ModCallbackCustom {
732
794
  * function postLaserInitLate(laser: EntityLaser): void {}
733
795
  * ```
734
796
  */
735
- POST_LASER_INIT_LATE = 43,
797
+ POST_LASER_INIT_LATE = 45,
736
798
  /**
737
799
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
738
800
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -749,7 +811,7 @@ export declare enum ModCallbackCustom {
749
811
  * function postNewLevelReordered(): void {}
750
812
  * ```
751
813
  */
752
- POST_NEW_LEVEL_REORDERED = 44,
814
+ POST_NEW_LEVEL_REORDERED = 46,
753
815
  /**
754
816
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
755
817
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -760,7 +822,7 @@ export declare enum ModCallbackCustom {
760
822
  * function postNewRoomEarly(): void {}
761
823
  * ```
762
824
  */
763
- POST_NEW_ROOM_EARLY = 45,
825
+ POST_NEW_ROOM_EARLY = 47,
764
826
  /**
765
827
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
766
828
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -777,7 +839,7 @@ export declare enum ModCallbackCustom {
777
839
  * function postNewRoomReordered(): void {}
778
840
  * ```
779
841
  */
780
- POST_NEW_ROOM_REORDERED = 46,
842
+ POST_NEW_ROOM_REORDERED = 48,
781
843
  /**
782
844
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
783
845
  * to specify extra arguments for additional filtration.
@@ -789,8 +851,12 @@ export declare enum ModCallbackCustom {
789
851
  * matches the variant provided.
790
852
  * - You can provide an optional fifth argument that will make the callback only fire if it
791
853
  * matches the sub-type provided.
854
+ *
855
+ * ```ts
856
+ * function postNPCDeathFilter(npc: EntityNPC): void {}
857
+ * ```
792
858
  */
793
- POST_NPC_DEATH_FILTER = 47,
859
+ POST_NPC_DEATH_FILTER = 49,
794
860
  /**
795
861
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
796
862
  * to specify extra arguments for additional filtration.
@@ -802,8 +868,12 @@ export declare enum ModCallbackCustom {
802
868
  * matches the variant provided.
803
869
  * - You can provide an optional fifth argument that will make the callback only fire if it
804
870
  * matches the sub-type provided.
871
+ *
872
+ * ```ts
873
+ * function postNPCInitFilter(npc: EntityNPC): void {}
874
+ * ```
805
875
  */
806
- POST_NPC_INIT_FILTER = 48,
876
+ POST_NPC_INIT_FILTER = 50,
807
877
  /**
808
878
  * Fires on the first `NPC_UPDATE` frame for each NPC.
809
879
  *
@@ -822,7 +892,7 @@ export declare enum ModCallbackCustom {
822
892
  * function postNPCInitLate(npc: EntityNPC): void {}
823
893
  * ```
824
894
  */
825
- POST_NPC_INIT_LATE = 49,
895
+ POST_NPC_INIT_LATE = 51,
826
896
  /**
827
897
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
828
898
  * to specify extra arguments for additional filtration.
@@ -834,8 +904,12 @@ export declare enum ModCallbackCustom {
834
904
  * matches the variant provided.
835
905
  * - You can provide an optional fifth argument that will make the callback only fire if it
836
906
  * matches the sub-type provided.
907
+ *
908
+ * ```ts
909
+ * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
910
+ * ```
837
911
  */
838
- POST_NPC_RENDER_FILTER = 50,
912
+ POST_NPC_RENDER_FILTER = 52,
839
913
  /**
840
914
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
841
915
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -856,7 +930,7 @@ export declare enum ModCallbackCustom {
856
930
  * ): void {}
857
931
  * ```
858
932
  */
859
- POST_NPC_STATE_CHANGED = 51,
933
+ POST_NPC_STATE_CHANGED = 53,
860
934
  /**
861
935
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
862
936
  * to specify extra arguments for additional filtration.
@@ -868,8 +942,12 @@ export declare enum ModCallbackCustom {
868
942
  * matches the variant provided.
869
943
  * - You can provide an optional fifth argument that will make the callback only fire if it
870
944
  * matches the sub-type provided.
945
+ *
946
+ * ```ts
947
+ * function postNPCUpdateFilter(npc: EntityNPC): void {}
948
+ * ```
871
949
  */
872
- POST_NPC_UPDATE_FILTER = 52,
950
+ POST_NPC_UPDATE_FILTER = 54,
873
951
  /**
874
952
  * Similar to the vanilla callback of the same name, but fires after the
875
953
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -894,7 +972,7 @@ export declare enum ModCallbackCustom {
894
972
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
895
973
  * ```
896
974
  */
897
- POST_PEFFECT_UPDATE_REORDERED = 53,
975
+ POST_PEFFECT_UPDATE_REORDERED = 55,
898
976
  /**
899
977
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
900
978
  *
@@ -913,7 +991,7 @@ export declare enum ModCallbackCustom {
913
991
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
914
992
  * ```
915
993
  */
916
- POST_PICKUP_COLLECT = 54,
994
+ POST_PICKUP_COLLECT = 56,
917
995
  /**
918
996
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
919
997
  * respective pickup on the run.
@@ -931,7 +1009,7 @@ export declare enum ModCallbackCustom {
931
1009
  * function postPickupInitFirst(pickup: EntityPickup): void {}
932
1010
  * ```
933
1011
  */
934
- POST_PICKUP_INIT_FIRST = 55,
1012
+ POST_PICKUP_INIT_FIRST = 57,
935
1013
  /**
936
1014
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
937
1015
  *
@@ -948,7 +1026,7 @@ export declare enum ModCallbackCustom {
948
1026
  * function postPickupInitLate(pickup: EntityPickup): void {}
949
1027
  * ```
950
1028
  */
951
- POST_PICKUP_INIT_LATE = 56,
1029
+ POST_PICKUP_INIT_LATE = 58,
952
1030
  /**
953
1031
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
954
1032
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -967,7 +1045,7 @@ export declare enum ModCallbackCustom {
967
1045
  * ): void {}
968
1046
  * ```
969
1047
  */
970
- POST_PICKUP_STATE_CHANGED = 57,
1048
+ POST_PICKUP_STATE_CHANGED = 59,
971
1049
  /**
972
1050
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
973
1051
  *
@@ -979,7 +1057,7 @@ export declare enum ModCallbackCustom {
979
1057
  * function postPitRender(pit: GridEntityPit): void {}
980
1058
  * ```
981
1059
  */
982
- POST_PIT_RENDER = 58,
1060
+ POST_PIT_RENDER = 60,
983
1061
  /**
984
1062
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
985
1063
  *
@@ -991,7 +1069,7 @@ export declare enum ModCallbackCustom {
991
1069
  * function postPitUpdate(pit: GridEntityPit): void {}
992
1070
  * ```
993
1071
  */
994
- POST_PIT_UPDATE = 59,
1072
+ POST_PIT_UPDATE = 61,
995
1073
  /**
996
1074
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
997
1075
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -1013,7 +1091,7 @@ export declare enum ModCallbackCustom {
1013
1091
  * ): void {}
1014
1092
  * ```
1015
1093
  */
1016
- POST_PLAYER_CHANGE_HEALTH = 60,
1094
+ POST_PLAYER_CHANGE_HEALTH = 62,
1017
1095
  /**
1018
1096
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
1019
1097
  * from what they were on the previous frame.
@@ -1043,7 +1121,7 @@ export declare enum ModCallbackCustom {
1043
1121
  * ) => void {}
1044
1122
  * ```
1045
1123
  */
1046
- POST_PLAYER_CHANGE_STAT = 61,
1124
+ POST_PLAYER_CHANGE_STAT = 63,
1047
1125
  /**
1048
1126
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
1049
1127
  * type
@@ -1066,7 +1144,7 @@ export declare enum ModCallbackCustom {
1066
1144
  * ): void {}
1067
1145
  * ```
1068
1146
  */
1069
- POST_PLAYER_CHANGE_TYPE = 62,
1147
+ POST_PLAYER_CHANGE_TYPE = 64,
1070
1148
  /**
1071
1149
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
1072
1150
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -1083,7 +1161,7 @@ export declare enum ModCallbackCustom {
1083
1161
  * ): void {}
1084
1162
  * ```
1085
1163
  */
1086
- POST_PLAYER_COLLECTIBLE_ADDED = 63,
1164
+ POST_PLAYER_COLLECTIBLE_ADDED = 65,
1087
1165
  /**
1088
1166
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
1089
1167
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -1100,7 +1178,7 @@ export declare enum ModCallbackCustom {
1100
1178
  * ): void {}
1101
1179
  * ```
1102
1180
  */
1103
- POST_PLAYER_COLLECTIBLE_REMOVED = 64,
1181
+ POST_PLAYER_COLLECTIBLE_REMOVED = 66,
1104
1182
  /**
1105
1183
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
1106
1184
  * prevent the fatal damage.
@@ -1118,7 +1196,7 @@ export declare enum ModCallbackCustom {
1118
1196
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
1119
1197
  * ```
1120
1198
  */
1121
- POST_PLAYER_FATAL_DAMAGE = 65,
1199
+ POST_PLAYER_FATAL_DAMAGE = 67,
1122
1200
  /**
1123
1201
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
1124
1202
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -1140,7 +1218,7 @@ export declare enum ModCallbackCustom {
1140
1218
  * function postPlayerInitFirst(player: EntityPlayer): void {}
1141
1219
  * ```
1142
1220
  */
1143
- POST_PLAYER_INIT_FIRST = 66,
1221
+ POST_PLAYER_INIT_FIRST = 68,
1144
1222
  /**
1145
1223
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
1146
1224
  *
@@ -1160,7 +1238,7 @@ export declare enum ModCallbackCustom {
1160
1238
  * function postPlayerInitLate(pickup: EntityPickup): void {}
1161
1239
  * ```
1162
1240
  */
1163
- POST_PLAYER_INIT_LATE = 67,
1241
+ POST_PLAYER_INIT_LATE = 69,
1164
1242
  /**
1165
1243
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
1166
1244
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -1184,7 +1262,7 @@ export declare enum ModCallbackCustom {
1184
1262
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
1185
1263
  * ```
1186
1264
  */
1187
- POST_PLAYER_RENDER_REORDERED = 68,
1265
+ POST_PLAYER_RENDER_REORDERED = 70,
1188
1266
  /**
1189
1267
  * Similar to the vanilla callback of the same name, but fires after the
1190
1268
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -1209,7 +1287,7 @@ export declare enum ModCallbackCustom {
1209
1287
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
1210
1288
  * ```
1211
1289
  */
1212
- POST_PLAYER_UPDATE_REORDERED = 69,
1290
+ POST_PLAYER_UPDATE_REORDERED = 71,
1213
1291
  /**
1214
1292
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
1215
1293
  *
@@ -1221,7 +1299,7 @@ export declare enum ModCallbackCustom {
1221
1299
  * function postPoopRender(poop: GridEntityPoop): void {}
1222
1300
  * ```
1223
1301
  */
1224
- POST_POOP_RENDER = 70,
1302
+ POST_POOP_RENDER = 72,
1225
1303
  /**
1226
1304
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
1227
1305
  *
@@ -1233,7 +1311,7 @@ export declare enum ModCallbackCustom {
1233
1311
  * function postPoopUpdate(poop: GridEntityPoop): void {}
1234
1312
  * ```
1235
1313
  */
1236
- POST_POOP_UPDATE = 71,
1314
+ POST_POOP_UPDATE = 73,
1237
1315
  /**
1238
1316
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
1239
1317
  *
@@ -1245,7 +1323,7 @@ export declare enum ModCallbackCustom {
1245
1323
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
1246
1324
  * ```
1247
1325
  */
1248
- POST_PRESSURE_PLATE_RENDER = 72,
1326
+ POST_PRESSURE_PLATE_RENDER = 74,
1249
1327
  /**
1250
1328
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
1251
1329
  *
@@ -1257,7 +1335,7 @@ export declare enum ModCallbackCustom {
1257
1335
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
1258
1336
  * ```
1259
1337
  */
1260
- POST_PRESSURE_PLATE_UPDATE = 73,
1338
+ POST_PRESSURE_PLATE_UPDATE = 75,
1261
1339
  /**
1262
1340
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
1263
1341
  *
@@ -1274,7 +1352,7 @@ export declare enum ModCallbackCustom {
1274
1352
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
1275
1353
  * ```
1276
1354
  */
1277
- POST_PROJECTILE_INIT_LATE = 74,
1355
+ POST_PROJECTILE_INIT_LATE = 76,
1278
1356
  /**
1279
1357
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
1280
1358
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -1290,7 +1368,7 @@ export declare enum ModCallbackCustom {
1290
1368
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
1291
1369
  * ```
1292
1370
  */
1293
- POST_PURCHASE = 75,
1371
+ POST_PURCHASE = 77,
1294
1372
  /**
1295
1373
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
1296
1374
  *
@@ -1304,7 +1382,7 @@ export declare enum ModCallbackCustom {
1304
1382
  * function postRockRender(rock: GridEntityRock): void {}
1305
1383
  * ```
1306
1384
  */
1307
- POST_ROCK_RENDER = 76,
1385
+ POST_ROCK_RENDER = 78,
1308
1386
  /**
1309
1387
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
1310
1388
  *
@@ -1318,7 +1396,7 @@ export declare enum ModCallbackCustom {
1318
1396
  * function postRockUpdate(rock: GridEntityRock): void {}
1319
1397
  * ```
1320
1398
  */
1321
- POST_ROCK_UPDATE = 77,
1399
+ POST_ROCK_UPDATE = 79,
1322
1400
  /**
1323
1401
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
1324
1402
  * the `Room.IsClear` method).
@@ -1335,7 +1413,7 @@ export declare enum ModCallbackCustom {
1335
1413
  * function postRoomClearChanged(roomClear: boolean): void {}
1336
1414
  * ```
1337
1415
  */
1338
- POST_ROOM_CLEAR_CHANGED = 78,
1416
+ POST_ROOM_CLEAR_CHANGED = 80,
1339
1417
  /**
1340
1418
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
1341
1419
  * Room.
@@ -1350,7 +1428,7 @@ export declare enum ModCallbackCustom {
1350
1428
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
1351
1429
  * ```
1352
1430
  */
1353
- POST_SACRIFICE = 79,
1431
+ POST_SACRIFICE = 81,
1354
1432
  /**
1355
1433
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
1356
1434
  *
@@ -1364,7 +1442,7 @@ export declare enum ModCallbackCustom {
1364
1442
  * function postSlotAnimationChanged(slot: Entity): void {}
1365
1443
  * ```
1366
1444
  */
1367
- POST_SLOT_ANIMATION_CHANGED = 80,
1445
+ POST_SLOT_ANIMATION_CHANGED = 82,
1368
1446
  /**
1369
1447
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
1370
1448
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -1388,7 +1466,7 @@ export declare enum ModCallbackCustom {
1388
1466
  * ): void {}
1389
1467
  * ```
1390
1468
  */
1391
- POST_SLOT_COLLISION = 81,
1469
+ POST_SLOT_COLLISION = 83,
1392
1470
  /**
1393
1471
  * Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
1394
1472
  * has broken.
@@ -1403,7 +1481,7 @@ export declare enum ModCallbackCustom {
1403
1481
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
1404
1482
  * ```
1405
1483
  */
1406
- POST_SLOT_DESTROYED = 82,
1484
+ POST_SLOT_DESTROYED = 84,
1407
1485
  /**
1408
1486
  * Fires when a new slot entity is initialized. Specifically, this is either:
1409
1487
  *
@@ -1422,7 +1500,7 @@ export declare enum ModCallbackCustom {
1422
1500
  * function postSlotInit(slot: Entity): void {}
1423
1501
  * ```
1424
1502
  */
1425
- POST_SLOT_INIT = 83,
1503
+ POST_SLOT_INIT = 85,
1426
1504
  /**
1427
1505
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
1428
1506
  *
@@ -1436,7 +1514,7 @@ export declare enum ModCallbackCustom {
1436
1514
  * function postSlotRender(slot: Entity): void {}
1437
1515
  * ```
1438
1516
  */
1439
- POST_SLOT_RENDER = 84,
1517
+ POST_SLOT_RENDER = 86,
1440
1518
  /**
1441
1519
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
1442
1520
  *
@@ -1450,7 +1528,7 @@ export declare enum ModCallbackCustom {
1450
1528
  * function postSlotUpdate(slot: Entity): void {}
1451
1529
  * ```
1452
1530
  */
1453
- POST_SLOT_UPDATE = 85,
1531
+ POST_SLOT_UPDATE = 87,
1454
1532
  /**
1455
1533
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
1456
1534
  *
@@ -1462,7 +1540,7 @@ export declare enum ModCallbackCustom {
1462
1540
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
1463
1541
  * ```
1464
1542
  */
1465
- POST_SPIKES_RENDER = 86,
1543
+ POST_SPIKES_RENDER = 88,
1466
1544
  /**
1467
1545
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
1468
1546
  *
@@ -1474,7 +1552,7 @@ export declare enum ModCallbackCustom {
1474
1552
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
1475
1553
  * ```
1476
1554
  */
1477
- POST_SPIKES_UPDATE = 87,
1555
+ POST_SPIKES_UPDATE = 89,
1478
1556
  /**
1479
1557
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
1480
1558
  * `EntityTear.FrameCount` is equal to 0).
@@ -1492,7 +1570,7 @@ export declare enum ModCallbackCustom {
1492
1570
  * function postTearInitLate(tear: EntityTear): void {}
1493
1571
  * ```
1494
1572
  */
1495
- POST_TEAR_INIT_LATE = 88,
1573
+ POST_TEAR_INIT_LATE = 90,
1496
1574
  /**
1497
1575
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
1498
1576
  * `EntityTear.FrameCount` is equal to 1).
@@ -1509,7 +1587,7 @@ export declare enum ModCallbackCustom {
1509
1587
  * function postTearInitVeryLate(tear: EntityTear): void {}
1510
1588
  * ```
1511
1589
  */
1512
- POST_TEAR_INIT_VERY_LATE = 89,
1590
+ POST_TEAR_INIT_VERY_LATE = 91,
1513
1591
  /**
1514
1592
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
1515
1593
  *
@@ -1521,7 +1599,7 @@ export declare enum ModCallbackCustom {
1521
1599
  * function postTNTRender(tnt: GridEntityTNT): void {}
1522
1600
  * ```
1523
1601
  */
1524
- POST_TNT_RENDER = 90,
1602
+ POST_TNT_RENDER = 92,
1525
1603
  /**
1526
1604
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
1527
1605
  *
@@ -1533,7 +1611,7 @@ export declare enum ModCallbackCustom {
1533
1611
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
1534
1612
  * ```
1535
1613
  */
1536
- POST_TNT_UPDATE = 91,
1614
+ POST_TNT_UPDATE = 93,
1537
1615
  /**
1538
1616
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
1539
1617
  * transformation.
@@ -1552,7 +1630,7 @@ export declare enum ModCallbackCustom {
1552
1630
  * ): void {}
1553
1631
  * ```
1554
1632
  */
1555
- POST_TRANSFORMATION = 92,
1633
+ POST_TRANSFORMATION = 94,
1556
1634
  /**
1557
1635
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
1558
1636
  *
@@ -1567,7 +1645,7 @@ export declare enum ModCallbackCustom {
1567
1645
  * ): void {}
1568
1646
  * ```
1569
1647
  */
1570
- POST_TRINKET_BREAK = 93,
1648
+ POST_TRINKET_BREAK = 95,
1571
1649
  /**
1572
1650
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
1573
1651
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -1583,7 +1661,7 @@ export declare enum ModCallbackCustom {
1583
1661
  * function preBerserkDeath(player: EntityPlayer): void {}
1584
1662
  * ```
1585
1663
  */
1586
- PRE_BERSERK_DEATH = 94,
1664
+ PRE_BERSERK_DEATH = 96,
1587
1665
  /**
1588
1666
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
1589
1667
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -1602,7 +1680,7 @@ export declare enum ModCallbackCustom {
1602
1680
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
1603
1681
  * ```
1604
1682
  */
1605
- PRE_CUSTOM_REVIVE = 95,
1683
+ PRE_CUSTOM_REVIVE = 97,
1606
1684
  /**
1607
1685
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
1608
1686
  * meets all of the conditions to pick it up.
@@ -1622,7 +1700,7 @@ export declare enum ModCallbackCustom {
1622
1700
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
1623
1701
  * ```
1624
1702
  */
1625
- PRE_GET_PEDESTAL = 96,
1703
+ PRE_GET_PEDESTAL = 98,
1626
1704
  /**
1627
1705
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
1628
1706
  * the player begins to hold the item above their head).
@@ -1642,7 +1720,7 @@ export declare enum ModCallbackCustom {
1642
1720
  * ): void {}
1643
1721
  * ```
1644
1722
  */
1645
- PRE_ITEM_PICKUP = 97,
1723
+ PRE_ITEM_PICKUP = 99,
1646
1724
  /**
1647
1725
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
1648
1726
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -1656,7 +1734,7 @@ export declare enum ModCallbackCustom {
1656
1734
  * function preNewLevel(player: EntityPlayer): void {}
1657
1735
  * ```
1658
1736
  */
1659
- PRE_NEW_LEVEL = 98,
1737
+ PRE_NEW_LEVEL = 100,
1660
1738
  /**
1661
1739
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
1662
1740
  * you to specify extra arguments for additional filtration.
@@ -1668,8 +1746,16 @@ export declare enum ModCallbackCustom {
1668
1746
  * matches the variant provided.
1669
1747
  * - You can provide an optional fifth argument that will make the callback only fire if it
1670
1748
  * matches the sub-type provided.
1749
+ *
1750
+ * ```ts
1751
+ * function preNPCCollisionFilter(
1752
+ * npc: EntityNPC,
1753
+ * collider: Entity,
1754
+ * low: boolean,
1755
+ * ): boolean | undefined {}
1756
+ * ```
1671
1757
  */
1672
- PRE_NPC_COLLISION_FILTER = 99,
1758
+ PRE_NPC_COLLISION_FILTER = 101,
1673
1759
  /**
1674
1760
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
1675
1761
  * to specify extra arguments for additional filtration.
@@ -1681,7 +1767,11 @@ export declare enum ModCallbackCustom {
1681
1767
  * matches the variant provided.
1682
1768
  * - You can provide an optional fifth argument that will make the callback only fire if it
1683
1769
  * matches the sub-type provided.
1770
+ *
1771
+ * ```ts
1772
+ * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
1773
+ * ```
1684
1774
  */
1685
- PRE_NPC_UPDATE_FILTER = 100
1775
+ PRE_NPC_UPDATE_FILTER = 102
1686
1776
  }
1687
1777
  //# sourceMappingURL=ModCallbackCustom.d.ts.map