isaacscript-common 21.2.1 → 21.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.
Files changed (90) hide show
  1. package/dist/index.d.ts +169 -84
  2. package/dist/isaacscript-common.lua +526 -444
  3. package/dist/src/arrays/cachedEnumValues.d.ts +24 -0
  4. package/dist/src/arrays/cachedEnumValues.d.ts.map +1 -0
  5. package/dist/src/arrays/cachedEnumValues.lua +46 -0
  6. package/dist/src/callbackClasses.d.ts +1 -0
  7. package/dist/src/callbackClasses.d.ts.map +1 -1
  8. package/dist/src/callbackClasses.lua +5 -0
  9. package/dist/src/callbacks.d.ts +66 -65
  10. package/dist/src/callbacks.d.ts.map +1 -1
  11. package/dist/src/callbacks.lua +1 -0
  12. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  13. package/dist/src/classes/callbacks/PostItemDischarge.lua +3 -4
  14. package/dist/src/classes/callbacks/PostKeyboardPressed.d.ts +14 -0
  15. package/dist/src/classes/callbacks/PostKeyboardPressed.d.ts.map +1 -0
  16. package/dist/src/classes/callbacks/PostKeyboardPressed.lua +49 -0
  17. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +3 -5
  19. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +3 -5
  21. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostTransformation.lua +3 -5
  23. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +3 -4
  24. package/dist/src/classes/features/other/DebugDisplay.d.ts +91 -19
  25. package/dist/src/classes/features/other/DebugDisplay.d.ts.map +1 -1
  26. package/dist/src/classes/features/other/DebugDisplay.lua +42 -38
  27. package/dist/src/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  28. package/dist/src/classes/features/other/DeployJSONRoom.lua +3 -5
  29. package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  30. package/dist/src/classes/features/other/ModdedElementSets.lua +9 -7
  31. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  32. package/dist/src/classes/features/other/customStages/streakText.lua +3 -4
  33. package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
  34. package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +5 -7
  35. package/dist/src/enums/ModCallbackCustom.d.ts +74 -65
  36. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  37. package/dist/src/enums/ModCallbackCustom.lua +67 -65
  38. package/dist/src/functions/doors.d.ts.map +1 -1
  39. package/dist/src/functions/doors.lua +5 -6
  40. package/dist/src/functions/input.d.ts.map +1 -1
  41. package/dist/src/functions/input.lua +4 -6
  42. package/dist/src/functions/level.d.ts.map +1 -1
  43. package/dist/src/functions/level.lua +3 -5
  44. package/dist/src/functions/pills.d.ts.map +1 -1
  45. package/dist/src/functions/pills.lua +3 -5
  46. package/dist/src/functions/playerHealth.d.ts.map +1 -1
  47. package/dist/src/functions/playerHealth.lua +3 -4
  48. package/dist/src/functions/players.d.ts.map +1 -1
  49. package/dist/src/functions/players.lua +6 -7
  50. package/dist/src/functions/pocketItems.d.ts.map +1 -1
  51. package/dist/src/functions/pocketItems.lua +3 -5
  52. package/dist/src/functions/roomData.d.ts.map +1 -1
  53. package/dist/src/functions/roomData.lua +3 -6
  54. package/dist/src/functions/roomShapeWalls.lua +3 -3
  55. package/dist/src/functions/serialization.lua +3 -6
  56. package/dist/src/functions/sound.d.ts.map +1 -1
  57. package/dist/src/functions/sound.lua +3 -3
  58. package/dist/src/functions/transformations.d.ts.map +1 -1
  59. package/dist/src/functions/transformations.lua +4 -5
  60. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +5 -1
  61. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  62. package/package.json +1 -1
  63. package/src/arrays/cachedEnumValues.ts +75 -0
  64. package/src/callbackClasses.ts +1 -0
  65. package/src/callbacks.ts +1 -0
  66. package/src/classes/callbacks/PostItemDischarge.ts +2 -2
  67. package/src/classes/callbacks/PostKeyboardPressed.ts +52 -0
  68. package/src/classes/callbacks/PostPlayerChangeHealth.ts +2 -2
  69. package/src/classes/callbacks/PostPlayerChangeStat.ts +2 -2
  70. package/src/classes/callbacks/PostTransformation.ts +2 -2
  71. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +2 -2
  72. package/src/classes/features/other/DebugDisplay.ts +120 -39
  73. package/src/classes/features/other/DeployJSONRoom.ts +2 -3
  74. package/src/classes/features/other/ModdedElementSets.ts +10 -6
  75. package/src/classes/features/other/customStages/streakText.ts +2 -2
  76. package/src/classes/features/other/extraConsoleCommands/commands.ts +6 -7
  77. package/src/enums/ModCallbackCustom.ts +10 -0
  78. package/src/functions/doors.ts +7 -4
  79. package/src/functions/input.ts +3 -5
  80. package/src/functions/level.ts +2 -3
  81. package/src/functions/pills.ts +2 -4
  82. package/src/functions/playerHealth.ts +2 -2
  83. package/src/functions/players.ts +7 -6
  84. package/src/functions/pocketItems.ts +2 -3
  85. package/src/functions/roomData.ts +2 -4
  86. package/src/functions/roomShapeWalls.ts +2 -2
  87. package/src/functions/serialization.ts +4 -4
  88. package/src/functions/sound.ts +2 -1
  89. package/src/functions/transformations.ts +3 -4
  90. package/src/interfaces/private/AddCallbackParametersCustom.ts +6 -0
