isaacscript-common 19.0.2 → 19.1.1

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 (44) hide show
  1. package/dist/index.d.ts +133 -47
  2. package/dist/isaacscript-common.lua +183 -51
  3. package/dist/src/callbackClasses.d.ts +4 -0
  4. package/dist/src/callbackClasses.d.ts.map +1 -1
  5. package/dist/src/callbackClasses.lua +20 -0
  6. package/dist/src/callbacks.d.ts +50 -46
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +4 -0
  9. package/dist/src/classes/callbacks/PostPickupInitFilter.d.ts +9 -0
  10. package/dist/src/classes/callbacks/PostPickupInitFilter.d.ts.map +1 -0
  11. package/dist/src/classes/callbacks/PostPickupInitFilter.lua +23 -0
  12. package/dist/src/classes/callbacks/PostPickupRenderFilter.d.ts +9 -0
  13. package/dist/src/classes/callbacks/PostPickupRenderFilter.d.ts.map +1 -0
  14. package/dist/src/classes/callbacks/PostPickupRenderFilter.lua +23 -0
  15. package/dist/src/classes/callbacks/PostPickupSelectionFilter.d.ts +9 -0
  16. package/dist/src/classes/callbacks/PostPickupSelectionFilter.d.ts.map +1 -0
  17. package/dist/src/classes/callbacks/PostPickupSelectionFilter.lua +21 -0
  18. package/dist/src/classes/callbacks/PostPickupUpdateFilter.d.ts +9 -0
  19. package/dist/src/classes/callbacks/PostPickupUpdateFilter.d.ts.map +1 -0
  20. package/dist/src/classes/callbacks/PostPickupUpdateFilter.lua +23 -0
  21. package/dist/src/enums/ModCallbackCustom.d.ts +110 -46
  22. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  23. package/dist/src/enums/ModCallbackCustom.lua +54 -46
  24. package/dist/src/functions/playerCenter.d.ts +4 -1
  25. package/dist/src/functions/playerCenter.d.ts.map +1 -1
  26. package/dist/src/functions/playerCenter.lua +7 -3
  27. package/dist/src/functions/stage.d.ts.map +1 -1
  28. package/dist/src/functions/stage.lua +1 -1
  29. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +20 -0
  30. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  31. package/dist/src/shouldFire.d.ts +1 -1
  32. package/dist/src/shouldFire.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/src/callbackClasses.ts +4 -0
  35. package/src/callbacks.ts +5 -0
  36. package/src/classes/callbacks/PostPickupInitFilter.ts +22 -0
  37. package/src/classes/callbacks/PostPickupRenderFilter.ts +22 -0
  38. package/src/classes/callbacks/PostPickupSelectionFilter.ts +24 -0
  39. package/src/classes/callbacks/PostPickupUpdateFilter.ts +22 -0
  40. package/src/enums/ModCallbackCustom.ts +68 -0
  41. package/src/functions/playerCenter.ts +4 -4
  42. package/src/functions/stage.ts +2 -1
  43. package/src/interfaces/private/AddCallbackParametersCustom.ts +28 -0
  44. package/src/shouldFire.ts +1 -0
package/dist/index.d.ts CHANGED
@@ -338,6 +338,11 @@ declare interface AddCallbackParametersCustom {
338
338
  pickupVariant?: PickupVariant,
339
339
  subType?: int
340
340
  ];
