isaacscript-common 26.3.0 → 26.4.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.
@@ -302,6 +302,23 @@ export declare enum ModCallbackCustom {
302
302
  * ```
303
303
  */
304
304
  POST_EFFECT_STATE_CHANGED = 17,
305
+ /**
306
+ * The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
307
+ * you to specify extra arguments for additional filtration.
308
+ *
309
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
310
+ * - You can provide an optional third argument that will make the callback only fire if it
311
+ * matches the `EntityType` provided.
312
+ * - You can provide an optional fourth argument that will make the callback only fire if it
313
+ * matches the variant provided.
314
+ * - You can provide an optional fifth argument that will make the callback only fire if it
315
+ * matches the sub-type provided.
316
+ *
317
+ * ```ts
318
+ * function postEntityKillFilter(entity: Entity): void {}
319
+ * ```
320
+ */
321
+ POST_ENTITY_KILL_FILTER = 18,
305
322
  /**
306
323
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
307
324
  * updated to the new character until a game frame has passed.)
@@ -310,7 +327,7 @@ export declare enum ModCallbackCustom {
310
327
  * function postEsauJr(player: EntityPlayer): void {}
311
328
  * ```
312
329
  */
313
- POST_ESAU_JR = 18,
330
+ POST_ESAU_JR = 19,
314
331
  /**
315
332
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
316
333
  *
@@ -327,7 +344,7 @@ export declare enum ModCallbackCustom {
327
344
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
328
345
  * ```
329
346
  */
330
- POST_FAMILIAR_INIT_LATE = 19,
347
+ POST_FAMILIAR_INIT_LATE = 20,
331
348
  /**
332
349
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
333
350
  * was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
@@ -347,7 +364,7 @@ export declare enum ModCallbackCustom {
347
364
  * ): void {}
348
365
  * ```
349
366
  */
350
- POST_FAMILIAR_STATE_CHANGED = 20,
367
+ POST_FAMILIAR_STATE_CHANGED = 21,
351
368
  /**
352
369
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
353
370
  * not updated to the new character until a game frame has passed.)
@@ -359,7 +376,7 @@ export declare enum ModCallbackCustom {
359
376
  * function postFirstEsauJr(player: EntityPlayer): void {}
360
377
  * ```
361
378
  */
362
- POST_FIRST_ESAU_JR = 21,
379
+ POST_FIRST_ESAU_JR = 22,
363
380
  /**
364
381
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
365
382
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -372,7 +389,7 @@ export declare enum ModCallbackCustom {
372
389
  * function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
373
390
  * ```
374
391
  */
375
- POST_FIRST_FLIP = 22,
392
+ POST_FIRST_FLIP = 23,
376
393
  /**
377
394
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
378
395
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -385,7 +402,7 @@ export declare enum ModCallbackCustom {
385
402
  * function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
386
403
  * ```
387
404
  */
388
- POST_FLIP = 23,
405
+ POST_FLIP = 24,
389
406
  /**
390
407
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
391
408
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -404,7 +421,7 @@ export declare enum ModCallbackCustom {
404
421
  * function postGameStartedReordered(isContinued: boolean): void {}
405
422
  * ```
406
423
  */
407
- POST_GAME_STARTED_REORDERED = 24,
424
+ POST_GAME_STARTED_REORDERED = 25,
408
425
  /**
409
426
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
410
427
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -423,7 +440,7 @@ export declare enum ModCallbackCustom {
423
440
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
424
441
  * ```
425
442
  */
426
- POST_GAME_STARTED_REORDERED_LAST = 25,
443
+ POST_GAME_STARTED_REORDERED_LAST = 26,
427
444
  /**
428
445
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
429
446
  *
@@ -431,7 +448,7 @@ export declare enum ModCallbackCustom {
431
448
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
432
449
  * ```
433
450
  */
434
- POST_GREED_MODE_WAVE = 26,
451
+ POST_GREED_MODE_WAVE = 27,
435
452
  /**
436
453
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
437
454
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -450,7 +467,7 @@ export declare enum ModCallbackCustom {
450
467
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
451
468
  * ```
452
469
  */
453
- POST_GRID_ENTITY_BROKEN = 27,
470
+ POST_GRID_ENTITY_BROKEN = 28,
454
471
  /**
455
472
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
456
473
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -478,7 +495,7 @@ export declare enum ModCallbackCustom {
478
495
  * ): void {}
479
496
  * ```
480
497
  */
481
- POST_GRID_ENTITY_COLLISION = 28,
498
+ POST_GRID_ENTITY_COLLISION = 29,
482
499
  /**
483
500
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
484
501
  * with the `spawnCustomGridEntity` helper function.
@@ -495,7 +512,7 @@ export declare enum ModCallbackCustom {
495
512
  * ): void {}
496
513
  * ```
497
514
  */
498
- POST_GRID_ENTITY_CUSTOM_BROKEN = 29,
515
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 30,
499
516
  /**
500
517
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
501
518
  * with the `spawnCustomGridEntity` helper function.
@@ -519,7 +536,7 @@ export declare enum ModCallbackCustom {
519
536
  * ): void {}
520
537
  * ```
521
538
  */
522
- POST_GRID_ENTITY_CUSTOM_COLLISION = 30,
539
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 31,
523
540
  /**
524
541
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
525
542
  * the `spawnCustomGridEntity` helper function.
@@ -536,7 +553,7 @@ export declare enum ModCallbackCustom {
536
553
  * ): void {}
537
554
  * ```
538
555
  */
539
- POST_GRID_ENTITY_CUSTOM_INIT = 31,
556
+ POST_GRID_ENTITY_CUSTOM_INIT = 32,
540
557
  /**
541
558
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
542
559
  * with the `spawnCustomGridEntity` helper function.
@@ -553,7 +570,7 @@ export declare enum ModCallbackCustom {
553
570
  * ): void {}
554
571
  * ```
555
572
  */
556
- POST_GRID_ENTITY_CUSTOM_REMOVE = 32,
573
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 33,
557
574
  /**
558
575
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
559
576
  * with the `spawnCustomGridEntity` helper function.
@@ -570,7 +587,7 @@ export declare enum ModCallbackCustom {
570
587
  * ): void {}
571
588
  * ```
572
589
  */
573
- POST_GRID_ENTITY_CUSTOM_RENDER = 33,
590
+ POST_GRID_ENTITY_CUSTOM_RENDER = 34,
574
591
  /**
575
592
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
576
593
  * created with the `spawnCustomGridEntity` helper function.
@@ -589,7 +606,7 @@ export declare enum ModCallbackCustom {
589
606
  * ): void {}
590
607
  * ```
591
608
  */
592
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 34,
609
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 35,
593
610
  /**
594
611
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
595
612
  * with the `spawnCustomGridEntity` helper function.
@@ -606,7 +623,7 @@ export declare enum ModCallbackCustom {
606
623
  * ): void {}
607
624
  * ```
608
625
  */
609
- POST_GRID_ENTITY_CUSTOM_UPDATE = 35,
626
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 36,
610
627
  /**
611
628
  * Fires when a new grid entity is initialized. Specifically, this is either:
612
629
  *
@@ -628,7 +645,7 @@ export declare enum ModCallbackCustom {
628
645
  * function postGridEntityInit(gridEntity: GridEntity): void {}
629
646
  * ```
630
647
  */
631
- POST_GRID_ENTITY_INIT = 36,
648
+ POST_GRID_ENTITY_INIT = 37,
632
649
  /**
633
650
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
634
651
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -653,7 +670,7 @@ export declare enum ModCallbackCustom {
653
670
  * ): void {}
654
671
  * ```
655
672
  */
656
- POST_GRID_ENTITY_REMOVE = 37,
673
+ POST_GRID_ENTITY_REMOVE = 38,
657
674
  /**
658
675
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
659
676
  *
@@ -670,7 +687,7 @@ export declare enum ModCallbackCustom {
670
687
  * function postGridEntityRender(gridEntity: GridEntity): void {}
671
688
  * ```
672
689
  */
673
- POST_GRID_ENTITY_RENDER = 38,
690
+ POST_GRID_ENTITY_RENDER = 39,
674
691
  /**
675
692
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
676
693
  * "state" refers to the `GridEntity.State` field.)
@@ -692,7 +709,7 @@ export declare enum ModCallbackCustom {
692
709
  * ): void {}
693
710
  * ```
694
711
  */
695
- POST_GRID_ENTITY_STATE_CHANGED = 39,
712
+ POST_GRID_ENTITY_STATE_CHANGED = 40,
696
713
  /**
697
714
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
698
715
  *
@@ -709,7 +726,7 @@ export declare enum ModCallbackCustom {
709
726
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
710
727
  * ```
711
728
  */
712
- POST_GRID_ENTITY_UPDATE = 40,
729
+ POST_GRID_ENTITY_UPDATE = 41,
713
730
  /**
714
731
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
715
732
  * temporary collectible effect.
@@ -732,7 +749,7 @@ export declare enum ModCallbackCustom {
732
749
  * ): void {}
733
750
  * ```
734
751
  */
735
- POST_HOLY_MANTLE_REMOVED = 41,
752
+ POST_HOLY_MANTLE_REMOVED = 42,
736
753
  /**
737
754
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
738
755
  * active collectible item, implying that the item was just used.
@@ -755,7 +772,7 @@ export declare enum ModCallbackCustom {
755
772
  * ): void {}
756
773
  * ```
757
774
  */
758
- POST_ITEM_DISCHARGE = 42,
775
+ POST_ITEM_DISCHARGE = 43,
759
776
  /**
760
777
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
761
778
  * when the animation of the player holding the item above their head is finished and the item is
@@ -776,7 +793,7 @@ export declare enum ModCallbackCustom {
776
793
  * ): void {}
777
794
  * ```
778
795
  */
779
- POST_ITEM_PICKUP = 43,
796
+ POST_ITEM_PICKUP = 44,
780
797
  /**
781
798
  * Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
782
799
  * released. (In other words, the callback only fires when the "pressed" status is different than
@@ -792,7 +809,7 @@ export declare enum ModCallbackCustom {
792
809
  * function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
793
810
  * ```
794
811
  */
795
- POST_KEYBOARD_CHANGED = 44,
812
+ POST_KEYBOARD_CHANGED = 45,
796
813
  /**
797
814
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
798
815
  *
@@ -809,7 +826,7 @@ export declare enum ModCallbackCustom {
809
826
  * function postKnifeInitLate(knife: EntityKnife): void {}
810
827
  * ```
811
828
  */
812
- POST_KNIFE_INIT_LATE = 45,
829
+ POST_KNIFE_INIT_LATE = 46,
813
830
  /**
814
831
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
815
832
  *
@@ -826,7 +843,7 @@ export declare enum ModCallbackCustom {
826
843
  * function postLaserInitLate(laser: EntityLaser): void {}
827
844
  * ```
828
845
  */
829
- POST_LASER_INIT_LATE = 46,
846
+ POST_LASER_INIT_LATE = 47,
830
847
  /**
831
848
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
832
849
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -843,7 +860,7 @@ export declare enum ModCallbackCustom {
843
860
  * function postNewLevelReordered(): void {}
844
861
  * ```
845
862
  */
846
- POST_NEW_LEVEL_REORDERED = 47,
863
+ POST_NEW_LEVEL_REORDERED = 48,
847
864
  /**
848
865
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
849
866
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -854,7 +871,7 @@ export declare enum ModCallbackCustom {
854
871
  * function postNewRoomEarly(): void {}
855
872
  * ```
856
873
  */
857
- POST_NEW_ROOM_EARLY = 48,
874
+ POST_NEW_ROOM_EARLY = 49,
858
875
  /**
859
876
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
860
877
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -871,7 +888,7 @@ export declare enum ModCallbackCustom {
871
888
  * function postNewRoomReordered(): void {}
872
889
  * ```
873
890
  */
874
- POST_NEW_ROOM_REORDERED = 49,
891
+ POST_NEW_ROOM_REORDERED = 50,
875
892
  /**
876
893
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
877
894
  * to specify extra arguments for additional filtration.
@@ -888,7 +905,7 @@ export declare enum ModCallbackCustom {
888
905
  * function postNPCDeathFilter(npc: EntityNPC): void {}
889
906
  * ```
890
907
  */
891
- POST_NPC_DEATH_FILTER = 50,
908
+ POST_NPC_DEATH_FILTER = 51,
892
909
  /**
893
910
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
894
911
  * to specify extra arguments for additional filtration.
@@ -905,7 +922,7 @@ export declare enum ModCallbackCustom {
905
922
  * function postNPCInitFilter(npc: EntityNPC): void {}
906
923
  * ```
907
924
  */
908
- POST_NPC_INIT_FILTER = 51,
925
+ POST_NPC_INIT_FILTER = 52,
909
926
  /**
910
927
  * Fires on the first `NPC_UPDATE` frame for each NPC.
911
928
  *
@@ -924,7 +941,7 @@ export declare enum ModCallbackCustom {
924
941
  * function postNPCInitLate(npc: EntityNPC): void {}
925
942
  * ```
926
943
  */
927
- POST_NPC_INIT_LATE = 52,
944
+ POST_NPC_INIT_LATE = 53,
928
945
  /**
929
946
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
930
947
  * to specify extra arguments for additional filtration.
@@ -941,7 +958,7 @@ export declare enum ModCallbackCustom {
941
958
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
942
959
  * ```
943
960
  */
944
- POST_NPC_RENDER_FILTER = 53,
961
+ POST_NPC_RENDER_FILTER = 54,
945
962
  /**
946
963
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
947
964
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -962,7 +979,7 @@ export declare enum ModCallbackCustom {
962
979
  * ): void {}
963
980
  * ```
964
981
  */
965
- POST_NPC_STATE_CHANGED = 54,
982
+ POST_NPC_STATE_CHANGED = 55,
966
983
  /**
967
984
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
968
985
  * to specify extra arguments for additional filtration.
@@ -979,7 +996,7 @@ export declare enum ModCallbackCustom {
979
996
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
980
997
  * ```
981
998
  */
982
- POST_NPC_UPDATE_FILTER = 55,
999
+ POST_NPC_UPDATE_FILTER = 56,
983
1000
  /**
984
1001
  * Similar to the vanilla callback of the same name, but fires after the
985
1002
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -1004,7 +1021,7 @@ export declare enum ModCallbackCustom {
1004
1021
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
1005
1022
  * ```
1006
1023
  */
1007
- POST_PEFFECT_UPDATE_REORDERED = 56,
1024
+ POST_PEFFECT_UPDATE_REORDERED = 57,
1008
1025
  /**
1009
1026
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
1010
1027
  * than what it was on the previous frame.
@@ -1025,7 +1042,7 @@ export declare enum ModCallbackCustom {
1025
1042
  * ): void {}
1026
1043
  * ```
1027
1044
  */
1028
- POST_PICKUP_CHANGED = 57,
1045
+ POST_PICKUP_CHANGED = 58,
1029
1046
  /**
1030
1047
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
1031
1048
  *
@@ -1044,7 +1061,7 @@ export declare enum ModCallbackCustom {
1044
1061
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
1045
1062
  * ```
1046
1063
  */
1047
- POST_PICKUP_COLLECT = 58,
1064
+ POST_PICKUP_COLLECT = 59,
1048
1065
  /**
1049
1066
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
1050
1067
  * you to specify extra arguments for additional filtration.
@@ -1059,7 +1076,7 @@ export declare enum ModCallbackCustom {
1059
1076
  * function postPickupInitFilter(pickup: EntityPickup): void {}
1060
1077
  * ```
1061
1078
  */
1062
- POST_PICKUP_INIT_FILTER = 59,
1079
+ POST_PICKUP_INIT_FILTER = 60,
1063
1080
  /**
1064
1081
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
1065
1082
  * respective pickup on the run.
@@ -1077,7 +1094,7 @@ export declare enum ModCallbackCustom {
1077
1094
  * function postPickupInitFirst(pickup: EntityPickup): void {}
1078
1095
  * ```
1079
1096
  */
1080
- POST_PICKUP_INIT_FIRST = 60,
1097
+ POST_PICKUP_INIT_FIRST = 61,
1081
1098
  /**
1082
1099
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
1083
1100
  *
@@ -1094,7 +1111,7 @@ export declare enum ModCallbackCustom {
1094
1111
  * function postPickupInitLate(pickup: EntityPickup): void {}
1095
1112
  * ```
1096
1113
  */
1097
- POST_PICKUP_INIT_LATE = 61,
1114
+ POST_PICKUP_INIT_LATE = 62,
1098
1115
  /**
1099
1116
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
1100
1117
  * you to specify extra arguments for additional filtration.
@@ -1109,7 +1126,7 @@ export declare enum ModCallbackCustom {
1109
1126
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
1110
1127
  * ```
1111
1128
  */
1112
- POST_PICKUP_RENDER_FILTER = 62,
1129
+ POST_PICKUP_RENDER_FILTER = 63,
1113
1130
  /**
1114
1131
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
1115
1132
  * allows you to specify extra arguments for additional filtration.
@@ -1128,7 +1145,7 @@ export declare enum ModCallbackCustom {
1128
1145
  * ): [PickupVariant, int] | undefined {}
1129
1146
  * ```
1130
1147
  */
1131
- POST_PICKUP_SELECTION_FILTER = 63,
1148
+ POST_PICKUP_SELECTION_FILTER = 64,
1132
1149
  /**
1133
1150
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
1134
1151
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -1147,7 +1164,7 @@ export declare enum ModCallbackCustom {
1147
1164
  * ): void {}
1148
1165
  * ```
1149
1166
  */
1150
- POST_PICKUP_STATE_CHANGED = 64,
1167
+ POST_PICKUP_STATE_CHANGED = 65,
1151
1168
  /**
1152
1169
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
1153
1170
  * you to specify extra arguments for additional filtration.
@@ -1162,7 +1179,7 @@ export declare enum ModCallbackCustom {
1162
1179
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
1163
1180
  * ```
1164
1181
  */
1165
- POST_PICKUP_UPDATE_FILTER = 65,
1182
+ POST_PICKUP_UPDATE_FILTER = 66,
1166
1183
  /**
1167
1184
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
1168
1185
  *
@@ -1174,7 +1191,7 @@ export declare enum ModCallbackCustom {
1174
1191
  * function postPitRender(pit: GridEntityPit): void {}
1175
1192
  * ```
1176
1193
  */
1177
- POST_PIT_RENDER = 66,
1194
+ POST_PIT_RENDER = 67,
1178
1195
  /**
1179
1196
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
1180
1197
  *
@@ -1186,7 +1203,7 @@ export declare enum ModCallbackCustom {
1186
1203
  * function postPitUpdate(pit: GridEntityPit): void {}
1187
1204
  * ```
1188
1205
  */
1189
- POST_PIT_UPDATE = 67,
1206
+ POST_PIT_UPDATE = 68,
1190
1207
  /**
1191
1208
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
1192
1209
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -1208,7 +1225,7 @@ export declare enum ModCallbackCustom {
1208
1225
  * ): void {}
1209
1226
  * ```
1210
1227
  */
1211
- POST_PLAYER_CHANGE_HEALTH = 68,
1228
+ POST_PLAYER_CHANGE_HEALTH = 69,
1212
1229
  /**
1213
1230
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
1214
1231
  * from what they were on the previous frame.
@@ -1238,7 +1255,7 @@ export declare enum ModCallbackCustom {
1238
1255
  * ) => void {}
1239
1256
  * ```
1240
1257
  */
1241
- POST_PLAYER_CHANGE_STAT = 69,
1258
+ POST_PLAYER_CHANGE_STAT = 70,
1242
1259
  /**
1243
1260
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
1244
1261
  * type
@@ -1261,7 +1278,7 @@ export declare enum ModCallbackCustom {
1261
1278
  * ): void {}
1262
1279
  * ```
1263
1280
  */
1264
- POST_PLAYER_CHANGE_TYPE = 70,
1281
+ POST_PLAYER_CHANGE_TYPE = 71,
1265
1282
  /**
1266
1283
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
1267
1284
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -1278,7 +1295,7 @@ export declare enum ModCallbackCustom {
1278
1295
  * ): void {}
1279
1296
  * ```
1280
1297
  */
1281
- POST_PLAYER_COLLECTIBLE_ADDED = 71,
1298
+ POST_PLAYER_COLLECTIBLE_ADDED = 72,
1282
1299
  /**
1283
1300
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
1284
1301
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -1295,7 +1312,7 @@ export declare enum ModCallbackCustom {
1295
1312
  * ): void {}
1296
1313
  * ```
1297
1314
  */
1298
- POST_PLAYER_COLLECTIBLE_REMOVED = 72,
1315
+ POST_PLAYER_COLLECTIBLE_REMOVED = 73,
1299
1316
  /**
1300
1317
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
1301
1318
  * prevent the fatal damage.
@@ -1313,7 +1330,7 @@ export declare enum ModCallbackCustom {
1313
1330
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
1314
1331
  * ```
1315
1332
  */
1316
- POST_PLAYER_FATAL_DAMAGE = 73,
1333
+ POST_PLAYER_FATAL_DAMAGE = 74,
1317
1334
  /**
1318
1335
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
1319
1336
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -1335,7 +1352,7 @@ export declare enum ModCallbackCustom {
1335
1352
  * function postPlayerInitFirst(player: EntityPlayer): void {}
1336
1353
  * ```
1337
1354
  */
1338
- POST_PLAYER_INIT_FIRST = 74,
1355
+ POST_PLAYER_INIT_FIRST = 75,
1339
1356
  /**
1340
1357
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
1341
1358
  *
@@ -1355,7 +1372,7 @@ export declare enum ModCallbackCustom {
1355
1372
  * function postPlayerInitLate(pickup: EntityPickup): void {}
1356
1373
  * ```
1357
1374
  */
1358
- POST_PLAYER_INIT_LATE = 75,
1375
+ POST_PLAYER_INIT_LATE = 76,
1359
1376
  /**
1360
1377
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
1361
1378
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -1379,7 +1396,7 @@ export declare enum ModCallbackCustom {
1379
1396
  * function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
1380
1397
  * ```
1381
1398
  */
1382
- POST_PLAYER_RENDER_REORDERED = 76,
1399
+ POST_PLAYER_RENDER_REORDERED = 77,
1383
1400
  /**
1384
1401
  * Similar to the vanilla callback of the same name, but fires after the
1385
1402
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -1404,7 +1421,7 @@ export declare enum ModCallbackCustom {
1404
1421
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
1405
1422
  * ```
1406
1423
  */
1407
- POST_PLAYER_UPDATE_REORDERED = 77,
1424
+ POST_PLAYER_UPDATE_REORDERED = 78,
1408
1425
  /**
1409
1426
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
1410
1427
  *
@@ -1416,7 +1433,7 @@ export declare enum ModCallbackCustom {
1416
1433
  * function postPoopRender(poop: GridEntityPoop): void {}
1417
1434
  * ```
1418
1435
  */
1419
- POST_POOP_RENDER = 78,
1436
+ POST_POOP_RENDER = 79,
1420
1437
  /**
1421
1438
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
1422
1439
  *
@@ -1428,7 +1445,7 @@ export declare enum ModCallbackCustom {
1428
1445
  * function postPoopUpdate(poop: GridEntityPoop): void {}
1429
1446
  * ```
1430
1447
  */
1431
- POST_POOP_UPDATE = 79,
1448
+ POST_POOP_UPDATE = 80,
1432
1449
  /**
1433
1450
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
1434
1451
  *
@@ -1440,7 +1457,7 @@ export declare enum ModCallbackCustom {
1440
1457
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
1441
1458
  * ```
1442
1459
  */
1443
- POST_PRESSURE_PLATE_RENDER = 80,
1460
+ POST_PRESSURE_PLATE_RENDER = 81,
1444
1461
  /**
1445
1462
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
1446
1463
  *
@@ -1452,7 +1469,7 @@ export declare enum ModCallbackCustom {
1452
1469
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
1453
1470
  * ```
1454
1471
  */
1455
- POST_PRESSURE_PLATE_UPDATE = 81,
1472
+ POST_PRESSURE_PLATE_UPDATE = 82,
1456
1473
  /**
1457
1474
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
1458
1475
  *
@@ -1469,7 +1486,7 @@ export declare enum ModCallbackCustom {
1469
1486
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
1470
1487
  * ```
1471
1488
  */
1472
- POST_PROJECTILE_INIT_LATE = 82,
1489
+ POST_PROJECTILE_INIT_LATE = 83,
1473
1490
  /**
1474
1491
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
1475
1492
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -1485,7 +1502,7 @@ export declare enum ModCallbackCustom {
1485
1502
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
1486
1503
  * ```
1487
1504
  */
1488
- POST_PURCHASE = 83,
1505
+ POST_PURCHASE = 84,
1489
1506
  /**
1490
1507
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
1491
1508
  *
@@ -1499,7 +1516,7 @@ export declare enum ModCallbackCustom {
1499
1516
  * function postRockRender(rock: GridEntityRock): void {}
1500
1517
  * ```
1501
1518
  */
1502
- POST_ROCK_RENDER = 84,
1519
+ POST_ROCK_RENDER = 85,
1503
1520
  /**
1504
1521
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
1505
1522
  *
@@ -1513,7 +1530,7 @@ export declare enum ModCallbackCustom {
1513
1530
  * function postRockUpdate(rock: GridEntityRock): void {}
1514
1531
  * ```
1515
1532
  */
1516
- POST_ROCK_UPDATE = 85,
1533
+ POST_ROCK_UPDATE = 86,
1517
1534
  /**
1518
1535
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
1519
1536
  * the `Room.IsClear` method).
@@ -1530,7 +1547,7 @@ export declare enum ModCallbackCustom {
1530
1547
  * function postRoomClearChanged(roomClear: boolean): void {}
1531
1548
  * ```
1532
1549
  */
1533
- POST_ROOM_CLEAR_CHANGED = 86,
1550
+ POST_ROOM_CLEAR_CHANGED = 87,
1534
1551
  /**
1535
1552
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
1536
1553
  * Room.
@@ -1545,7 +1562,7 @@ export declare enum ModCallbackCustom {
1545
1562
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
1546
1563
  * ```
1547
1564
  */
1548
- POST_SACRIFICE = 87,
1565
+ POST_SACRIFICE = 88,
1549
1566
  /**
1550
1567
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
1551
1568
  *
@@ -1563,7 +1580,7 @@ export declare enum ModCallbackCustom {
1563
1580
  * ): void {}
1564
1581
  * ```
1565
1582
  */
1566
- POST_SLOT_ANIMATION_CHANGED = 88,
1583
+ POST_SLOT_ANIMATION_CHANGED = 89,
1567
1584
  /**
1568
1585
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
1569
1586
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -1587,7 +1604,7 @@ export declare enum ModCallbackCustom {
1587
1604
  * ): void {}
1588
1605
  * ```
1589
1606
  */
1590
- POST_SLOT_COLLISION = 89,
1607
+ POST_SLOT_COLLISION = 90,
1591
1608
  /**
1592
1609
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
1593
1610
  * destroyed or a beggar is removed.
@@ -1629,7 +1646,7 @@ export declare enum ModCallbackCustom {
1629
1646
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
1630
1647
  * ```
1631
1648
  */
1632
- POST_SLOT_DESTROYED = 90,
1649
+ POST_SLOT_DESTROYED = 91,
1633
1650
  /**
1634
1651
  * Fires when a new slot entity is initialized. Specifically, this is either:
1635
1652
  *
@@ -1648,7 +1665,7 @@ export declare enum ModCallbackCustom {
1648
1665
  * function postSlotInit(slot: Entity): void {}
1649
1666
  * ```
1650
1667
  */
1651
- POST_SLOT_INIT = 91,
1668
+ POST_SLOT_INIT = 92,
1652
1669
  /**
1653
1670
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
1654
1671
  *
@@ -1662,7 +1679,7 @@ export declare enum ModCallbackCustom {
1662
1679
  * function postSlotRender(slot: Entity): void {}
1663
1680
  * ```
1664
1681
  */
1665
- POST_SLOT_RENDER = 92,
1682
+ POST_SLOT_RENDER = 93,
1666
1683
  /**
1667
1684
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
1668
1685
  *
@@ -1676,7 +1693,7 @@ export declare enum ModCallbackCustom {
1676
1693
  * function postSlotUpdate(slot: Entity): void {}
1677
1694
  * ```
1678
1695
  */
1679
- POST_SLOT_UPDATE = 93,
1696
+ POST_SLOT_UPDATE = 94,
1680
1697
  /**
1681
1698
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
1682
1699
  *
@@ -1688,7 +1705,7 @@ export declare enum ModCallbackCustom {
1688
1705
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
1689
1706
  * ```
1690
1707
  */
1691
- POST_SPIKES_RENDER = 94,
1708
+ POST_SPIKES_RENDER = 95,
1692
1709
  /**
1693
1710
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
1694
1711
  *
@@ -1700,7 +1717,7 @@ export declare enum ModCallbackCustom {
1700
1717
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
1701
1718
  * ```
1702
1719
  */
1703
- POST_SPIKES_UPDATE = 95,
1720
+ POST_SPIKES_UPDATE = 96,
1704
1721
  /**
1705
1722
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
1706
1723
  * `EntityTear.FrameCount` is equal to 0).
@@ -1718,7 +1735,7 @@ export declare enum ModCallbackCustom {
1718
1735
  * function postTearInitLate(tear: EntityTear): void {}
1719
1736
  * ```
1720
1737
  */
1721
- POST_TEAR_INIT_LATE = 96,
1738
+ POST_TEAR_INIT_LATE = 97,
1722
1739
  /**
1723
1740
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
1724
1741
  * `EntityTear.FrameCount` is equal to 1).
@@ -1735,7 +1752,7 @@ export declare enum ModCallbackCustom {
1735
1752
  * function postTearInitVeryLate(tear: EntityTear): void {}
1736
1753
  * ```
1737
1754
  */
1738
- POST_TEAR_INIT_VERY_LATE = 97,
1755
+ POST_TEAR_INIT_VERY_LATE = 98,
1739
1756
  /**
1740
1757
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
1741
1758
  *
@@ -1747,7 +1764,7 @@ export declare enum ModCallbackCustom {
1747
1764
  * function postTNTRender(tnt: GridEntityTNT): void {}
1748
1765
  * ```
1749
1766
  */
1750
- POST_TNT_RENDER = 98,
1767
+ POST_TNT_RENDER = 99,
1751
1768
  /**
1752
1769
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
1753
1770
  *
@@ -1759,7 +1776,7 @@ export declare enum ModCallbackCustom {
1759
1776
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
1760
1777
  * ```
1761
1778
  */
1762
- POST_TNT_UPDATE = 99,
1779
+ POST_TNT_UPDATE = 100,
1763
1780
  /**
1764
1781
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
1765
1782
  * transformation.
@@ -1778,7 +1795,7 @@ export declare enum ModCallbackCustom {
1778
1795
  * ): void {}
1779
1796
  * ```
1780
1797
  */
1781
- POST_TRANSFORMATION = 100,
1798
+ POST_TRANSFORMATION = 101,
1782
1799
  /**
1783
1800
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
1784
1801
  *
@@ -1793,7 +1810,7 @@ export declare enum ModCallbackCustom {
1793
1810
  * ): void {}
1794
1811
  * ```
1795
1812
  */
1796
- POST_TRINKET_BREAK = 101,
1813
+ POST_TRINKET_BREAK = 102,
1797
1814
  /**
1798
1815
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
1799
1816
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -1809,7 +1826,7 @@ export declare enum ModCallbackCustom {
1809
1826
  * function preBerserkDeath(player: EntityPlayer): void {}
1810
1827
  * ```
1811
1828
  */
1812
- PRE_BERSERK_DEATH = 102,
1829
+ PRE_BERSERK_DEATH = 103,
1813
1830
  /**
1814
1831
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
1815
1832
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -1828,7 +1845,7 @@ export declare enum ModCallbackCustom {
1828
1845
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
1829
1846
  * ```
1830
1847
  */
1831
- PRE_CUSTOM_REVIVE = 103,
1848
+ PRE_CUSTOM_REVIVE = 104,
1832
1849
  /**
1833
1850
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
1834
1851
  * you to specify extra arguments for additional filtration.
@@ -1853,7 +1870,7 @@ export declare enum ModCallbackCustom {
1853
1870
  * ): [EntityType, int, int, int] | undefined {}
1854
1871
  * ```
1855
1872
  */
1856
- PRE_ENTITY_SPAWN_FILTER = 104,
1873
+ PRE_ENTITY_SPAWN_FILTER = 105,
1857
1874
  /**
1858
1875
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
1859
1876
  * meets all of the conditions to pick it up.
@@ -1873,7 +1890,7 @@ export declare enum ModCallbackCustom {
1873
1890
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
1874
1891
  * ```
1875
1892
  */
1876
- PRE_GET_PEDESTAL = 105,
1893
+ PRE_GET_PEDESTAL = 106,
1877
1894
  /**
1878
1895
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
1879
1896
  * the player begins to hold the item above their head).
@@ -1893,7 +1910,7 @@ export declare enum ModCallbackCustom {
1893
1910
  * ): void {}
1894
1911
  * ```
1895
1912
  */
1896
- PRE_ITEM_PICKUP = 106,
1913
+ PRE_ITEM_PICKUP = 107,
1897
1914
  /**
1898
1915
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
1899
1916
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -1907,7 +1924,7 @@ export declare enum ModCallbackCustom {
1907
1924
  * function preNewLevel(player: EntityPlayer): void {}
1908
1925
  * ```
1909
1926
  */
1910
- PRE_NEW_LEVEL = 107,
1927
+ PRE_NEW_LEVEL = 108,
1911
1928
  /**
1912
1929
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
1913
1930
  * you to specify extra arguments for additional filtration.
@@ -1928,7 +1945,7 @@ export declare enum ModCallbackCustom {
1928
1945
  * ): boolean | undefined {}
1929
1946
  * ```
1930
1947
  */
1931
- PRE_NPC_COLLISION_FILTER = 108,
1948
+ PRE_NPC_COLLISION_FILTER = 109,
1932
1949
  /**
1933
1950
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
1934
1951
  * to specify extra arguments for additional filtration.
@@ -1945,7 +1962,7 @@ export declare enum ModCallbackCustom {
1945
1962
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
1946
1963
  * ```
1947
1964
  */
1948
- PRE_NPC_UPDATE_FILTER = 109,
1965
+ PRE_NPC_UPDATE_FILTER = 110,
1949
1966
  /**
1950
1967
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
1951
1968
  * allows you to specify extra arguments for additional filtration.
@@ -1968,6 +1985,6 @@ export declare enum ModCallbackCustom {
1968
1985
  * ): [EntityType | GridEntityXMLType, int, int] | undefined {}
1969
1986
  * ```
1970
1987
  */
1971
- PRE_ROOM_ENTITY_SPAWN_FILTER = 110
1988
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 111
1972
1989
  }
1973
1990
  //# sourceMappingURL=ModCallbackCustom.d.ts.map