isaacscript-common 21.2.1 → 21.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.
Files changed (90) hide show
  1. package/dist/index.d.ts +177 -84
  2. package/dist/isaacscript-common.lua +527 -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/PostKeyboardChanged.d.ts +16 -0
  15. package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -0
  16. package/dist/src/classes/callbacks/PostKeyboardChanged.lua +50 -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 +81 -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 +6 -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/PostKeyboardChanged.ts +62 -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 +17 -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 +7 -0
package/dist/index.d.ts CHANGED
@@ -280,6 +280,11 @@ declare interface AddCallbackParametersCustom {
280
280
  itemType: ItemType.TRINKET,
281
281
  trinketType?: TrinketType
282
282
  ];
283
+ [ModCallbackCustom.POST_KEYBOARD_CHANGED]: [
284
+ callback: (keyboard: Keyboard, pressed: boolean) => void,
285
+ keyboard?: Keyboard,
286
+ pressed?: boolean
287
+ ];
283
288
  [ModCallbackCustom.POST_KNIFE_INIT_LATE]: [
284
289
  callback: (knife: EntityKnife) => void,
285
290
  knifeVariant?: KnifeVariant,
@@ -2734,113 +2739,185 @@ declare class DebugDisplay extends Feature {
2734
2739
  * Toggles the debug display for players, which will draw text on the screen next to each player.
2735
2740
  *
2736
2741
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2742
+ *
2743
+ * @param force Optional. A boolean that represents the value to force the display to. For
2744
+ * example, you can specify true to always make the display turn on, regardless of
2745
+ * whether or not it is already on.
2737
2746
  */
2738
- togglePlayerDisplay(): void;
2747
+ togglePlayerDisplay(force?: boolean): void;
2739
2748
  /**
2740
2749
  * Toggles the debug display for tears, which will draw text on the screen next to each tear.
2741
2750
  *
2742
- * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2751
+ * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`. *
2752
+ *
2753
+ * @param force Optional. A boolean that represents the value to force the display to. For
2754
+ * example, you can specify true to always make the display turn on, regardless of
2755
+ * whether or not it is already on.
2743
2756
  */
2744
- toggleTearDisplay(): void;
2757
+ toggleTearDisplay(force?: boolean): void;
2745
2758
  /**
2746
2759
  * Toggles the debug display for familiars, which will draw text on the screen next to each
2747
2760
  * familiar.
2748
2761
  *
2749
2762
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2763
+ *
2764
+ * @param force Optional. A boolean that represents the value to force the display to. For
2765
+ * example, you can specify true to always make the display turn on, regardless of
2766
+ * whether or not it is already on.
2750
2767
  */
2751
- toggleFamiliarDisplay(): void;
2768
+ toggleFamiliarDisplay(force?: boolean): void;
2752
2769
  /**
2753
2770
  * Toggles the debug display for bombs, which will draw text on the screen next to each bomb.
2754
2771
  *
2755
2772
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2773
+ *
2774
+ * @param force Optional. A boolean that represents the value to force the display to. For
2775
+ * example, you can specify true to always make the display turn on, regardless of
2776
+ * whether or not it is already on.
2756
2777
  */
2757
- toggleBombDisplay(): void;
2778
+ toggleBombDisplay(force?: boolean): void;
2758
2779
  /**
2759
2780
  * Toggles the debug display for pickups, which will draw text on the screen next to each pickup.
2760
2781
  *
2761
2782
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2783
+ *
2784
+ * @param force Optional. A boolean that represents the value to force the display to. For
2785
+ * example, you can specify true to always make the display turn on, regardless of
2786
+ * whether or not it is already on.
2762
2787
  */
2763
- togglePickupDisplay(): void;
2788
+ togglePickupDisplay(force?: boolean): void;
2764
2789
  /**
2765
2790
  * Toggles the debug display for slots, which will draw text on the screen next to each slot.
2766
2791
  *
2767
2792
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2793
+ *
2794
+ * @param force Optional. A boolean that represents the value to force the display to. For
2795
+ * example, you can specify true to always make the display turn on, regardless of
2796
+ * whether or not it is already on.
2768
2797
  */
2769
- toggleSlotDisplay(): void;
2798
+ toggleSlotDisplay(force?: boolean): void;
2770
2799
  /**
2771
2800
  * Toggles the debug display for lasers, which will draw text on the screen next to each laser.
2772
2801
  *
2773
2802
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2803
+ *
2804
+ * @param force Optional. A boolean that represents the value to force the display to. For
2805
+ * example, you can specify true to always make the display turn on, regardless of
2806
+ * whether or not it is already on.
2774
2807
  */
2775
- toggleLaserDisplay(): void;
2808
+ toggleLaserDisplay(force?: boolean): void;
2776
2809
  /**
2777
2810
  * Toggles the debug display for knives, which will draw text on the screen next to each knife.
2778
2811
  *
2779
2812
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2813
+ *
2814
+ * @param force Optional. A boolean that represents the value to force the display to. For
2815
+ * example, you can specify true to always make the display turn on, regardless of
2816
+ * whether or not it is already on.
2780
2817
  */
2781
- toggleKnifeDisplay(): void;
2818
+ toggleKnifeDisplay(force?: boolean): void;
2782
2819
  /**
2783
2820
  * Toggles the debug display for projectiles, which will draw text on the screen next to each
2784
2821
  * projectile.
2785
2822
  *
2786
2823
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2824
+ *
2825
+ * @param force Optional. A boolean that represents the value to force the display to. For
2826
+ * example, you can specify true to always make the display turn on, regardless of
2827
+ * whether or not it is already on.
2787
2828
  */
2788
- toggleProjectileDisplay(): void;
2829
+ toggleProjectileDisplay(force?: boolean): void;
2789
2830
  /**
2790
2831
  * Toggles the debug display for effects, which will draw text on the screen next to each effect.
2791
2832
  *
2792
2833
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2834
+ *
2835
+ * @param force Optional. A boolean that represents the value to force the display to. For
2836
+ * example, you can specify true to always make the display turn on, regardless of
2837
+ * whether or not it is already on.
2793
2838
  */
2794
- toggleEffectDisplay(): void;
2839
+ toggleEffectDisplay(force?: boolean): void;
2795
2840
  /**
2796
2841
  * Toggles the debug display for NPCs, which will draw text on the screen next to each NPC.
2797
2842
  *
2798
2843
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2844
+ *
2845
+ * @param force Optional. A boolean that represents the value to force the display to. For
2846
+ * example, you can specify true to always make the display turn on, regardless of
2847
+ * whether or not it is already on.
2799
2848
  */
2800
- toggleNPCDisplay(): void;
2849
+ toggleNPCDisplay(force?: boolean): void;
2801
2850
  /**
2802
2851
  * Toggles the debug display for rocks, which will draw text on the screen next to each rock.
2803
2852
  *
2804
2853
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2854
+ *
2855
+ * @param force Optional. A boolean that represents the value to force the display to. For
2856
+ * example, you can specify true to always make the display turn on, regardless of
2857
+ * whether or not it is already on.
2805
2858
  */
2806
- toggleRockDisplay(): void;
2859
+ toggleRockDisplay(force?: boolean): void;
2807
2860
  /**
2808
2861
  * Toggles the debug display for pits, which will draw text on the screen next to each pit.
2809
2862
  *
2810
2863
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2864
+ *
2865
+ * @param force Optional. A boolean that represents the value to force the display to. For
2866
+ * example, you can specify true to always make the display turn on, regardless of
2867
+ * whether or not it is already on.
2811
2868
  */
2812
- togglePitDisplay(): void;
2869
+ togglePitDisplay(force?: boolean): void;
2813
2870
  /**
2814
2871
  * Toggles the debug display for spikes, which will draw text on the screen next to each spike.
2815
2872
  *
2816
2873
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2874
+ *
2875
+ * @param force Optional. A boolean that represents the value to force the display to. For
2876
+ * example, you can specify true to always make the display turn on, regardless of
2877
+ * whether or not it is already on.
2817
2878
  */
2818
- toggleSpikesDisplay(): void;
2879
+ toggleSpikesDisplay(force?: boolean): void;
2819
2880
  /**
2820
2881
  * Toggles the debug display for TNT, which will draw text on the screen next to each TNT.
2821
2882
  *
2822
2883
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2884
+ *
2885
+ * @param force Optional. A boolean that represents the value to force the display to. For
2886
+ * example, you can specify true to always make the display turn on, regardless of
2887
+ * whether or not it is already on.
2823
2888
  */
2824
- toggleTNTDisplay(): void;
2889
+ toggleTNTDisplay(force?: boolean): void;
2825
2890
  /**
2826
2891
  * Toggles the debug display for poops, which will draw text on the screen next to each poop.
2827
2892
  *
2828
2893
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2894
+ *
2895
+ * @param force Optional. A boolean that represents the value to force the display to. For
2896
+ * example, you can specify true to always make the display turn on, regardless of
2897
+ * whether or not it is already on.
2829
2898
  */
2830
- togglePoopDisplay(): void;
2899
+ togglePoopDisplay(force?: boolean): void;
2831
2900
  /**
2832
2901
  * Toggles the debug display for doors, which will draw text on the screen next to each door.
2833
2902
  *
2834
2903
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2904
+ *
2905
+ * @param force Optional. A boolean that represents the value to force the display to. For
2906
+ * example, you can specify true to always make the display turn on, regardless of
2907
+ * whether or not it is already on.
2835
2908
  */
2836
- toggleDoorDisplay(): void;
2909
+ toggleDoorDisplay(force?: boolean): void;
2837
2910
  /**
2838
2911
  * Toggles the debug display for pressure plates, which will draw text on the screen next to each
2839
2912
  * pressure plate.
2840
2913
  *
2841
2914
  * In order to use this function, you must upgrade your mod with `ISCFeature.DEBUG_DISPLAY`.
2915
+ *
2916
+ * @param force Optional. A boolean that represents the value to force the display to. For
2917
+ * example, you can specify true to always make the display turn on, regardless of
2918
+ * whether or not it is already on.
2842
2919
  */
2843
- togglePressurePlateDisplay(): void;
2920
+ togglePressurePlateDisplay(force?: boolean): void;
2844
2921
  }
2845
2922
 
2846
2923
  /**
@@ -9557,6 +9634,22 @@ export declare enum ModCallbackCustom {
9557
9634
  * ```
9558
9635
  */
9559
9636
  POST_ITEM_PICKUP = 43,
9637
+ /**
9638
+ * Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
9639
+ * released. (In other words, the callback only fires when the "pressed" status is different than
9640
+ * what it was on the previous frame.)
9641
+ *
9642
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9643
+ * - You can provide an optional third argument that will make the callback only fire if it
9644
+ * matches the `Keyboard` provided.
9645
+ * - You can provide an optional fourth argument that will make the callback only fire if it
9646
+ * matches the pressed state provided. (`true` for pressed, `false` for released.)
9647
+ *
9648
+ * ```ts
9649
+ * function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
9650
+ * ```
9651
+ */
9652
+ POST_KEYBOARD_CHANGED = 44,
9560
9653
  /**
9561
9654
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
9562
9655
  *
@@ -9573,7 +9666,7 @@ export declare enum ModCallbackCustom {
9573
9666
  * function postKnifeInitLate(knife: EntityKnife): void {}
9574
9667
  * ```
9575
9668
  */
9576
- POST_KNIFE_INIT_LATE = 44,
9669
+ POST_KNIFE_INIT_LATE = 45,
9577
9670
  /**
9578
9671
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
9579
9672
  *
@@ -9590,7 +9683,7 @@ export declare enum ModCallbackCustom {
9590
9683
  * function postLaserInitLate(laser: EntityLaser): void {}
9591
9684
  * ```
9592
9685
  */
9593
- POST_LASER_INIT_LATE = 45,
9686
+ POST_LASER_INIT_LATE = 46,
9594
9687
  /**
9595
9688
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9596
9689
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -9607,7 +9700,7 @@ export declare enum ModCallbackCustom {
9607
9700
  * function postNewLevelReordered(): void {}
9608
9701
  * ```
9609
9702
  */
9610
- POST_NEW_LEVEL_REORDERED = 46,
9703
+ POST_NEW_LEVEL_REORDERED = 47,
9611
9704
  /**
9612
9705
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
9613
9706
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -9618,7 +9711,7 @@ export declare enum ModCallbackCustom {
9618
9711
  * function postNewRoomEarly(): void {}
9619
9712
  * ```
9620
9713
  */
9621
- POST_NEW_ROOM_EARLY = 47,
9714
+ POST_NEW_ROOM_EARLY = 48,
9622
9715
  /**
9623
9716
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9624
9717
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -9635,7 +9728,7 @@ export declare enum ModCallbackCustom {
9635
9728
  * function postNewRoomReordered(): void {}
9636
9729
  * ```
9637
9730
  */
9638
- POST_NEW_ROOM_REORDERED = 48,
9731
+ POST_NEW_ROOM_REORDERED = 49,
9639
9732
  /**
9640
9733
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
9641
9734
  * to specify extra arguments for additional filtration.
@@ -9652,7 +9745,7 @@ export declare enum ModCallbackCustom {
9652
9745
  * function postNPCDeathFilter(npc: EntityNPC): void {}
9653
9746
  * ```
9654
9747
  */
9655
- POST_NPC_DEATH_FILTER = 49,
9748
+ POST_NPC_DEATH_FILTER = 50,
9656
9749
  /**
9657
9750
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
9658
9751
  * to specify extra arguments for additional filtration.
@@ -9669,7 +9762,7 @@ export declare enum ModCallbackCustom {
9669
9762
  * function postNPCInitFilter(npc: EntityNPC): void {}
9670
9763
  * ```
9671
9764
  */
9672
- POST_NPC_INIT_FILTER = 50,
9765
+ POST_NPC_INIT_FILTER = 51,
9673
9766
  /**
9674
9767
  * Fires on the first `NPC_UPDATE` frame for each NPC.
9675
9768
  *
@@ -9688,7 +9781,7 @@ export declare enum ModCallbackCustom {
9688
9781
  * function postNPCInitLate(npc: EntityNPC): void {}
9689
9782
  * ```
9690
9783
  */
9691
- POST_NPC_INIT_LATE = 51,
9784
+ POST_NPC_INIT_LATE = 52,
9692
9785
  /**
9693
9786
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
9694
9787
  * to specify extra arguments for additional filtration.
@@ -9705,7 +9798,7 @@ export declare enum ModCallbackCustom {
9705
9798
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
9706
9799
  * ```
9707
9800
  */
9708
- POST_NPC_RENDER_FILTER = 52,
9801
+ POST_NPC_RENDER_FILTER = 53,
9709
9802
  /**
9710
9803
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
9711
9804
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -9726,7 +9819,7 @@ export declare enum ModCallbackCustom {
9726
9819
  * ): void {}
9727
9820
  * ```
9728
9821
  */
9729
- POST_NPC_STATE_CHANGED = 53,
9822
+ POST_NPC_STATE_CHANGED = 54,
9730
9823
  /**
9731
9824
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
9732
9825
  * to specify extra arguments for additional filtration.
@@ -9743,7 +9836,7 @@ export declare enum ModCallbackCustom {
9743
9836
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
9744
9837
  * ```
9745
9838
  */
9746
- POST_NPC_UPDATE_FILTER = 54,
9839
+ POST_NPC_UPDATE_FILTER = 55,
9747
9840
  /**
9748
9841
  * Similar to the vanilla callback of the same name, but fires after the
9749
9842
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9768,7 +9861,7 @@ export declare enum ModCallbackCustom {
9768
9861
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
9769
9862
  * ```
9770
9863
  */
9771
- POST_PEFFECT_UPDATE_REORDERED = 55,
9864
+ POST_PEFFECT_UPDATE_REORDERED = 56,
9772
9865
  /**
9773
9866
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
9774
9867
  *
@@ -9787,7 +9880,7 @@ export declare enum ModCallbackCustom {
9787
9880
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
9788
9881
  * ```
9789
9882
  */
9790
- POST_PICKUP_COLLECT = 56,
9883
+ POST_PICKUP_COLLECT = 57,
9791
9884
  /**
9792
9885
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
9793
9886
  * you to specify extra arguments for additional filtration.
@@ -9802,7 +9895,7 @@ export declare enum ModCallbackCustom {
9802
9895
  * function postPickupInitFilter(pickup: EntityPickup): void {}
9803
9896
  * ```
9804
9897
  */
9805
- POST_PICKUP_INIT_FILTER = 57,
9898
+ POST_PICKUP_INIT_FILTER = 58,
9806
9899
  /**
9807
9900
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
9808
9901
  * respective pickup on the run.
@@ -9820,7 +9913,7 @@ export declare enum ModCallbackCustom {
9820
9913
  * function postPickupInitFirst(pickup: EntityPickup): void {}
9821
9914
  * ```
9822
9915
  */
9823
- POST_PICKUP_INIT_FIRST = 58,
9916
+ POST_PICKUP_INIT_FIRST = 59,
9824
9917
  /**
9825
9918
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
9826
9919
  *
@@ -9837,7 +9930,7 @@ export declare enum ModCallbackCustom {
9837
9930
  * function postPickupInitLate(pickup: EntityPickup): void {}
9838
9931
  * ```
9839
9932
  */
9840
- POST_PICKUP_INIT_LATE = 59,
9933
+ POST_PICKUP_INIT_LATE = 60,
9841
9934
  /**
9842
9935
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
9843
9936
  * you to specify extra arguments for additional filtration.
@@ -9852,7 +9945,7 @@ export declare enum ModCallbackCustom {
9852
9945
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
9853
9946
  * ```
9854
9947
  */
9855
- POST_PICKUP_RENDER_FILTER = 60,
9948
+ POST_PICKUP_RENDER_FILTER = 61,
9856
9949
  /**
9857
9950
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
9858
9951
  * allows you to specify extra arguments for additional filtration.
@@ -9871,7 +9964,7 @@ export declare enum ModCallbackCustom {
9871
9964
  * ): [PickupVariant, int] | undefined {}
9872
9965
  * ```
9873
9966
  */
9874
- POST_PICKUP_SELECTION_FILTER = 61,
9967
+ POST_PICKUP_SELECTION_FILTER = 62,
9875
9968
  /**
9876
9969
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
9877
9970
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -9890,7 +9983,7 @@ export declare enum ModCallbackCustom {
9890
9983
  * ): void {}
9891
9984
  * ```
9892
9985
  */
9893
- POST_PICKUP_STATE_CHANGED = 62,
9986
+ POST_PICKUP_STATE_CHANGED = 63,
9894
9987
  /**
9895
9988
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
9896
9989
  * you to specify extra arguments for additional filtration.
@@ -9905,7 +9998,7 @@ export declare enum ModCallbackCustom {
9905
9998
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
9906
9999
  * ```
9907
10000
  */
9908
- POST_PICKUP_UPDATE_FILTER = 63,
10001
+ POST_PICKUP_UPDATE_FILTER = 64,
9909
10002
  /**
9910
10003
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
9911
10004
  *
@@ -9917,7 +10010,7 @@ export declare enum ModCallbackCustom {
9917
10010
  * function postPitRender(pit: GridEntityPit): void {}
9918
10011
  * ```
9919
10012
  */
9920
- POST_PIT_RENDER = 64,
10013
+ POST_PIT_RENDER = 65,
9921
10014
  /**
9922
10015
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
9923
10016
  *
@@ -9929,7 +10022,7 @@ export declare enum ModCallbackCustom {
9929
10022
  * function postPitUpdate(pit: GridEntityPit): void {}
9930
10023
  * ```
9931
10024
  */
9932
- POST_PIT_UPDATE = 65,
10025
+ POST_PIT_UPDATE = 66,
9933
10026
  /**
9934
10027
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
9935
10028
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -9951,7 +10044,7 @@ export declare enum ModCallbackCustom {
9951
10044
  * ): void {}
9952
10045
  * ```
9953
10046
  */
9954
- POST_PLAYER_CHANGE_HEALTH = 66,
10047
+ POST_PLAYER_CHANGE_HEALTH = 67,
9955
10048
  /**
9956
10049
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
9957
10050
  * from what they were on the previous frame.
@@ -9981,7 +10074,7 @@ export declare enum ModCallbackCustom {
9981
10074
  * ) => void {}
9982
10075
  * ```
9983
10076
  */
9984
- POST_PLAYER_CHANGE_STAT = 67,
10077
+ POST_PLAYER_CHANGE_STAT = 68,
9985
10078
  /**
9986
10079
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
9987
10080
  * type
@@ -10004,7 +10097,7 @@ export declare enum ModCallbackCustom {
10004
10097
  * ): void {}
10005
10098
  * ```
10006
10099
  */
10007
- POST_PLAYER_CHANGE_TYPE = 68,
10100
+ POST_PLAYER_CHANGE_TYPE = 69,
10008
10101
  /**
10009
10102
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10010
10103
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -10021,7 +10114,7 @@ export declare enum ModCallbackCustom {
10021
10114
  * ): void {}
10022
10115
  * ```
10023
10116
  */
10024
- POST_PLAYER_COLLECTIBLE_ADDED = 69,
10117
+ POST_PLAYER_COLLECTIBLE_ADDED = 70,
10025
10118
  /**
10026
10119
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10027
10120
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -10038,7 +10131,7 @@ export declare enum ModCallbackCustom {
10038
10131
  * ): void {}
10039
10132
  * ```
10040
10133
  */
10041
- POST_PLAYER_COLLECTIBLE_REMOVED = 70,
10134
+ POST_PLAYER_COLLECTIBLE_REMOVED = 71,
10042
10135
  /**
10043
10136
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
10044
10137
  * prevent the fatal damage.
@@ -10056,7 +10149,7 @@ export declare enum ModCallbackCustom {
10056
10149
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
10057
10150
  * ```
10058
10151
  */
10059
- POST_PLAYER_FATAL_DAMAGE = 71,
10152
+ POST_PLAYER_FATAL_DAMAGE = 72,
10060
10153
  /**
10061
10154
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
10062
10155
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -10078,7 +10171,7 @@ export declare enum ModCallbackCustom {
10078
10171
  * function postPlayerInitFirst(player: EntityPlayer): void {}
10079
10172
  * ```
10080
10173
  */
10081
- POST_PLAYER_INIT_FIRST = 72,
10174
+ POST_PLAYER_INIT_FIRST = 73,
10082
10175
  /**
10083
10176
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
10084
10177
  *
@@ -10098,7 +10191,7 @@ export declare enum ModCallbackCustom {
10098
10191
  * function postPlayerInitLate(pickup: EntityPickup): void {}
10099
10192
  * ```
10100
10193
  */
10101
- POST_PLAYER_INIT_LATE = 73,
10194
+ POST_PLAYER_INIT_LATE = 74,
10102
10195
  /**
10103
10196
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
10104
10197
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -10122,7 +10215,7 @@ export declare enum ModCallbackCustom {
10122
10215
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
10123
10216
  * ```
10124
10217
  */
10125
- POST_PLAYER_RENDER_REORDERED = 74,
10218
+ POST_PLAYER_RENDER_REORDERED = 75,
10126
10219
  /**
10127
10220
  * Similar to the vanilla callback of the same name, but fires after the
10128
10221
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10147,7 +10240,7 @@ export declare enum ModCallbackCustom {
10147
10240
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
10148
10241
  * ```
10149
10242
  */
10150
- POST_PLAYER_UPDATE_REORDERED = 75,
10243
+ POST_PLAYER_UPDATE_REORDERED = 76,
10151
10244
  /**
10152
10245
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
10153
10246
  *
@@ -10159,7 +10252,7 @@ export declare enum ModCallbackCustom {
10159
10252
  * function postPoopRender(poop: GridEntityPoop): void {}
10160
10253
  * ```
10161
10254
  */
10162
- POST_POOP_RENDER = 76,
10255
+ POST_POOP_RENDER = 77,
10163
10256
  /**
10164
10257
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
10165
10258
  *
@@ -10171,7 +10264,7 @@ export declare enum ModCallbackCustom {
10171
10264
  * function postPoopUpdate(poop: GridEntityPoop): void {}
10172
10265
  * ```
10173
10266
  */
10174
- POST_POOP_UPDATE = 77,
10267
+ POST_POOP_UPDATE = 78,
10175
10268
  /**
10176
10269
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
10177
10270
  *
@@ -10183,7 +10276,7 @@ export declare enum ModCallbackCustom {
10183
10276
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
10184
10277
  * ```
10185
10278
  */
10186
- POST_PRESSURE_PLATE_RENDER = 78,
10279
+ POST_PRESSURE_PLATE_RENDER = 79,
10187
10280
  /**
10188
10281
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
10189
10282
  *
@@ -10195,7 +10288,7 @@ export declare enum ModCallbackCustom {
10195
10288
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
10196
10289
  * ```
10197
10290
  */
10198
- POST_PRESSURE_PLATE_UPDATE = 79,
10291
+ POST_PRESSURE_PLATE_UPDATE = 80,
10199
10292
  /**
10200
10293
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
10201
10294
  *
@@ -10212,7 +10305,7 @@ export declare enum ModCallbackCustom {
10212
10305
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
10213
10306
  * ```
10214
10307
  */
10215
- POST_PROJECTILE_INIT_LATE = 80,
10308
+ POST_PROJECTILE_INIT_LATE = 81,
10216
10309
  /**
10217
10310
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
10218
10311
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -10228,7 +10321,7 @@ export declare enum ModCallbackCustom {
10228
10321
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
10229
10322
  * ```
10230
10323
  */
10231
- POST_PURCHASE = 81,
10324
+ POST_PURCHASE = 82,
10232
10325
  /**
10233
10326
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
10234
10327
  *
@@ -10242,7 +10335,7 @@ export declare enum ModCallbackCustom {
10242
10335
  * function postRockRender(rock: GridEntityRock): void {}
10243
10336
  * ```
10244
10337
  */
10245
- POST_ROCK_RENDER = 82,
10338
+ POST_ROCK_RENDER = 83,
10246
10339
  /**
10247
10340
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
10248
10341
  *
@@ -10256,7 +10349,7 @@ export declare enum ModCallbackCustom {
10256
10349
  * function postRockUpdate(rock: GridEntityRock): void {}
10257
10350
  * ```
10258
10351
  */
10259
- POST_ROCK_UPDATE = 83,
10352
+ POST_ROCK_UPDATE = 84,
10260
10353
  /**
10261
10354
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
10262
10355
  * the `Room.IsClear` method).
@@ -10273,7 +10366,7 @@ export declare enum ModCallbackCustom {
10273
10366
  * function postRoomClearChanged(roomClear: boolean): void {}
10274
10367
  * ```
10275
10368
  */
10276
- POST_ROOM_CLEAR_CHANGED = 84,
10369
+ POST_ROOM_CLEAR_CHANGED = 85,
10277
10370
  /**
10278
10371
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
10279
10372
  * Room.
@@ -10288,7 +10381,7 @@ export declare enum ModCallbackCustom {
10288
10381
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
10289
10382
  * ```
10290
10383
  */
10291
- POST_SACRIFICE = 85,
10384
+ POST_SACRIFICE = 86,
10292
10385
  /**
10293
10386
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
10294
10387
  *
@@ -10306,7 +10399,7 @@ export declare enum ModCallbackCustom {
10306
10399
  * ): void {}
10307
10400
  * ```
10308
10401
  */
10309
- POST_SLOT_ANIMATION_CHANGED = 86,
10402
+ POST_SLOT_ANIMATION_CHANGED = 87,
10310
10403
  /**
10311
10404
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
10312
10405
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -10330,7 +10423,7 @@ export declare enum ModCallbackCustom {
10330
10423
  * ): void {}
10331
10424
  * ```
10332
10425
  */
10333
- POST_SLOT_COLLISION = 87,
10426
+ POST_SLOT_COLLISION = 88,
10334
10427
  /**
10335
10428
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
10336
10429
  * destroyed or a beggar is removed.
@@ -10372,7 +10465,7 @@ export declare enum ModCallbackCustom {
10372
10465
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
10373
10466
  * ```
10374
10467
  */
10375
- POST_SLOT_DESTROYED = 88,
10468
+ POST_SLOT_DESTROYED = 89,
10376
10469
  /**
10377
10470
  * Fires when a new slot entity is initialized. Specifically, this is either:
10378
10471
  *
@@ -10391,7 +10484,7 @@ export declare enum ModCallbackCustom {
10391
10484
  * function postSlotInit(slot: Entity): void {}
10392
10485
  * ```
10393
10486
  */
10394
- POST_SLOT_INIT = 89,
10487
+ POST_SLOT_INIT = 90,
10395
10488
  /**
10396
10489
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
10397
10490
  *
@@ -10405,7 +10498,7 @@ export declare enum ModCallbackCustom {
10405
10498
  * function postSlotRender(slot: Entity): void {}
10406
10499
  * ```
10407
10500
  */
10408
- POST_SLOT_RENDER = 90,
10501
+ POST_SLOT_RENDER = 91,
10409
10502
  /**
10410
10503
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
10411
10504
  *
@@ -10419,7 +10512,7 @@ export declare enum ModCallbackCustom {
10419
10512
  * function postSlotUpdate(slot: Entity): void {}
10420
10513
  * ```
10421
10514
  */
10422
- POST_SLOT_UPDATE = 91,
10515
+ POST_SLOT_UPDATE = 92,
10423
10516
  /**
10424
10517
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
10425
10518
  *
@@ -10431,7 +10524,7 @@ export declare enum ModCallbackCustom {
10431
10524
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
10432
10525
  * ```
10433
10526
  */
10434
- POST_SPIKES_RENDER = 92,
10527
+ POST_SPIKES_RENDER = 93,
10435
10528
  /**
10436
10529
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
10437
10530
  *
@@ -10443,7 +10536,7 @@ export declare enum ModCallbackCustom {
10443
10536
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
10444
10537
  * ```
10445
10538
  */
10446
- POST_SPIKES_UPDATE = 93,
10539
+ POST_SPIKES_UPDATE = 94,
10447
10540
  /**
10448
10541
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
10449
10542
  * `EntityTear.FrameCount` is equal to 0).
@@ -10461,7 +10554,7 @@ export declare enum ModCallbackCustom {
10461
10554
  * function postTearInitLate(tear: EntityTear): void {}
10462
10555
  * ```
10463
10556
  */
10464
- POST_TEAR_INIT_LATE = 94,
10557
+ POST_TEAR_INIT_LATE = 95,
10465
10558
  /**
10466
10559
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
10467
10560
  * `EntityTear.FrameCount` is equal to 1).
@@ -10478,7 +10571,7 @@ export declare enum ModCallbackCustom {
10478
10571
  * function postTearInitVeryLate(tear: EntityTear): void {}
10479
10572
  * ```
10480
10573
  */
10481
- POST_TEAR_INIT_VERY_LATE = 95,
10574
+ POST_TEAR_INIT_VERY_LATE = 96,
10482
10575
  /**
10483
10576
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
10484
10577
  *
@@ -10490,7 +10583,7 @@ export declare enum ModCallbackCustom {
10490
10583
  * function postTNTRender(tnt: GridEntityTNT): void {}
10491
10584
  * ```
10492
10585
  */
10493
- POST_TNT_RENDER = 96,
10586
+ POST_TNT_RENDER = 97,
10494
10587
  /**
10495
10588
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
10496
10589
  *
@@ -10502,7 +10595,7 @@ export declare enum ModCallbackCustom {
10502
10595
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
10503
10596
  * ```
10504
10597
  */
10505
- POST_TNT_UPDATE = 97,
10598
+ POST_TNT_UPDATE = 98,
10506
10599
  /**
10507
10600
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
10508
10601
  * transformation.
@@ -10521,7 +10614,7 @@ export declare enum ModCallbackCustom {
10521
10614
  * ): void {}
10522
10615
  * ```
10523
10616
  */
10524
- POST_TRANSFORMATION = 98,
10617
+ POST_TRANSFORMATION = 99,
10525
10618
  /**
10526
10619
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
10527
10620
  *
@@ -10536,7 +10629,7 @@ export declare enum ModCallbackCustom {
10536
10629
  * ): void {}
10537
10630
  * ```
10538
10631
  */
10539
- POST_TRINKET_BREAK = 99,
10632
+ POST_TRINKET_BREAK = 100,
10540
10633
  /**
10541
10634
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
10542
10635
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -10552,7 +10645,7 @@ export declare enum ModCallbackCustom {
10552
10645
  * function preBerserkDeath(player: EntityPlayer): void {}
10553
10646
  * ```
10554
10647
  */
10555
- PRE_BERSERK_DEATH = 100,
10648
+ PRE_BERSERK_DEATH = 101,
10556
10649
  /**
10557
10650
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
10558
10651
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -10571,7 +10664,7 @@ export declare enum ModCallbackCustom {
10571
10664
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
10572
10665
  * ```
10573
10666
  */
10574
- PRE_CUSTOM_REVIVE = 101,
10667
+ PRE_CUSTOM_REVIVE = 102,
10575
10668
  /**
10576
10669
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
10577
10670
  * you to specify extra arguments for additional filtration.
@@ -10596,7 +10689,7 @@ export declare enum ModCallbackCustom {
10596
10689
  * ): [EntityType, int, int, int] | undefined {}
10597
10690
  * ```
10598
10691
  */
10599
- PRE_ENTITY_SPAWN_FILTER = 102,
10692
+ PRE_ENTITY_SPAWN_FILTER = 103,
10600
10693
  /**
10601
10694
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
10602
10695
  * meets all of the conditions to pick it up.
@@ -10616,7 +10709,7 @@ export declare enum ModCallbackCustom {
10616
10709
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
10617
10710
  * ```
10618
10711
  */
10619
- PRE_GET_PEDESTAL = 103,
10712
+ PRE_GET_PEDESTAL = 104,
10620
10713
  /**
10621
10714
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
10622
10715
  * the player begins to hold the item above their head).
@@ -10636,7 +10729,7 @@ export declare enum ModCallbackCustom {
10636
10729
  * ): void {}
10637
10730
  * ```
10638
10731
  */
10639
- PRE_ITEM_PICKUP = 104,
10732
+ PRE_ITEM_PICKUP = 105,
10640
10733
  /**
10641
10734
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
10642
10735
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -10650,7 +10743,7 @@ export declare enum ModCallbackCustom {
10650
10743
  * function preNewLevel(player: EntityPlayer): void {}
10651
10744
  * ```
10652
10745
  */
10653
- PRE_NEW_LEVEL = 105,
10746
+ PRE_NEW_LEVEL = 106,
10654
10747
  /**
10655
10748
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
10656
10749
  * you to specify extra arguments for additional filtration.
@@ -10671,7 +10764,7 @@ export declare enum ModCallbackCustom {
10671
10764
  * ): boolean | undefined {}
10672
10765
  * ```
10673
10766
  */
10674
- PRE_NPC_COLLISION_FILTER = 106,
10767
+ PRE_NPC_COLLISION_FILTER = 107,
10675
10768
  /**
10676
10769
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
10677
10770
  * to specify extra arguments for additional filtration.
@@ -10688,7 +10781,7 @@ export declare enum ModCallbackCustom {
10688
10781
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
10689
10782
  * ```
10690
10783
  */
10691
- PRE_NPC_UPDATE_FILTER = 107,
10784
+ PRE_NPC_UPDATE_FILTER = 108,
10692
10785
  /**
10693
10786
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
10694
10787
  * allows you to specify extra arguments for additional filtration.
@@ -10711,7 +10804,7 @@ export declare enum ModCallbackCustom {
10711
10804
  * ): [EntityType | GridEntityXMLType, int, int] | undefined {}
10712
10805
  * ```
10713
10806
  */
10714
- PRE_ROOM_ENTITY_SPAWN_FILTER = 108
10807
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 109
10715
10808
  }
10716
10809
 
10717
10810
  /**