341
+ [ModCallbackCustom.POST_PICKUP_INIT_FILTER]: [
342
+ callback: (pickup: EntityPickup) => void,
343
+ pickupVariant?: PickupVariant,
344
+ subType?: int
345
+ ];
341
346
  [ModCallbackCustom.POST_PICKUP_INIT_FIRST]: [
342
347
  callback: (pickup: EntityPickup) => void,
343
348
  pickupVariant?: PickupVariant,
@@ -348,11 +353,26 @@ declare interface AddCallbackParametersCustom {
348
353
  pickupVariant?: PickupVariant,
349
354
  subType?: int
350
355
  ];
356
+ [ModCallbackCustom.POST_PICKUP_RENDER_FILTER]: [
357
+ callback: (pickup: EntityPickup, renderOffset: Vector) => void,
358
+ pickupVariant?: PickupVariant,
359
+ subType?: int
360
+ ];
361
+ [ModCallbackCustom.POST_PICKUP_SELECTION_FILTER]: [
362
+ callback: (pickup: EntityPickup, variant: PickupVariant, subType: int) => [PickupVariant, int] | undefined,
363
+ pickupVariant?: PickupVariant,
364
+ subType?: int
365
+ ];
351
366
  [ModCallbackCustom.POST_PICKUP_STATE_CHANGED]: [
352
367
  callback: (pickup: EntityPickup, previousState: int, currentState: int) => void,
353
368
  pickupVariant?: PickupVariant,
354
369
  subType?: int
355
370
  ];
371
+ [ModCallbackCustom.POST_PICKUP_UPDATE_FILTER]: [
372
+ callback: (pickup: EntityPickup) => void,
373
+ pickupVariant?: PickupVariant,
374
+ subType?: int
375
+ ];
356
376
  [ModCallbackCustom.POST_PIT_RENDER]: [
357
377
  callback: (pit: GridEntityPit) => void,
358
378
  pitVariant?: PitVariant
@@ -9605,6 +9625,21 @@ export declare enum ModCallbackCustom {
9605
9625
  * ```
9606
9626
  */
9607
9627
  POST_PICKUP_COLLECT = 56,
9628
+ /**
9629
+ * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
9630
+ * you to specify extra arguments for additional filtration.
9631
+ *
9632
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9633
+ * - You can provide an optional third argument that will make the callback only fire if it
9634
+ * matches the `PickupVariant` provided.
9635
+ * - You can provide an optional fourth argument that will make the callback only fire if it
9636
+ * matches the sub-type provided.
9637
+ *
9638
+ * ```ts
9639
+ * function postPickupInitFilter(pickup: EntityPickup): void {}
9640
+ * ```
9641
+ */
9642
+ POST_PICKUP_INIT_FILTER = 57,
9608
9643
  /**
9609
9644
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
9610
9645
  * respective pickup on the run.
@@ -9622,7 +9657,7 @@ export declare enum ModCallbackCustom {
9622
9657
  * function postPickupInitFirst(pickup: EntityPickup): void {}
9623
9658
  * ```
9624
9659
  */
9625
- POST_PICKUP_INIT_FIRST = 57,
9660
+ POST_PICKUP_INIT_FIRST = 58,
9626
9661
  /**
9627
9662
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
9628
9663
  *
@@ -9639,7 +9674,41 @@ export declare enum ModCallbackCustom {
9639
9674
  * function postPickupInitLate(pickup: EntityPickup): void {}
9640
9675
  * ```
9641
9676
  */
9642
- POST_PICKUP_INIT_LATE = 58,
9677
+ POST_PICKUP_INIT_LATE = 59,
9678
+ /**
9679
+ * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
9680
+ * you to specify extra arguments for additional filtration.
9681
+ *
9682
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9683
+ * - You can provide an optional third argument that will make the callback only fire if it
9684
+ * matches the `PickupVariant` provided.
9685
+ * - You can provide an optional fourth argument that will make the callback only fire if it
9686
+ * matches the sub-type provided.
9687
+ *
9688
+ * ```ts
9689
+ * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
9690
+ * ```
9691
+ */
9692
+ POST_PICKUP_RENDER_FILTER = 60,
9693
+ /**
9694
+ * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
9695
+ * allows you to specify extra arguments for additional filtration.
9696
+ *
9697
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9698
+ * - You can provide an optional third argument that will make the callback only fire if it
9699
+ * matches the `PickupVariant` provided.
9700
+ * - You can provide an optional fourth argument that will make the callback only fire if it
9701
+ * matches the sub-type provided.
9702
+ *
9703
+ * ```ts
9704
+ * function postPickupSelectionFilter(
9705
+ * pickup: EntityPickup,
9706
+ * variant: PickupVariant,
9707
+ * subType: int,
9708
+ * ): [PickupVariant, int] | undefined {}
9709
+ * ```
9710
+ */
9711
+ POST_PICKUP_SELECTION_FILTER = 61,
9643
9712
  /**
9644
9713
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
9645
9714
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -9658,7 +9727,22 @@ export declare enum ModCallbackCustom {
9658
9727
  * ): void {}
9659
9728
  * ```
9660
9729
  */
9661
- POST_PICKUP_STATE_CHANGED = 59,
9730
+ POST_PICKUP_STATE_CHANGED = 62,
9731
+ /**
9732
+ * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
9733
+ * you to specify extra arguments for additional filtration.
9734
+ *
9735
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9736
+ * - You can provide an optional third argument that will make the callback only fire if it
9737
+ * matches the `PickupVariant` provided.
9738
+ * - You can provide an optional fourth argument that will make the callback only fire if it
9739
+ * matches the sub-type provided.
9740
+ *
9741
+ * ```ts
9742
+ * function postPickupUpdateFilter(pickup: EntityPickup): void {}
9743
+ * ```
9744
+ */
9745
+ POST_PICKUP_UPDATE_FILTER = 63,
9662
9746
  /**
9663
9747
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
9664
9748
  *
@@ -9670,7 +9754,7 @@ export declare enum ModCallbackCustom {
9670
9754
  * function postPitRender(pit: GridEntityPit): void {}
9671
9755
  * ```
9672
9756
  */
9673
- POST_PIT_RENDER = 60,
9757
+ POST_PIT_RENDER = 64,
9674
9758
  /**
9675
9759
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
9676
9760
  *
@@ -9682,7 +9766,7 @@ export declare enum ModCallbackCustom {
9682
9766
  * function postPitUpdate(pit: GridEntityPit): void {}
9683
9767
  * ```
9684
9768
  */
9685
- POST_PIT_UPDATE = 61,
9769
+ POST_PIT_UPDATE = 65,
9686
9770
  /**
9687
9771
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
9688
9772
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -9704,7 +9788,7 @@ export declare enum ModCallbackCustom {
9704
9788
  * ): void {}
9705
9789
  * ```
9706
9790
  */
9707
- POST_PLAYER_CHANGE_HEALTH = 62,
9791
+ POST_PLAYER_CHANGE_HEALTH = 66,
9708
9792
  /**
9709
9793
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
9710
9794
  * from what they were on the previous frame.
@@ -9734,7 +9818,7 @@ export declare enum ModCallbackCustom {
9734
9818
  * ) => void {}
9735
9819
  * ```
9736
9820
  */
9737
- POST_PLAYER_CHANGE_STAT = 63,
9821
+ POST_PLAYER_CHANGE_STAT = 67,
9738
9822
  /**
9739
9823
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
9740
9824
  * type
@@ -9757,7 +9841,7 @@ export declare enum ModCallbackCustom {
9757
9841
  * ): void {}
9758
9842
  * ```
9759
9843
  */
9760
- POST_PLAYER_CHANGE_TYPE = 64,
9844
+ POST_PLAYER_CHANGE_TYPE = 68,
9761
9845
  /**
9762
9846
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
9763
9847
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -9774,7 +9858,7 @@ export declare enum ModCallbackCustom {
9774
9858
  * ): void {}
9775
9859
  * ```
9776
9860
  */
9777
- POST_PLAYER_COLLECTIBLE_ADDED = 65,
9861
+ POST_PLAYER_COLLECTIBLE_ADDED = 69,
9778
9862
  /**
9779
9863
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
9780
9864
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -9791,7 +9875,7 @@ export declare enum ModCallbackCustom {
9791
9875
  * ): void {}
9792
9876
  * ```
9793
9877
  */
9794
- POST_PLAYER_COLLECTIBLE_REMOVED = 66,
9878
+ POST_PLAYER_COLLECTIBLE_REMOVED = 70,
9795
9879
  /**
9796
9880
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
9797
9881
  * prevent the fatal damage.
@@ -9809,7 +9893,7 @@ export declare enum ModCallbackCustom {
9809
9893
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
9810
9894
  * ```
9811
9895
  */
9812
- POST_PLAYER_FATAL_DAMAGE = 67,
9896
+ POST_PLAYER_FATAL_DAMAGE = 71,
9813
9897
  /**
9814
9898
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
9815
9899
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -9831,7 +9915,7 @@ export declare enum ModCallbackCustom {
9831
9915
  * function postPlayerInitFirst(player: EntityPlayer): void {}
9832
9916
  * ```
9833
9917
  */
9834
- POST_PLAYER_INIT_FIRST = 68,
9918
+ POST_PLAYER_INIT_FIRST = 72,
9835
9919
  /**
9836
9920
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
9837
9921
  *
@@ -9851,7 +9935,7 @@ export declare enum ModCallbackCustom {
9851
9935
  * function postPlayerInitLate(pickup: EntityPickup): void {}
9852
9936
  * ```
9853
9937
  */
9854
- POST_PLAYER_INIT_LATE = 69,
9938
+ POST_PLAYER_INIT_LATE = 73,
9855
9939
  /**
9856
9940
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
9857
9941
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -9875,7 +9959,7 @@ export declare enum ModCallbackCustom {
9875
9959
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
9876
9960
  * ```
9877
9961
  */
9878
- POST_PLAYER_RENDER_REORDERED = 70,
9962
+ POST_PLAYER_RENDER_REORDERED = 74,
9879
9963
  /**
9880
9964
  * Similar to the vanilla callback of the same name, but fires after the
9881
9965
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9900,7 +9984,7 @@ export declare enum ModCallbackCustom {
9900
9984
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
9901
9985
  * ```
9902
9986
  */
9903
- POST_PLAYER_UPDATE_REORDERED = 71,
9987
+ POST_PLAYER_UPDATE_REORDERED = 75,
9904
9988
  /**
9905
9989
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
9906
9990
  *
@@ -9912,7 +9996,7 @@ export declare enum ModCallbackCustom {
9912
9996
  * function postPoopRender(poop: GridEntityPoop): void {}
9913
9997
  * ```
9914
9998
  */
9915
- POST_POOP_RENDER = 72,
9999
+ POST_POOP_RENDER = 76,
9916
10000
  /**
9917
10001
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
9918
10002
  *
@@ -9924,7 +10008,7 @@ export declare enum ModCallbackCustom {
9924
10008
  * function postPoopUpdate(poop: GridEntityPoop): void {}
9925
10009
  * ```
9926
10010
  */
9927
- POST_POOP_UPDATE = 73,
10011
+ POST_POOP_UPDATE = 77,
9928
10012
  /**
9929
10013
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
9930
10014
  *
@@ -9936,7 +10020,7 @@ export declare enum ModCallbackCustom {
9936
10020
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
9937
10021
  * ```
9938
10022
  */
9939
- POST_PRESSURE_PLATE_RENDER = 74,
10023
+ POST_PRESSURE_PLATE_RENDER = 78,
9940
10024
  /**
9941
10025
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
9942
10026
  *
@@ -9948,7 +10032,7 @@ export declare enum ModCallbackCustom {
9948
10032
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
9949
10033
  * ```
9950
10034
  */
9951
- POST_PRESSURE_PLATE_UPDATE = 75,
10035
+ POST_PRESSURE_PLATE_UPDATE = 79,
9952
10036
  /**
9953
10037
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
9954
10038
  *
@@ -9965,7 +10049,7 @@ export declare enum ModCallbackCustom {
9965
10049
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
9966
10050
  * ```
9967
10051
  */
9968
- POST_PROJECTILE_INIT_LATE = 76,
10052
+ POST_PROJECTILE_INIT_LATE = 80,
9969
10053
  /**
9970
10054
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
9971
10055
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -9981,7 +10065,7 @@ export declare enum ModCallbackCustom {
9981
10065
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
9982
10066
  * ```
9983
10067
  */
9984
- POST_PURCHASE = 77,
10068
+ POST_PURCHASE = 81,
9985
10069
  /**
9986
10070
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
9987
10071
  *
@@ -9995,7 +10079,7 @@ export declare enum ModCallbackCustom {
9995
10079
  * function postRockRender(rock: GridEntityRock): void {}
9996
10080
  * ```
9997
10081
  */
9998
- POST_ROCK_RENDER = 78,
10082
+ POST_ROCK_RENDER = 82,
9999
10083
  /**
10000
10084
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
10001
10085
  *
@@ -10009,7 +10093,7 @@ export declare enum ModCallbackCustom {
10009
10093
  * function postRockUpdate(rock: GridEntityRock): void {}
10010
10094
  * ```
10011
10095
  */
10012
- POST_ROCK_UPDATE = 79,
10096
+ POST_ROCK_UPDATE = 83,
10013
10097
  /**
10014
10098
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
10015
10099
  * the `Room.IsClear` method).
@@ -10026,7 +10110,7 @@ export declare enum ModCallbackCustom {
10026
10110
  * function postRoomClearChanged(roomClear: boolean): void {}
10027
10111
  * ```
10028
10112
  */
10029
- POST_ROOM_CLEAR_CHANGED = 80,
10113
+ POST_ROOM_CLEAR_CHANGED = 84,
10030
10114
  /**
10031
10115
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
10032
10116
  * Room.
@@ -10041,7 +10125,7 @@ export declare enum ModCallbackCustom {
10041
10125
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
10042
10126
  * ```
10043
10127
  */
10044
- POST_SACRIFICE = 81,
10128
+ POST_SACRIFICE = 85,
10045
10129
  /**
10046
10130
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
10047
10131
  *
@@ -10055,7 +10139,7 @@ export declare enum ModCallbackCustom {
10055
10139
  * function postSlotAnimationChanged(slot: Entity): void {}
10056
10140
  * ```
10057
10141
  */
10058
- POST_SLOT_ANIMATION_CHANGED = 82,
10142
+ POST_SLOT_ANIMATION_CHANGED = 86,
10059
10143
  /**
10060
10144
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
10061
10145
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -10079,7 +10163,7 @@ export declare enum ModCallbackCustom {
10079
10163
  * ): void {}
10080
10164
  * ```
10081
10165
  */
10082
- POST_SLOT_COLLISION = 83,
10166
+ POST_SLOT_COLLISION = 87,
10083
10167
  /**
10084
10168
  * Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
10085
10169
  * has broken.
@@ -10094,7 +10178,7 @@ export declare enum ModCallbackCustom {
10094
10178
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
10095
10179
  * ```
10096
10180
  */
10097
- POST_SLOT_DESTROYED = 84,
10181
+ POST_SLOT_DESTROYED = 88,
10098
10182
  /**
10099
10183
  * Fires when a new slot entity is initialized. Specifically, this is either:
10100
10184
  *
@@ -10113,7 +10197,7 @@ export declare enum ModCallbackCustom {
10113
10197
  * function postSlotInit(slot: Entity): void {}
10114
10198
  * ```
10115
10199
  */
10116
- POST_SLOT_INIT = 85,
10200
+ POST_SLOT_INIT = 89,
10117
10201
  /**
10118
10202
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
10119
10203
  *
@@ -10127,7 +10211,7 @@ export declare enum ModCallbackCustom {
10127
10211
  * function postSlotRender(slot: Entity): void {}
10128
10212
  * ```
10129
10213
  */
10130
- POST_SLOT_RENDER = 86,
10214
+ POST_SLOT_RENDER = 90,
10131
10215
  /**
10132
10216
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
10133
10217
  *
@@ -10141,7 +10225,7 @@ export declare enum ModCallbackCustom {
10141
10225
  * function postSlotUpdate(slot: Entity): void {}
10142
10226
  * ```
10143
10227
  */
10144
- POST_SLOT_UPDATE = 87,
10228
+ POST_SLOT_UPDATE = 91,
10145
10229
  /**
10146
10230
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
10147
10231
  *
@@ -10153,7 +10237,7 @@ export declare enum ModCallbackCustom {
10153
10237
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
10154
10238
  * ```
10155
10239
  */
10156
- POST_SPIKES_RENDER = 88,
10240
+ POST_SPIKES_RENDER = 92,
10157
10241
  /**
10158
10242
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
10159
10243
  *
@@ -10165,7 +10249,7 @@ export declare enum ModCallbackCustom {
10165
10249
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
10166
10250
  * ```
10167
10251
  */
10168
- POST_SPIKES_UPDATE = 89,
10252
+ POST_SPIKES_UPDATE = 93,
10169
10253
  /**
10170
10254
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
10171
10255
  * `EntityTear.FrameCount` is equal to 0).
@@ -10183,7 +10267,7 @@ export declare enum ModCallbackCustom {
10183
10267
  * function postTearInitLate(tear: EntityTear): void {}
10184
10268
  * ```
10185
10269
  */
10186
- POST_TEAR_INIT_LATE = 90,
10270
+ POST_TEAR_INIT_LATE = 94,
10187
10271
  /**
10188
10272
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
10189
10273
  * `EntityTear.FrameCount` is equal to 1).
@@ -10200,7 +10284,7 @@ export declare enum ModCallbackCustom {
10200
10284
  * function postTearInitVeryLate(tear: EntityTear): void {}
10201
10285
  * ```
10202
10286
  */
10203
- POST_TEAR_INIT_VERY_LATE = 91,
10287
+ POST_TEAR_INIT_VERY_LATE = 95,
10204
10288
  /**
10205
10289
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
10206
10290
  *
@@ -10212,7 +10296,7 @@ export declare enum ModCallbackCustom {
10212
10296
  * function postTNTRender(tnt: GridEntityTNT): void {}
10213
10297
  * ```
10214
10298
  */
10215
- POST_TNT_RENDER = 92,
10299
+ POST_TNT_RENDER = 96,
10216
10300
  /**
10217
10301
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
10218
10302
  *
@@ -10224,7 +10308,7 @@ export declare enum ModCallbackCustom {
10224
10308
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
10225
10309
  * ```
10226
10310
  */
10227
- POST_TNT_UPDATE = 93,
10311
+ POST_TNT_UPDATE = 97,
10228
10312
  /**
10229
10313
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
10230
10314
  * transformation.
@@ -10243,7 +10327,7 @@ export declare enum ModCallbackCustom {
10243
10327
  * ): void {}
10244
10328
  * ```
10245
10329
  */
10246
- POST_TRANSFORMATION = 94,
10330
+ POST_TRANSFORMATION = 98,
10247
10331
  /**
10248
10332
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
10249
10333
  *
@@ -10258,7 +10342,7 @@ export declare enum ModCallbackCustom {
10258
10342
  * ): void {}
10259
10343
  * ```
10260
10344
  */
10261
- POST_TRINKET_BREAK = 95,
10345
+ POST_TRINKET_BREAK = 99,
10262
10346
  /**
10263
10347
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
10264
10348
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -10274,7 +10358,7 @@ export declare enum ModCallbackCustom {
10274
10358
  * function preBerserkDeath(player: EntityPlayer): void {}
10275
10359
  * ```
10276
10360
  */
10277
- PRE_BERSERK_DEATH = 96,
10361
+ PRE_BERSERK_DEATH = 100,
10278
10362
  /**
10279
10363
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
10280
10364
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -10293,7 +10377,7 @@ export declare enum ModCallbackCustom {
10293
10377
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
10294
10378
  * ```
10295
10379
  */
10296
- PRE_CUSTOM_REVIVE = 97,
10380
+ PRE_CUSTOM_REVIVE = 101,
10297
10381
  /**
10298
10382
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
10299
10383
  * meets all of the conditions to pick it up.
@@ -10313,7 +10397,7 @@ export declare enum ModCallbackCustom {
10313
10397
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
10314
10398
  * ```
10315
10399
  */
10316
- PRE_GET_PEDESTAL = 98,
10400
+ PRE_GET_PEDESTAL = 102,
10317
10401
  /**
10318
10402
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
10319
10403
  * the player begins to hold the item above their head).
@@ -10333,7 +10417,7 @@ export declare enum ModCallbackCustom {
10333
10417
  * ): void {}
10334
10418
  * ```
10335
10419
  */
10336
- PRE_ITEM_PICKUP = 99,
10420
+ PRE_ITEM_PICKUP = 103,
10337
10421
  /**
10338
10422
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
10339
10423
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -10347,7 +10431,7 @@ export declare enum ModCallbackCustom {
10347
10431
  * function preNewLevel(player: EntityPlayer): void {}
10348
10432
  * ```
10349
10433
  */
10350
- PRE_NEW_LEVEL = 100,
10434
+ PRE_NEW_LEVEL = 104,
10351
10435
  /**
10352
10436
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
10353
10437
  * you to specify extra arguments for additional filtration.
@@ -10368,7 +10452,7 @@ export declare enum ModCallbackCustom {
10368
10452
  * ): boolean | undefined {}
10369
10453
  * ```
10370
10454
  */
10371
- PRE_NPC_COLLISION_FILTER = 101,
10455
+ PRE_NPC_COLLISION_FILTER = 105,
10372
10456
  /**
10373
10457
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
10374
10458
  * to specify extra arguments for additional filtration.
@@ -10385,7 +10469,7 @@ export declare enum ModCallbackCustom {
10385
10469
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
10386
10470
  * ```
10387
10471
  */
10388
- PRE_NPC_UPDATE_FILTER = 102
10472
+ PRE_NPC_UPDATE_FILTER = 106
10389
10473
  }
10390
10474
 
10391
10475
  /**
@@ -11367,8 +11451,10 @@ export declare const MOVEMENT_ACTIONS_SET: ReadonlySet<ButtonAction>;
11367
11451
  * If there is more than one player, they will be distributed around the center in a circle.
11368
11452
  *
11369
11453
  * This function emulates what happens in the vanilla game when you travel to a new floor.
11454
+ *
11455
+ * @param radius Optional. The radius of the circle. Default is 10.
11370
11456
  */
11371
- export declare function movePlayersToCenter(): void;
11457
+ export declare function movePlayersToCenter(radius?: float): void;
11372
11458
 
11373
11459
  /**
11374
11460
  * A cached version of the class returned from the `MusicManager()` constructor.