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