package/dist/index.d.ts CHANGED
@@ -280,6 +280,10 @@ declare interface AddCallbackParametersCustom {
280
280
  itemType: ItemType.TRINKET,
281
281
  trinketType?: TrinketType
282
282
  ];
283
+ [ModCallbackCustom.POST_KEYBOARD_PRESSED]: [
284
+ callback: (keyboard: Keyboard) => void,
285
+ keyboard?: Keyboard
286
+ ];
283
287
  [ModCallbackCustom.POST_KNIFE_INIT_LATE]: [
284
288
  callback: (knife: EntityKnife) => void,
285
289
  knifeVariant?: KnifeVariant,
@@ -2734,113 +2738,185 @@ declare class DebugDisplay extends Feature {
2734
2738
  * Toggles the debug display for players, which will draw text on the screen next to each player.
2735
2739
  *
2736
2740
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2741
+ *
2742
+ * @param force Optional. A boolean that represents the value to force the display to. For
2743
+ * example, you can specify true to always make the display turn on, regardless of
2744
+ * whether or not it is already on.
2737
2745
  */
2738
- togglePlayerDisplay(): void;
2746
+ togglePlayerDisplay(force?: boolean): void;
2739
2747
  /**
2740
2748
  * Toggles the debug display for tears, which will draw text on the screen next to each tear.
2741
2749
  *
2742
- * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2750
+ * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`. *
2751
+ *
2752
+ * @param force Optional. A boolean that represents the value to force the display to. For
2753
+ * example, you can specify true to always make the display turn on, regardless of
2754
+ * whether or not it is already on.
2743
2755
  */
2744
- toggleTearDisplay(): void;
2756
+ toggleTearDisplay(force?: boolean): void;
2745
2757
  /**
2746
2758
  * Toggles the debug display for familiars, which will draw text on the screen next to each
2747
2759
  * familiar.
2748
2760
  *
2749
2761
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2762
+ *
2763
+ * @param force Optional. A boolean that represents the value to force the display to. For
2764
+ * example, you can specify true to always make the display turn on, regardless of
2765
+ * whether or not it is already on.
2750
2766
  */
2751
- toggleFamiliarDisplay(): void;
2767
+ toggleFamiliarDisplay(force?: boolean): void;
2752
2768
  /**
2753
2769
  * Toggles the debug display for bombs, which will draw text on the screen next to each bomb.
2754
2770
  *
2755
2771
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2772
+ *
2773
+ * @param force Optional. A boolean that represents the value to force the display to. For
2774
+ * example, you can specify true to always make the display turn on, regardless of
2775
+ * whether or not it is already on.
2756
2776
  */
2757
- toggleBombDisplay(): void;
2777
+ toggleBombDisplay(force?: boolean): void;
2758
2778
  /**
2759
2779
  * Toggles the debug display for pickups, which will draw text on the screen next to each pickup.
2760
2780
  *
2761
2781
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2782
+ *
2783
+ * @param force Optional. A boolean that represents the value to force the display to. For
2784
+ * example, you can specify true to always make the display turn on, regardless of
2785
+ * whether or not it is already on.
2762
2786
  */
2763
- togglePickupDisplay(): void;
2787
+ togglePickupDisplay(force?: boolean): void;
2764
2788
  /**
2765
2789
  * Toggles the debug display for slots, which will draw text on the screen next to each slot.
2766
2790
  *
2767
2791
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2792
+ *
2793
+ * @param force Optional. A boolean that represents the value to force the display to. For
2794
+ * example, you can specify true to always make the display turn on, regardless of
2795
+ * whether or not it is already on.
2768
2796
  */
2769
- toggleSlotDisplay(): void;
2797
+ toggleSlotDisplay(force?: boolean): void;
2770
2798
  /**
2771
2799
  * Toggles the debug display for lasers, which will draw text on the screen next to each laser.
2772
2800
  *
2773
2801
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2802
+ *
2803
+ * @param force Optional. A boolean that represents the value to force the display to. For
2804
+ * example, you can specify true to always make the display turn on, regardless of
2805
+ * whether or not it is already on.
2774
2806
  */
2775
- toggleLaserDisplay(): void;
2807
+ toggleLaserDisplay(force?: boolean): void;
2776
2808
  /**
2777
2809
  * Toggles the debug display for knives, which will draw text on the screen next to each knife.
2778
2810
  *
2779
2811
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2812
+ *
2813
+ * @param force Optional. A boolean that represents the value to force the display to. For
2814
+ * example, you can specify true to always make the display turn on, regardless of
2815
+ * whether or not it is already on.
2780
2816
  */
2781
- toggleKnifeDisplay(): void;
2817
+ toggleKnifeDisplay(force?: boolean): void;
2782
2818
  /**
2783
2819
  * Toggles the debug display for projectiles, which will draw text on the screen next to each
2784
2820
  * projectile.
2785
2821
  *
2786
2822
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2823
+ *
2824
+ * @param force Optional. A boolean that represents the value to force the display to. For
2825
+ * example, you can specify true to always make the display turn on, regardless of
2826
+ * whether or not it is already on.
2787
2827
  */
2788
- toggleProjectileDisplay(): void;
2828
+ toggleProjectileDisplay(force?: boolean): void;
2789
2829
  /**
2790
2830
  * Toggles the debug display for effects, which will draw text on the screen next to each effect.
2791
2831
  *
2792
2832
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2833
+ *
2834
+ * @param force Optional. A boolean that represents the value to force the display to. For
2835
+ * example, you can specify true to always make the display turn on, regardless of
2836
+ * whether or not it is already on.
2793
2837
  */
2794
- toggleEffectDisplay(): void;
2838
+ toggleEffectDisplay(force?: boolean): void;
2795
2839
  /**
2796
2840
  * Toggles the debug display for NPCs, which will draw text on the screen next to each NPC.
2797
2841
  *
2798
2842
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2843
+ *
2844
+ * @param force Optional. A boolean that represents the value to force the display to. For
2845
+ * example, you can specify true to always make the display turn on, regardless of
2846
+ * whether or not it is already on.
2799
2847
  */
2800
- toggleNPCDisplay(): void;
2848
+ toggleNPCDisplay(force?: boolean): void;
2801
2849
  /**
2802
2850
  * Toggles the debug display for rocks, which will draw text on the screen next to each rock.
2803
2851
  *
2804
2852
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2853
+ *
2854
+ * @param force Optional. A boolean that represents the value to force the display to. For
2855
+ * example, you can specify true to always make the display turn on, regardless of
2856
+ * whether or not it is already on.
2805
2857
  */
2806
- toggleRockDisplay(): void;
2858
+ toggleRockDisplay(force?: boolean): void;
2807
2859
  /**
2808
2860
  * Toggles the debug display for pits, which will draw text on the screen next to each pit.
2809
2861
  *
2810
2862
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2863
+ *
2864
+ * @param force Optional. A boolean that represents the value to force the display to. For
2865
+ * example, you can specify true to always make the display turn on, regardless of
2866
+ * whether or not it is already on.
2811
2867
  */
2812
- togglePitDisplay(): void;
2868
+ togglePitDisplay(force?: boolean): void;
2813
2869
  /**
2814
2870
  * Toggles the debug display for spikes, which will draw text on the screen next to each spike.
2815
2871
  *
2816
2872
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2873
+ *
2874
+ * @param force Optional. A boolean that represents the value to force the display to. For
2875
+ * example, you can specify true to always make the display turn on, regardless of
2876
+ * whether or not it is already on.
2817
2877
  */
2818
- toggleSpikesDisplay(): void;
2878
+ toggleSpikesDisplay(force?: boolean): void;
2819
2879
  /**
2820
2880
  * Toggles the debug display for TNT, which will draw text on the screen next to each TNT.
2821
2881
  *
2822
2882
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2883
+ *
2884
+ * @param force Optional. A boolean that represents the value to force the display to. For
2885
+ * example, you can specify true to always make the display turn on, regardless of
2886
+ * whether or not it is already on.
2823
2887
  */
2824
- toggleTNTDisplay(): void;
2888
+ toggleTNTDisplay(force?: boolean): void;
2825
2889
  /**
2826
2890
  * Toggles the debug display for poops, which will draw text on the screen next to each poop.
2827
2891
  *
2828
2892
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2893
+ *
2894
+ * @param force Optional. A boolean that represents the value to force the display to. For
2895
+ * example, you can specify true to always make the display turn on, regardless of
2896
+ * whether or not it is already on.
2829
2897
  */
2830
- togglePoopDisplay(): void;
2898
+ togglePoopDisplay(force?: boolean): void;
2831
2899
  /**
2832
2900
  * Toggles the debug display for doors, which will draw text on the screen next to each door.
2833
2901
  *
2834
2902
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2903
+ *
2904
+ * @param force Optional. A boolean that represents the value to force the display to. For
2905
+ * example, you can specify true to always make the display turn on, regardless of
2906
+ * whether or not it is already on.
2835
2907
  */
2836
- toggleDoorDisplay(): void;
2908
+ toggleDoorDisplay(force?: boolean): void;
2837
2909
  /**
2838
2910
  * Toggles the debug display for pressure plates, which will draw text on the screen next to each
2839
2911
  * pressure plate.
2840
2912
  *
2841
2913
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2914
+ *
2915
+ * @param force Optional. A boolean that represents the value to force the display to. For
2916
+ * example, you can specify true to always make the display turn on, regardless of
2917
+ * whether or not it is already on.
2842
2918
  */
2843
- togglePressurePlateDisplay(): void;
2919
+ togglePressurePlateDisplay(force?: boolean): void;
2844
2920
  }
2845
2921
 
2846
2922
  /**
@@ -9557,6 +9633,15 @@ export declare enum ModCallbackCustom {
9557
9633
  * ```
9558
9634
  */
9559
9635
  POST_ITEM_PICKUP = 43,
9636
+ /**
9637
+ * Fires on the first `POST_RENDER` frame after a keyboard has been pressed (when it was not
9638
+ * pressed on the previous frame).
9639
+ *
9640
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9641
+ * - You can provide an optional third argument that will make the callback only fire if it
9642
+ * matches the `Keyboard` provided.
9643
+ */
9644
+ POST_KEYBOARD_PRESSED = 44,
9560
9645
  /**
9561
9646
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
9562
9647
  *
@@ -9573,7 +9658,7 @@ export declare enum ModCallbackCustom {
9573
9658
  * function postKnifeInitLate(knife: EntityKnife): void {}
9574
9659
  * ```
9575
9660
  */
9576
- POST_KNIFE_INIT_LATE = 44,
9661
+ POST_KNIFE_INIT_LATE = 45,
9577
9662
  /**
9578
9663
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
9579
9664
  *
@@ -9590,7 +9675,7 @@ export declare enum ModCallbackCustom {
9590
9675
  * function postLaserInitLate(laser: EntityLaser): void {}
9591
9676
  * ```
9592
9677
  */
9593
- POST_LASER_INIT_LATE = 45,
9678
+ POST_LASER_INIT_LATE = 46,
9594
9679
  /**
9595
9680
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9596
9681
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -9607,7 +9692,7 @@ export declare enum ModCallbackCustom {
9607
9692
  * function postNewLevelReordered(): void {}
9608
9693
  * ```
9609
9694
  */
9610
- POST_NEW_LEVEL_REORDERED = 46,
9695
+ POST_NEW_LEVEL_REORDERED = 47,
9611
9696
  /**
9612
9697
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
9613
9698
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -9618,7 +9703,7 @@ export declare enum ModCallbackCustom {
9618
9703
  * function postNewRoomEarly(): void {}
9619
9704
  * ```
9620
9705
  */
9621
- POST_NEW_ROOM_EARLY = 47,
9706
+ POST_NEW_ROOM_EARLY = 48,
9622
9707
  /**
9623
9708
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9624
9709
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -9635,7 +9720,7 @@ export declare enum ModCallbackCustom {
9635
9720
  * function postNewRoomReordered(): void {}
9636
9721
  * ```
9637
9722
  */
9638
- POST_NEW_ROOM_REORDERED = 48,
9723
+ POST_NEW_ROOM_REORDERED = 49,
9639
9724
  /**
9640
9725
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
9641
9726
  * to specify extra arguments for additional filtration.
@@ -9652,7 +9737,7 @@ export declare enum ModCallbackCustom {
9652
9737
  * function postNPCDeathFilter(npc: EntityNPC): void {}
9653
9738
  * ```
9654
9739
  */
9655
- POST_NPC_DEATH_FILTER = 49,
9740
+ POST_NPC_DEATH_FILTER = 50,
9656
9741
  /**
9657
9742
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
9658
9743
  * to specify extra arguments for additional filtration.
@@ -9669,7 +9754,7 @@ export declare enum ModCallbackCustom {
9669
9754
  * function postNPCInitFilter(npc: EntityNPC): void {}
9670
9755
  * ```
9671
9756
  */
9672
- POST_NPC_INIT_FILTER = 50,
9757
+ POST_NPC_INIT_FILTER = 51,
9673
9758
  /**
9674
9759
  * Fires on the first `NPC_UPDATE` frame for each NPC.
9675
9760
  *
@@ -9688,7 +9773,7 @@ export declare enum ModCallbackCustom {
9688
9773
  * function postNPCInitLate(npc: EntityNPC): void {}
9689
9774
  * ```
9690
9775
  */
9691
- POST_NPC_INIT_LATE = 51,
9776
+ POST_NPC_INIT_LATE = 52,
9692
9777
  /**
9693
9778
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
9694
9779
  * to specify extra arguments for additional filtration.
@@ -9705,7 +9790,7 @@ export declare enum ModCallbackCustom {
9705
9790
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
9706
9791
  * ```
9707
9792
  */
9708
- POST_NPC_RENDER_FILTER = 52,
9793
+ POST_NPC_RENDER_FILTER = 53,
9709
9794
  /**
9710
9795
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
9711
9796
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -9726,7 +9811,7 @@ export declare enum ModCallbackCustom {
9726
9811
  * ): void {}
9727
9812
  * ```
9728
9813
  */
9729
- POST_NPC_STATE_CHANGED = 53,
9814
+ POST_NPC_STATE_CHANGED = 54,
9730
9815
  /**
9731
9816
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
9732
9817
  * to specify extra arguments for additional filtration.
@@ -9743,7 +9828,7 @@ export declare enum ModCallbackCustom {
9743
9828
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
9744
9829
  * ```
9745
9830
  */
9746
- POST_NPC_UPDATE_FILTER = 54,
9831
+ POST_NPC_UPDATE_FILTER = 55,
9747
9832
  /**
9748
9833
  * Similar to the vanilla callback of the same name, but fires after the
9749
9834
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9768,7 +9853,7 @@ export declare enum ModCallbackCustom {
9768
9853
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
9769
9854
  * ```
9770
9855
  */
9771
- POST_PEFFECT_UPDATE_REORDERED = 55,
9856
+ POST_PEFFECT_UPDATE_REORDERED = 56,
9772
9857
  /**
9773
9858
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
9774
9859
  *
@@ -9787,7 +9872,7 @@ export declare enum ModCallbackCustom {
9787
9872
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
9788
9873
  * ```
9789
9874
  */
9790
- POST_PICKUP_COLLECT = 56,
9875
+ POST_PICKUP_COLLECT = 57,
9791
9876
  /**
9792
9877
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
9793
9878
  * you to specify extra arguments for additional filtration.
@@ -9802,7 +9887,7 @@ export declare enum ModCallbackCustom {
9802
9887
  * function postPickupInitFilter(pickup: EntityPickup): void {}
9803
9888
  * ```
9804
9889
  */
9805
- POST_PICKUP_INIT_FILTER = 57,
9890
+ POST_PICKUP_INIT_FILTER = 58,
9806
9891
  /**
9807
9892
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
9808
9893
  * respective pickup on the run.
@@ -9820,7 +9905,7 @@ export declare enum ModCallbackCustom {
9820
9905
  * function postPickupInitFirst(pickup: EntityPickup): void {}
9821
9906
  * ```
9822
9907
  */
9823
- POST_PICKUP_INIT_FIRST = 58,
9908
+ POST_PICKUP_INIT_FIRST = 59,
9824
9909
  /**
9825
9910
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
9826
9911
  *
@@ -9837,7 +9922,7 @@ export declare enum ModCallbackCustom {
9837
9922
  * function postPickupInitLate(pickup: EntityPickup): void {}
9838
9923
  * ```
9839
9924
  */
9840
- POST_PICKUP_INIT_LATE = 59,
9925
+ POST_PICKUP_INIT_LATE = 60,
9841
9926
  /**
9842
9927
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
9843
9928
  * you to specify extra arguments for additional filtration.
@@ -9852,7 +9937,7 @@ export declare enum ModCallbackCustom {
9852
9937
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
9853
9938
  * ```
9854
9939
  */
9855
- POST_PICKUP_RENDER_FILTER = 60,
9940
+ POST_PICKUP_RENDER_FILTER = 61,
9856
9941
  /**
9857
9942
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
9858
9943
  * allows you to specify extra arguments for additional filtration.
@@ -9871,7 +9956,7 @@ export declare enum ModCallbackCustom {
9871
9956
  * ): [PickupVariant, int] | undefined {}
9872
9957
  * ```
9873
9958
  */
9874
- POST_PICKUP_SELECTION_FILTER = 61,
9959
+ POST_PICKUP_SELECTION_FILTER = 62,
9875
9960
  /**
9876
9961
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
9877
9962
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -9890,7 +9975,7 @@ export declare enum ModCallbackCustom {
9890
9975
  * ): void {}
9891
9976
  * ```
9892
9977
  */
9893
- POST_PICKUP_STATE_CHANGED = 62,
9978
+ POST_PICKUP_STATE_CHANGED = 63,
9894
9979
  /**
9895
9980
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
9896
9981
  * you to specify extra arguments for additional filtration.
@@ -9905,7 +9990,7 @@ export declare enum ModCallbackCustom {
9905
9990
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
9906
9991
  * ```
9907
9992
  */
9908
- POST_PICKUP_UPDATE_FILTER = 63,
9993
+ POST_PICKUP_UPDATE_FILTER = 64,
9909
9994
  /**
9910
9995
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
9911
9996
  *
@@ -9917,7 +10002,7 @@ export declare enum ModCallbackCustom {
9917
10002
  * function postPitRender(pit: GridEntityPit): void {}
9918
10003
  * ```
9919
10004
  */
9920
- POST_PIT_RENDER = 64,
10005
+ POST_PIT_RENDER = 65,
9921
10006
  /**
9922
10007
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
9923
10008
  *
@@ -9929,7 +10014,7 @@ export declare enum ModCallbackCustom {
9929
10014
  * function postPitUpdate(pit: GridEntityPit): void {}
9930
10015
  * ```
9931
10016
  */
9932
- POST_PIT_UPDATE = 65,
10017
+ POST_PIT_UPDATE = 66,
9933
10018
  /**
9934
10019
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
9935
10020
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -9951,7 +10036,7 @@ export declare enum ModCallbackCustom {
9951
10036
  * ): void {}
9952
10037
  * ```
9953
10038
  */
9954
- POST_PLAYER_CHANGE_HEALTH = 66,
10039
+ POST_PLAYER_CHANGE_HEALTH = 67,
9955
10040
  /**
9956
10041
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
9957
10042
  * from what they were on the previous frame.
@@ -9981,7 +10066,7 @@ export declare enum ModCallbackCustom {
9981
10066
  * ) => void {}
9982
10067
  * ```
9983
10068
  */
9984
- POST_PLAYER_CHANGE_STAT = 67,
10069
+ POST_PLAYER_CHANGE_STAT = 68,
9985
10070
  /**
9986
10071
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
9987
10072
  * type
@@ -10004,7 +10089,7 @@ export declare enum ModCallbackCustom {
10004
10089
  * ): void {}
10005
10090
  * ```
10006
10091
  */
10007
- POST_PLAYER_CHANGE_TYPE = 68,
10092
+ POST_PLAYER_CHANGE_TYPE = 69,
10008
10093
  /**
10009
10094
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10010
10095
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -10021,7 +10106,7 @@ export declare enum ModCallbackCustom {
10021
10106
  * ): void {}
10022
10107
  * ```
10023
10108
  */
10024
- POST_PLAYER_COLLECTIBLE_ADDED = 69,
10109
+ POST_PLAYER_COLLECTIBLE_ADDED = 70,
10025
10110
  /**
10026
10111
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10027
10112
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -10038,7 +10123,7 @@ export declare enum ModCallbackCustom {
10038
10123
  * ): void {}
10039
10124
  * ```
10040
10125
  */
10041
- POST_PLAYER_COLLECTIBLE_REMOVED = 70,
10126
+ POST_PLAYER_COLLECTIBLE_REMOVED = 71,
10042
10127
  /**
10043
10128
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
10044
10129
  * prevent the fatal damage.
@@ -10056,7 +10141,7 @@ export declare enum ModCallbackCustom {
10056
10141
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
10057
10142
  * ```
10058
10143
  */
10059
- POST_PLAYER_FATAL_DAMAGE = 71,
10144
+ POST_PLAYER_FATAL_DAMAGE = 72,
10060
10145
  /**
10061
10146
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
10062
10147
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -10078,7 +10163,7 @@ export declare enum ModCallbackCustom {
10078
10163
  * function postPlayerInitFirst(player: EntityPlayer): void {}
10079
10164
  * ```
10080
10165
  */
10081
- POST_PLAYER_INIT_FIRST = 72,
10166
+ POST_PLAYER_INIT_FIRST = 73,
10082
10167
  /**
10083
10168
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
10084
10169
  *
@@ -10098,7 +10183,7 @@ export declare enum ModCallbackCustom {
10098
10183
  * function postPlayerInitLate(pickup: EntityPickup): void {}
10099
10184
  * ```
10100
10185
  */
10101
- POST_PLAYER_INIT_LATE = 73,
10186
+ POST_PLAYER_INIT_LATE = 74,
10102
10187
  /**
10103
10188
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
10104
10189
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -10122,7 +10207,7 @@ export declare enum ModCallbackCustom {
10122
10207
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
10123
10208
  * ```
10124
10209
  */
10125
- POST_PLAYER_RENDER_REORDERED = 74,
10210
+ POST_PLAYER_RENDER_REORDERED = 75,
10126
10211
  /**
10127
10212
  * Similar to the vanilla callback of the same name, but fires after the
10128
10213
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10147,7 +10232,7 @@ export declare enum ModCallbackCustom {
10147
10232
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
10148
10233
  * ```
10149
10234
  */
10150
- POST_PLAYER_UPDATE_REORDERED = 75,
10235
+ POST_PLAYER_UPDATE_REORDERED = 76,
10151
10236
  /**
10152
10237
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
10153
10238
  *
@@ -10159,7 +10244,7 @@ export declare enum ModCallbackCustom {
10159
10244
  * function postPoopRender(poop: GridEntityPoop): void {}
10160
10245
  * ```
10161
10246
  */
10162
- POST_POOP_RENDER = 76,
10247
+ POST_POOP_RENDER = 77,
10163
10248
  /**
10164
10249
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
10165
10250
  *
@@ -10171,7 +10256,7 @@ export declare enum ModCallbackCustom {
10171
10256
  * function postPoopUpdate(poop: GridEntityPoop): void {}
10172
10257
  * ```
10173
10258
  */
10174
- POST_POOP_UPDATE = 77,
10259
+ POST_POOP_UPDATE = 78,
10175
10260
  /**
10176
10261
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
10177
10262
  *
@@ -10183,7 +10268,7 @@ export declare enum ModCallbackCustom {
10183
10268
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
10184
10269
  * ```
10185
10270
  */
10186
- POST_PRESSURE_PLATE_RENDER = 78,
10271
+ POST_PRESSURE_PLATE_RENDER = 79,
10187
10272
  /**
10188
10273
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
10189
10274
  *
@@ -10195,7 +10280,7 @@ export declare enum ModCallbackCustom {
10195
10280
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
10196
10281
  * ```
10197
10282
  */
10198
- POST_PRESSURE_PLATE_UPDATE = 79,
10283
+ POST_PRESSURE_PLATE_UPDATE = 80,
10199
10284
  /**
10200
10285
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
10201
10286
  *
@@ -10212,7 +10297,7 @@ export declare enum ModCallbackCustom {
10212
10297
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
10213
10298
  * ```
10214
10299
  */
10215
- POST_PROJECTILE_INIT_LATE = 80,
10300
+ POST_PROJECTILE_INIT_LATE = 81,
10216
10301
  /**
10217
10302
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
10218
10303
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -10228,7 +10313,7 @@ export declare enum ModCallbackCustom {
10228
10313
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
10229
10314
  * ```
10230
10315
  */
10231
- POST_PURCHASE = 81,
10316
+ POST_PURCHASE = 82,
10232
10317
  /**
10233
10318
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
10234
10319
  *
@@ -10242,7 +10327,7 @@ export declare enum ModCallbackCustom {
10242
10327
  * function postRockRender(rock: GridEntityRock): void {}
10243
10328
  * ```
10244
10329
  */
10245
- POST_ROCK_RENDER = 82,
10330
+ POST_ROCK_RENDER = 83,
10246
10331
  /**
10247
10332
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
10248
10333
  *
@@ -10256,7 +10341,7 @@ export declare enum ModCallbackCustom {
10256
10341
  * function postRockUpdate(rock: GridEntityRock): void {}
10257
10342
  * ```
10258
10343
  */
10259
- POST_ROCK_UPDATE = 83,
10344
+ POST_ROCK_UPDATE = 84,
10260
10345
  /**
10261
10346
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
10262
10347
  * the `Room.IsClear` method).
@@ -10273,7 +10358,7 @@ export declare enum ModCallbackCustom {
10273
10358
  * function postRoomClearChanged(roomClear: boolean): void {}
10274
10359
  * ```
10275
10360
  */
10276
- POST_ROOM_CLEAR_CHANGED = 84,
10361
+ POST_ROOM_CLEAR_CHANGED = 85,
10277
10362
  /**
10278
10363
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
10279
10364
  * Room.
@@ -10288,7 +10373,7 @@ export declare enum ModCallbackCustom {
10288
10373
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
10289
10374
  * ```
10290
10375
  */
10291
- POST_SACRIFICE = 85,
10376
+ POST_SACRIFICE = 86,
10292
10377
  /**
10293
10378
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
10294
10379
  *
@@ -10306,7 +10391,7 @@ export declare enum ModCallbackCustom {
10306
10391
  * ): void {}
10307
10392
  * ```
10308
10393
  */
10309
- POST_SLOT_ANIMATION_CHANGED = 86,
10394
+ POST_SLOT_ANIMATION_CHANGED = 87,
10310
10395
  /**
10311
10396
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
10312
10397
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -10330,7 +10415,7 @@ export declare enum ModCallbackCustom {
10330
10415
  * ): void {}
10331
10416
  * ```
10332
10417
  */
10333
- POST_SLOT_COLLISION = 87,
10418
+ POST_SLOT_COLLISION = 88,
10334
10419
  /**
10335
10420
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
10336
10421
  * destroyed or a beggar is removed.
@@ -10372,7 +10457,7 @@ export declare enum ModCallbackCustom {
10372
10457
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
10373
10458
  * ```
10374
10459
  */
10375
- POST_SLOT_DESTROYED = 88,
10460
+ POST_SLOT_DESTROYED = 89,
10376
10461
  /**
10377
10462
  * Fires when a new slot entity is initialized. Specifically, this is either:
10378
10463
  *
@@ -10391,7 +10476,7 @@ export declare enum ModCallbackCustom {
10391
10476
  * function postSlotInit(slot: Entity): void {}
10392
10477
  * ```
10393
10478
  */
10394
- POST_SLOT_INIT = 89,
10479
+ POST_SLOT_INIT = 90,
10395
10480
  /**
10396
10481
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
10397
10482
  *
@@ -10405,7 +10490,7 @@ export declare enum ModCallbackCustom {
10405
10490
  * function postSlotRender(slot: Entity): void {}
10406
10491
  * ```
10407
10492
  */
10408
- POST_SLOT_RENDER = 90,
10493
+ POST_SLOT_RENDER = 91,
10409
10494
  /**
10410
10495
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
10411
10496
  *
@@ -10419,7 +10504,7 @@ export declare enum ModCallbackCustom {
10419
10504
  * function postSlotUpdate(slot: Entity): void {}
10420
10505
  * ```
10421
10506
  */
10422
- POST_SLOT_UPDATE = 91,
10507
+ POST_SLOT_UPDATE = 92,
10423
10508
  /**
10424
10509
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
10425
10510
  *
@@ -10431,7 +10516,7 @@ export declare enum ModCallbackCustom {
10431
10516
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
10432
10517
  * ```
10433
10518
  */
10434
- POST_SPIKES_RENDER = 92,
10519
+ POST_SPIKES_RENDER = 93,
10435
10520
  /**
10436
10521
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
10437
10522
  *
@@ -10443,7 +10528,7 @@ export declare enum ModCallbackCustom {
10443
10528
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
10444
10529
  * ```
10445
10530
  */
10446
- POST_SPIKES_UPDATE = 93,
10531
+ POST_SPIKES_UPDATE = 94,
10447
10532
  /**
10448
10533
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
10449
10534
  * `EntityTear.FrameCount` is equal to 0).
@@ -10461,7 +10546,7 @@ export declare enum ModCallbackCustom {
10461
10546
  * function postTearInitLate(tear: EntityTear): void {}
10462
10547
  * ```
10463
10548
  */
10464
- POST_TEAR_INIT_LATE = 94,
10549
+ POST_TEAR_INIT_LATE = 95,
10465
10550
  /**
10466
10551
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
10467
10552
  * `EntityTear.FrameCount` is equal to 1).
@@ -10478,7 +10563,7 @@ export declare enum ModCallbackCustom {
10478
10563
  * function postTearInitVeryLate(tear: EntityTear): void {}
10479
10564
  * ```
10480
10565
  */
10481
- POST_TEAR_INIT_VERY_LATE = 95,
10566
+ POST_TEAR_INIT_VERY_LATE = 96,
10482
10567
  /**
10483
10568
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
10484
10569
  *
@@ -10490,7 +10575,7 @@ export declare enum ModCallbackCustom {
10490
10575
  * function postTNTRender(tnt: GridEntityTNT): void {}
10491
10576
  * ```
10492
10577
  */
10493
- POST_TNT_RENDER = 96,
10578
+ POST_TNT_RENDER = 97,
10494
10579
  /**
10495
10580
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
10496
10581
  *
@@ -10502,7 +10587,7 @@ export declare enum ModCallbackCustom {
10502
10587
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
10503
10588
  * ```
10504
10589
  */
10505
- POST_TNT_UPDATE = 97,
10590
+ POST_TNT_UPDATE = 98,
10506
10591
  /**
10507
10592
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
10508
10593
  * transformation.
@@ -10521,7 +10606,7 @@ export declare enum ModCallbackCustom {
10521
10606
  * ): void {}
10522
10607
  * ```
10523
10608
  */
10524
- POST_TRANSFORMATION = 98,
10609
+ POST_TRANSFORMATION = 99,
10525
10610
  /**
10526
10611
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
10527
10612
  *
@@ -10536,7 +10621,7 @@ export declare enum ModCallbackCustom {
10536
10621
  * ): void {}
10537
10622
  * ```
10538
10623
  */
10539
- POST_TRINKET_BREAK = 99,
10624
+ POST_TRINKET_BREAK = 100,
10540
10625
  /**
10541
10626
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
10542
10627
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -10552,7 +10637,7 @@ export declare enum ModCallbackCustom {
10552
10637
  * function preBerserkDeath(player: EntityPlayer): void {}
10553
10638
  * ```
10554
10639
  */
10555
- PRE_BERSERK_DEATH = 100,
10640
+ PRE_BERSERK_DEATH = 101,
10556
10641
  /**
10557
10642
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
10558
10643
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -10571,7 +10656,7 @@ export declare enum ModCallbackCustom {
10571
10656
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
10572
10657
  * ```
10573
10658
  */
10574
- PRE_CUSTOM_REVIVE = 101,
10659
+ PRE_CUSTOM_REVIVE = 102,
10575
10660
  /**
10576
10661
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
10577
10662
  * you to specify extra arguments for additional filtration.
@@ -10596,7 +10681,7 @@ export declare enum ModCallbackCustom {
10596
10681
  * ): [EntityType, int, int, int] | undefined {}
10597
10682
  * ```
10598
10683
  */
10599
- PRE_ENTITY_SPAWN_FILTER = 102,
10684
+ PRE_ENTITY_SPAWN_FILTER = 103,
10600
10685
  /**
10601
10686
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
10602
10687
  * meets all of the conditions to pick it up.
@@ -10616,7 +10701,7 @@ export declare enum ModCallbackCustom {
10616
10701
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
10617
10702
  * ```
10618
10703
  */
10619
- PRE_GET_PEDESTAL = 103,
10704
+ PRE_GET_PEDESTAL = 104,
10620
10705
  /**
10621
10706
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
10622
10707
  * the player begins to hold the item above their head).
@@ -10636,7 +10721,7 @@ export declare enum ModCallbackCustom {
10636
10721
  * ): void {}
10637
10722
  * ```
10638
10723
  */
10639
- PRE_ITEM_PICKUP = 104,
10724
+ PRE_ITEM_PICKUP = 105,
10640
10725
  /**
10641
10726
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
10642
10727
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -10650,7 +10735,7 @@ export declare enum ModCallbackCustom {
10650
10735
  * function preNewLevel(player: EntityPlayer): void {}
10651
10736
  * ```
10652
10737
  */
10653
- PRE_NEW_LEVEL = 105,
10738
+ PRE_NEW_LEVEL = 106,
10654
10739
  /**
10655
10740
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
10656
10741
  * you to specify extra arguments for additional filtration.
@@ -10671,7 +10756,7 @@ export declare enum ModCallbackCustom {
10671
10756
  * ): boolean | undefined {}
10672
10757
  * ```
10673
10758
  */
10674
- PRE_NPC_COLLISION_FILTER = 106,
10759
+ PRE_NPC_COLLISION_FILTER = 107,
10675
10760
  /**
10676
10761
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
10677
10762
  * to specify extra arguments for additional filtration.
@@ -10688,7 +10773,7 @@ export declare enum ModCallbackCustom {
10688
10773
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
10689
10774
  * ```
10690
10775
  */
10691
- PRE_NPC_UPDATE_FILTER = 107,
10776
+ PRE_NPC_UPDATE_FILTER = 108,
10692
10777
  /**
10693
10778
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
10694
10779
  * allows you to specify extra arguments for additional filtration.
@@ -10711,7 +10796,7 @@ export declare enum ModCallbackCustom {
10711
10796
  * ): [EntityType | GridEntityXMLType, int, int] | undefined {}
10712
10797
  * ```
10713
10798
  */
10714
- PRE_ROOM_ENTITY_SPAWN_FILTER = 108
10799
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 109
10715
10800
  }
10716
10801
 
10717
10802
  /**