isaacscript-common 29.5.0 → 29.5.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 (50) hide show
  1. package/dist/index.rollup.d.ts +139 -223
  2. package/dist/isaacscript-common.lua +1645 -1704
  3. package/dist/src/callbackClasses.d.ts +0 -1
  4. package/dist/src/callbackClasses.d.ts.map +1 -1
  5. package/dist/src/callbackClasses.lua +0 -5
  6. package/dist/src/callbacks.d.ts +126 -127
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +0 -1
  9. package/dist/src/classes/features/other/PickupIndexCreation.d.ts +4 -0
  10. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  11. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts +6 -2
  12. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  13. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +39 -28
  14. package/dist/src/enums/ModCallbackCustom.d.ts +126 -144
  15. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  16. package/dist/src/enums/ModCallbackCustom.lua +126 -128
  17. package/dist/src/features.d.ts.map +1 -1
  18. package/dist/src/features.lua +2 -2
  19. package/dist/src/functions/collectibles.d.ts +0 -52
  20. package/dist/src/functions/collectibles.d.ts.map +1 -1
  21. package/dist/src/functions/collectibles.lua +0 -68
  22. package/dist/src/functions/playerIndex.d.ts +3 -3
  23. package/dist/src/functions/playerIndex.lua +3 -3
  24. package/dist/src/index.d.ts +0 -1
  25. package/dist/src/index.d.ts.map +1 -1
  26. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +0 -4
  27. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  28. package/dist/src/shouldFire.d.ts +0 -1
  29. package/dist/src/shouldFire.d.ts.map +1 -1
  30. package/dist/src/shouldFire.lua +0 -5
  31. package/package.json +2 -2
  32. package/src/callbackClasses.ts +0 -1
  33. package/src/callbacks.ts +0 -1
  34. package/src/classes/features/other/PickupIndexCreation.ts +4 -0
  35. package/src/classes/features/other/PreventCollectibleRotation.ts +58 -50
  36. package/src/enums/ModCallbackCustom.ts +0 -19
  37. package/src/features.ts +7 -5
  38. package/src/functions/collectibles.ts +0 -79
  39. package/src/functions/playerIndex.ts +3 -3
  40. package/src/index.ts +0 -1
  41. package/src/interfaces/private/AddCallbackParametersCustom.ts +0 -5
  42. package/src/shouldFire.ts +0 -13
  43. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts +0 -15
  44. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +0 -1
  45. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +0 -36
  46. package/dist/src/types/CollectibleIndex.d.ts +0 -18
  47. package/dist/src/types/CollectibleIndex.d.ts.map +0 -1
  48. package/dist/src/types/CollectibleIndex.lua +0 -2
  49. package/src/classes/callbacks/PostCollectibleInitFirst.ts +0 -44
  50. package/src/types/CollectibleIndex.ts +0 -17
@@ -144,10 +144,6 @@ declare interface AddCallbackParametersCustom {
144
144
  callback: (collectible: EntityPickupCollectible, oldCollectibleType: CollectibleType) => void,
145
145
  collectibleType?: CollectibleType
146
146
  ];
147
- [ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST]: [
148
- callback: (collectible: EntityPickupCollectible) => void,
149
- collectibleType?: CollectibleType
150
- ];
151
147
  [ModCallbackCustom.POST_CURSED_TELEPORT]: [
152
148
  callback: (player: EntityPlayer) => void,
153
149
  playerVariant?: PlayerVariant,
@@ -1513,24 +1509,6 @@ export declare function collectibleHasCacheFlag(collectibleOrCollectibleType: En
1513
1509
 
1514
1510
  export declare function collectibleHasTag(collectibleType: CollectibleType, tag: ItemConfigTag): boolean;
1515
1511
 
1516
- /**
1517
- * `CollectibleIndex` is a specific type of string that represents a unique identifier for a
1518
- * collectible. Mods can signify that data structures handle collectibles by using this type.
1519
- *
1520
- * For more information, see the documentation for the `getCollectibleIndex` function.
1521
- *
1522
- * For example:
1523
- *
1524
- * ```ts
1525
- * const collectiblesNameMap = new Map<CollectibleIndex, string>();
1526
- * ```
1527
- *
1528
- * This type is branded for extra type safety.
1529
- */
1530
- export declare type CollectibleIndex = string & {
1531
- readonly __collectibleIndexBrand: symbol;
1532
- };
1533
-
1534
1512
  declare class CollectibleItemPoolType extends Feature {
1535
1513
  private pickupIndexCreation;
1536
1514
  private postPickupInitCollectible;
@@ -4681,58 +4659,6 @@ export declare function getCollectibleDevilHeartPrice(collectibleOrCollectibleTy
4681
4659
  */
4682
4660
  export declare function getCollectibleGfxFilename(collectibleOrCollectibleType: EntityPickup | CollectibleType | -1): string;
4683
4661
 
4684
- /**
4685
- * Mods may have to keep track of data relating to a collectible. Finding an index for these kinds
4686
- * of data structures is difficult, since collectibles are respawned every time a player re-enters a
4687
- * room (like all other pickups), so the `PtrHash` will change.
4688
- *
4689
- * Use this function to get a unique index for a collectible to use in these data structures.
4690
- *
4691
- * If your mod is upgraded, then you should use the `getPickupIndex` function instead, as it is more
4692
- * general purpose and less prone to error (but relies on stateful tracking of pickups as the run
4693
- * progresses).
4694
- *
4695
- * Collectibles are a special case of pickups: they cannot be pushed around. (They actually can be
4696
- * pushed, but usually will stay on the same grid index.) Thus, it is possible to generate a
4697
- * somewhat reliable non-stateful index for collectibles. We use a 4-tuple of the room list index,
4698
- * the grid index of the collectible in the room, the collectible's `SubType`, and the collectible's
4699
- * `InitSeed`.
4700
- *
4701
- * Collectibles that are shifted by Tainted Isaac's mechanic will have unique collectible indexes
4702
- * because the `SubType` is different. (The collectible entities share the same `InitSeed` and
4703
- * `PtrHash`.)
4704
- *
4705
- * Collectibles that are rolled (with e.g. a D6) will have unique collectible indexes because the
4706
- * `SubType` and `InitSeed` are different. If you want to track collectibles independently of any
4707
- * rerolls, then you can use the `PtrHash` as an index instead. (The `PtrHash` will not persist
4708
- * between rooms, however.)
4709
- *
4710
- * Note that:
4711
- * - The grid index is a necessary part of the collectible index because Diplopia and Crooked Penny
4712
- * can cause two or more collectibles with the same `SubType` and `InitSeed` to exist in the same
4713
- * room.
4714
- * - This index will fail in the case where the player uses Diplopia or a successful Crooked Penny
4715
- * seven or more times in the same room, since that will cause two or more collectibles with the
4716
- * same grid index, `SubType`, and `InitSeed` to exist. (More than seven is required in non-1x1
4717
- * rooms.)
4718
- * - The `SubType` is a necessary part of the collectible index because Tainted Isaac will
4719
- * continuously cause collectibles to morph into new sub-types with the same `InitSeed`.
4720
- * - Using a collectible's position as part of the index is problematic, since players can push a
4721
- * pedestal. (Even using the grid index does not solve this problem, since it is possible in
4722
- * certain cases for collectibles to be spawned at a position that is not aligned with the grid,
4723
- * and the pedestal pushed to an adjacent tile, but this case should be extremely rare.)
4724
- * - Mega Chests spawn two collectibles on the exact same position. However, both of them will have
4725
- * a different `InitSeed`, so this is not a problem for this indexing scheme.
4726
- * - The indexing scheme used is different for collectibles that are inside of a Treasure Room or
4727
- * Boss Room, in order to handle the case of the player seeing the same collectible again in a
4728
- * post-Ascent Treasure Room or Boss Room. A 5-tuple of stage, stage type, grid index, `SubType`,
4729
- * and `InitSeed` is used in this case. (Using the room list index or the room grid index is not
4730
- * suitable for this purpose, since both of these values can change in the post-Ascent rooms.)
4731
- * Even though Treasure Rooms and Boss Rooms are grouped together in this scheme, there probably
4732
- * will not be collectibles with the same grid index, SubType, and InitSeed.
4733
- */
4734
- export declare function getCollectibleIndex(collectible: EntityPickup): CollectibleIndex;
4735
-
4736
4662
  /**
4737
4663
  * Helper function to get the initial amount of charges that a collectible has. Returns 0 if the
4738
4664
  * provided collectible type was not valid.
@@ -5855,9 +5781,9 @@ export declare function getPlayerHearts(player: EntityPlayer): int;
5855
5781
  * (1). This works even if the player does not have any Sad Onions.
5856
5782
  *
5857
5783
  * Note that by default, this returns the same index for both The Forgotten and The Soul. (Even
5858
- * though they are technically different characters, they share the same inventory and InitSeed.) If
5859
- * this is not desired, pass true for the `differentiateForgottenAndSoul` argument, and the RNG of
5860
- * Spoon Bender (3) will be used for The Soul.
5784
+ * though they are technically different characters, they share the same inventory and `InitSeed`.)
5785
+ * If this is not desired, pass true for the `differentiateForgottenAndSoul` argument, and the RNG
5786
+ * of Spoon Bender (3) will be used for The Soul.
5861
5787
  *
5862
5788
  * Also note that this index does not work in the `POST_PLAYER_INIT` function for players 2 through
5863
5789
  * 4. With that said, in almost all cases, you should be lazy-initializing your data structures in
@@ -9523,24 +9449,6 @@ export declare enum ModCallbackCustom {
9523
9449
  * ```
9524
9450
  */
9525
9451
  POST_COLLECTIBLE_EMPTY = 12,
9526
- /**
9527
- * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
9528
- * respective collectible on the run. For more details on how this is calculated, see the
9529
- * documentation for the `getCollectibleIndex` helper function.
9530
- *
9531
- * This callback is useful because collectibles will despawn upon leaving the room and respawn
9532
- * upon re-entering the room. Additionally, when playing as Tainted Isaac, the `POST_PICKUP_INIT`
9533
- * callback will fire every time the item shifts.
9534
- *
9535
- * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9536
- * - You can provide an optional third argument that will make the callback only fire if it
9537
- * matches the `CollectibleType` provided.
9538
- *
9539
- * ```ts
9540
- * function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
9541
- * ```
9542
- */
9543
- POST_COLLECTIBLE_INIT_FIRST = 13,
9544
9452
  /**
9545
9453
  * Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
9546
9454
  * begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
@@ -9556,7 +9464,7 @@ export declare enum ModCallbackCustom {
9556
9464
  * function postCursedTeleport(player: EntityPlayer): void {}
9557
9465
  * ```
9558
9466
  */
9559
- POST_CURSED_TELEPORT = 14,
9467
+ POST_CURSED_TELEPORT = 13,
9560
9468
  /**
9561
9469
  * Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
9562
9470
  * has teleported to the previous room, and is ready to play the animation for the modded revival
@@ -9574,7 +9482,7 @@ export declare enum ModCallbackCustom {
9574
9482
  * function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
9575
9483
  * ```
9576
9484
  */
9577
- POST_CUSTOM_REVIVE = 15,
9485
+ POST_CUSTOM_REVIVE = 14,
9578
9486
  /**
9579
9487
  * Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
9580
9488
  * Room floor.
@@ -9590,7 +9498,7 @@ export declare enum ModCallbackCustom {
9590
9498
  * ): void {}
9591
9499
  * ```
9592
9500
  */
9593
- POST_DICE_ROOM_ACTIVATED = 16,
9501
+ POST_DICE_ROOM_ACTIVATED = 15,
9594
9502
  /**
9595
9503
  * Fires from the `POST_RENDER` callback on every frame that a door exists.
9596
9504
  *
@@ -9602,7 +9510,7 @@ export declare enum ModCallbackCustom {
9602
9510
  * function postDoorRender(door: GridEntityDoor): void {}
9603
9511
  * ```
9604
9512
  */
9605
- POST_DOOR_RENDER = 17,
9513
+ POST_DOOR_RENDER = 16,
9606
9514
  /**
9607
9515
  * Fires from the `POST_UPDATE` callback on every frame that a door exists.
9608
9516
  *
@@ -9614,7 +9522,7 @@ export declare enum ModCallbackCustom {
9614
9522
  * function postDoorUpdate(door: GridEntityDoor): void {}
9615
9523
  * ```
9616
9524
  */
9617
- POST_DOOR_UPDATE = 18,
9525
+ POST_DOOR_UPDATE = 17,
9618
9526
  /**
9619
9527
  * The exact same thing as the vanilla `POST_EFFECT_INIT` callback, except this callback allows
9620
9528
  * you to specify extra arguments for additional filtration.
@@ -9629,7 +9537,7 @@ export declare enum ModCallbackCustom {
9629
9537
  * function postEffectInitFilter(effect: EntityEffect): void {}
9630
9538
  * ```
9631
9539
  */
9632
- POST_EFFECT_INIT_FILTER = 19,
9540
+ POST_EFFECT_INIT_FILTER = 18,
9633
9541
  /**
9634
9542
  * Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
9635
9543
  *
@@ -9646,7 +9554,7 @@ export declare enum ModCallbackCustom {
9646
9554
  * function postEffectInitLate(effect: EntityEffect): void {}
9647
9555
  * ```
9648
9556
  */
9649
- POST_EFFECT_INIT_LATE = 20,
9557
+ POST_EFFECT_INIT_LATE = 19,
9650
9558
  /**
9651
9559
  * The exact same thing as the vanilla `POST_EFFECT_RENDER` callback, except this callback allows
9652
9560
  * you to specify extra arguments for additional filtration.
@@ -9661,7 +9569,7 @@ export declare enum ModCallbackCustom {
9661
9569
  * function postEffectRenderFilter(effect: EntityEffect, renderOffset: Vector): void {}
9662
9570
  * ```
9663
9571
  */
9664
- POST_EFFECT_RENDER_FILTER = 21,
9572
+ POST_EFFECT_RENDER_FILTER = 20,
9665
9573
  /**
9666
9574
  * Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
9667
9575
  * was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
@@ -9680,7 +9588,7 @@ export declare enum ModCallbackCustom {
9680
9588
  * ): void {}
9681
9589
  * ```
9682
9590
  */
9683
- POST_EFFECT_STATE_CHANGED = 22,
9591
+ POST_EFFECT_STATE_CHANGED = 21,
9684
9592
  /**
9685
9593
  * The exact same thing as the vanilla `POST_EFFECT_UPDATE` callback, except this callback allows
9686
9594
  * you to specify extra arguments for additional filtration.
@@ -9695,7 +9603,7 @@ export declare enum ModCallbackCustom {
9695
9603
  * function postEffectUpdateFilter(effect: EntityEffect): void {}
9696
9604
  * ```
9697
9605
  */
9698
- POST_EFFECT_UPDATE_FILTER = 23,
9606
+ POST_EFFECT_UPDATE_FILTER = 22,
9699
9607
  /**
9700
9608
  * The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
9701
9609
  * you to specify extra arguments for additional filtration.
@@ -9712,7 +9620,7 @@ export declare enum ModCallbackCustom {
9712
9620
  * function postEntityKillFilter(entity: Entity): void {}
9713
9621
  * ```
9714
9622
  */
9715
- POST_ENTITY_KILL_FILTER = 24,
9623
+ POST_ENTITY_KILL_FILTER = 23,
9716
9624
  /**
9717
9625
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
9718
9626
  * updated to the new character until a game frame has passed.)
@@ -9721,7 +9629,7 @@ export declare enum ModCallbackCustom {
9721
9629
  * function postEsauJr(player: EntityPlayer): void {}
9722
9630
  * ```
9723
9631
  */
9724
- POST_ESAU_JR = 25,
9632
+ POST_ESAU_JR = 24,
9725
9633
  /**
9726
9634
  * The exact same thing as the vanilla `POST_FAMILIAR_INIT` callback, except this callback allows
9727
9635
  * you to specify extra arguments for additional filtration.
@@ -9736,7 +9644,7 @@ export declare enum ModCallbackCustom {
9736
9644
  * function postFamiliarInitFilter(familiar: EntityFamiliar): void {}
9737
9645
  * ```
9738
9646
  */
9739
- POST_FAMILIAR_INIT_FILTER = 26,
9647
+ POST_FAMILIAR_INIT_FILTER = 25,
9740
9648
  /**
9741
9649
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
9742
9650
  *
@@ -9753,7 +9661,7 @@ export declare enum ModCallbackCustom {
9753
9661
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
9754
9662
  * ```
9755
9663
  */
9756
- POST_FAMILIAR_INIT_LATE = 27,
9664
+ POST_FAMILIAR_INIT_LATE = 26,
9757
9665
  /**
9758
9666
  * The exact same thing as the vanilla `POST_FAMILIAR_RENDER` callback, except this callback
9759
9667
  * allows you to specify extra arguments for additional filtration.
@@ -9768,7 +9676,7 @@ export declare enum ModCallbackCustom {
9768
9676
  * function postFamiliarRenderFilter(familiar: EntityFamiliar, renderOffset: Vector): void {}
9769
9677
  * ```
9770
9678
  */
9771
- POST_FAMILIAR_RENDER_FILTER = 28,
9679
+ POST_FAMILIAR_RENDER_FILTER = 27,
9772
9680
  /**
9773
9681
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
9774
9682
  * was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
@@ -9788,7 +9696,7 @@ export declare enum ModCallbackCustom {
9788
9696
  * ): void {}
9789
9697
  * ```
9790
9698
  */
9791
- POST_FAMILIAR_STATE_CHANGED = 29,
9699
+ POST_FAMILIAR_STATE_CHANGED = 28,
9792
9700
  /**
9793
9701
  * The exact same thing as the vanilla `POST_FAMILIAR_UPDATE` callback, except this callback
9794
9702
  * allows you to specify extra arguments for additional filtration.
@@ -9803,7 +9711,7 @@ export declare enum ModCallbackCustom {
9803
9711
  * function postFamiliarUpdateFilter(familiar: EntityFamiliar): void {}
9804
9712
  * ```
9805
9713
  */
9806
- POST_FAMILIAR_UPDATE_FILTER = 30,
9714
+ POST_FAMILIAR_UPDATE_FILTER = 29,
9807
9715
  /**
9808
9716
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
9809
9717
  * not updated to the new character until a game frame has passed.)
@@ -9815,7 +9723,7 @@ export declare enum ModCallbackCustom {
9815
9723
  * function postFirstEsauJr(player: EntityPlayer): void {}
9816
9724
  * ```
9817
9725
  */
9818
- POST_FIRST_ESAU_JR = 31,
9726
+ POST_FIRST_ESAU_JR = 30,
9819
9727
  /**
9820
9728
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
9821
9729
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -9828,7 +9736,7 @@ export declare enum ModCallbackCustom {
9828
9736
  * function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
9829
9737
  * ```
9830
9738
  */
9831
- POST_FIRST_FLIP = 32,
9739
+ POST_FIRST_FLIP = 31,
9832
9740
  /**
9833
9741
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
9834
9742
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -9841,7 +9749,7 @@ export declare enum ModCallbackCustom {
9841
9749
  * function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
9842
9750
  * ```
9843
9751
  */
9844
- POST_FLIP = 33,
9752
+ POST_FLIP = 32,
9845
9753
  /**
9846
9754
  * The exact same thing as the vanilla `POST_GAME_END` callback, except this callback allows you
9847
9755
  * to specify extra arguments for additional filtration.
@@ -9854,7 +9762,7 @@ export declare enum ModCallbackCustom {
9854
9762
  * function postGameEndFilter(isGameOver: boolean): void {}
9855
9763
  * ```
9856
9764
  */
9857
- POST_GAME_END_FILTER = 34,
9765
+ POST_GAME_END_FILTER = 33,
9858
9766
  /**
9859
9767
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
9860
9768
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -9873,7 +9781,7 @@ export declare enum ModCallbackCustom {
9873
9781
  * function postGameStartedReordered(isContinued: boolean): void {}
9874
9782
  * ```
9875
9783
  */
9876
- POST_GAME_STARTED_REORDERED = 35,
9784
+ POST_GAME_STARTED_REORDERED = 34,
9877
9785
  /**
9878
9786
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
9879
9787
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -9892,7 +9800,7 @@ export declare enum ModCallbackCustom {
9892
9800
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
9893
9801
  * ```
9894
9802
  */
9895
- POST_GAME_STARTED_REORDERED_LAST = 36,
9803
+ POST_GAME_STARTED_REORDERED_LAST = 35,
9896
9804
  /**
9897
9805
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
9898
9806
  *
@@ -9900,7 +9808,7 @@ export declare enum ModCallbackCustom {
9900
9808
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
9901
9809
  * ```
9902
9810
  */
9903
- POST_GREED_MODE_WAVE = 37,
9811
+ POST_GREED_MODE_WAVE = 36,
9904
9812
  /**
9905
9813
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
9906
9814
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -9919,7 +9827,7 @@ export declare enum ModCallbackCustom {
9919
9827
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
9920
9828
  * ```
9921
9829
  */
9922
- POST_GRID_ENTITY_BROKEN = 38,
9830
+ POST_GRID_ENTITY_BROKEN = 37,
9923
9831
  /**
9924
9832
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
9925
9833
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -9947,7 +9855,7 @@ export declare enum ModCallbackCustom {
9947
9855
  * ): void {}
9948
9856
  * ```
9949
9857
  */
9950
- POST_GRID_ENTITY_COLLISION = 39,
9858
+ POST_GRID_ENTITY_COLLISION = 38,
9951
9859
  /**
9952
9860
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
9953
9861
  * with the `spawnCustomGridEntity` helper function.
@@ -9964,7 +9872,7 @@ export declare enum ModCallbackCustom {
9964
9872
  * ): void {}
9965
9873
  * ```
9966
9874
  */
9967
- POST_GRID_ENTITY_CUSTOM_BROKEN = 40,
9875
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 39,
9968
9876
  /**
9969
9877
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
9970
9878
  * with the `spawnCustomGridEntity` helper function.
@@ -9988,7 +9896,7 @@ export declare enum ModCallbackCustom {
9988
9896
  * ): void {}
9989
9897
  * ```
9990
9898
  */
9991
- POST_GRID_ENTITY_CUSTOM_COLLISION = 41,
9899
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 40,
9992
9900
  /**
9993
9901
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
9994
9902
  * the `spawnCustomGridEntity` helper function.
@@ -10005,7 +9913,7 @@ export declare enum ModCallbackCustom {
10005
9913
  * ): void {}
10006
9914
  * ```
10007
9915
  */
10008
- POST_GRID_ENTITY_CUSTOM_INIT = 42,
9916
+ POST_GRID_ENTITY_CUSTOM_INIT = 41,
10009
9917
  /**
10010
9918
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
10011
9919
  * with the `spawnCustomGridEntity` helper function.
@@ -10022,7 +9930,7 @@ export declare enum ModCallbackCustom {
10022
9930
  * ): void {}
10023
9931
  * ```
10024
9932
  */
10025
- POST_GRID_ENTITY_CUSTOM_REMOVE = 43,
9933
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 42,
10026
9934
  /**
10027
9935
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
10028
9936
  * with the `spawnCustomGridEntity` helper function.
@@ -10039,7 +9947,7 @@ export declare enum ModCallbackCustom {
10039
9947
  * ): void {}
10040
9948
  * ```
10041
9949
  */
10042
- POST_GRID_ENTITY_CUSTOM_RENDER = 44,
9950
+ POST_GRID_ENTITY_CUSTOM_RENDER = 43,
10043
9951
  /**
10044
9952
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
10045
9953
  * created with the `spawnCustomGridEntity` helper function.
@@ -10058,7 +9966,7 @@ export declare enum ModCallbackCustom {
10058
9966
  * ): void {}
10059
9967
  * ```
10060
9968
  */
10061
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 45,
9969
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 44,
10062
9970
  /**
10063
9971
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
10064
9972
  * with the `spawnCustomGridEntity` helper function.
@@ -10075,7 +9983,7 @@ export declare enum ModCallbackCustom {
10075
9983
  * ): void {}
10076
9984
  * ```
10077
9985
  */
10078
- POST_GRID_ENTITY_CUSTOM_UPDATE = 46,
9986
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 45,
10079
9987
  /**
10080
9988
  * Fires when a new grid entity is initialized. Specifically, this is either:
10081
9989
  *
@@ -10097,7 +10005,7 @@ export declare enum ModCallbackCustom {
10097
10005
  * function postGridEntityInit(gridEntity: GridEntity): void {}
10098
10006
  * ```
10099
10007
  */
10100
- POST_GRID_ENTITY_INIT = 47,
10008
+ POST_GRID_ENTITY_INIT = 46,
10101
10009
  /**
10102
10010
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
10103
10011
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -10122,7 +10030,7 @@ export declare enum ModCallbackCustom {
10122
10030
  * ): void {}
10123
10031
  * ```
10124
10032
  */
10125
- POST_GRID_ENTITY_REMOVE = 48,
10033
+ POST_GRID_ENTITY_REMOVE = 47,
10126
10034
  /**
10127
10035
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
10128
10036
  *
@@ -10139,7 +10047,7 @@ export declare enum ModCallbackCustom {
10139
10047
  * function postGridEntityRender(gridEntity: GridEntity): void {}
10140
10048
  * ```
10141
10049
  */
10142
- POST_GRID_ENTITY_RENDER = 49,
10050
+ POST_GRID_ENTITY_RENDER = 48,
10143
10051
  /**
10144
10052
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
10145
10053
  * "state" refers to the `GridEntity.State` field.)
@@ -10161,7 +10069,7 @@ export declare enum ModCallbackCustom {
10161
10069
  * ): void {}
10162
10070
  * ```
10163
10071
  */
10164
- POST_GRID_ENTITY_STATE_CHANGED = 50,
10072
+ POST_GRID_ENTITY_STATE_CHANGED = 49,
10165
10073
  /**
10166
10074
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
10167
10075
  *
@@ -10178,7 +10086,7 @@ export declare enum ModCallbackCustom {
10178
10086
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
10179
10087
  * ```
10180
10088
  */
10181
- POST_GRID_ENTITY_UPDATE = 51,
10089
+ POST_GRID_ENTITY_UPDATE = 50,
10182
10090
  /**
10183
10091
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
10184
10092
  * temporary collectible effect.
@@ -10201,7 +10109,7 @@ export declare enum ModCallbackCustom {
10201
10109
  * ): void {}
10202
10110
  * ```
10203
10111
  */
10204
- POST_HOLY_MANTLE_REMOVED = 52,
10112
+ POST_HOLY_MANTLE_REMOVED = 51,
10205
10113
  /**
10206
10114
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
10207
10115
  * active collectible item, implying that the item was just used.
@@ -10224,7 +10132,7 @@ export declare enum ModCallbackCustom {
10224
10132
  * ): void {}
10225
10133
  * ```
10226
10134
  */
10227
- POST_ITEM_DISCHARGE = 53,
10135
+ POST_ITEM_DISCHARGE = 52,
10228
10136
  /**
10229
10137
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
10230
10138
  * when the animation of the player holding the item above their head is finished and the item is
@@ -10245,7 +10153,7 @@ export declare enum ModCallbackCustom {
10245
10153
  * ): void {}
10246
10154
  * ```
10247
10155
  */
10248
- POST_ITEM_PICKUP = 54,
10156
+ POST_ITEM_PICKUP = 53,
10249
10157
  /**
10250
10158
  * Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
10251
10159
  * released. (In other words, the callback only fires when the "pressed" status is different than
@@ -10261,7 +10169,7 @@ export declare enum ModCallbackCustom {
10261
10169
  * function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
10262
10170
  * ```
10263
10171
  */
10264
- POST_KEYBOARD_CHANGED = 55,
10172
+ POST_KEYBOARD_CHANGED = 54,
10265
10173
  /**
10266
10174
  * The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
10267
10175
  * to specify extra arguments for additional filtration.
@@ -10276,7 +10184,7 @@ export declare enum ModCallbackCustom {
10276
10184
  * function postKnifeInitFilter(knife: EntityKnife): void {}
10277
10185
  * ```
10278
10186
  */
10279
- POST_KNIFE_INIT_FILTER = 56,
10187
+ POST_KNIFE_INIT_FILTER = 55,
10280
10188
  /**
10281
10189
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
10282
10190
  *
@@ -10293,7 +10201,7 @@ export declare enum ModCallbackCustom {
10293
10201
  * function postKnifeInitLate(knife: EntityKnife): void {}
10294
10202
  * ```
10295
10203
  */
10296
- POST_KNIFE_INIT_LATE = 57,
10204
+ POST_KNIFE_INIT_LATE = 56,
10297
10205
  /**
10298
10206
  * The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
10299
10207
  * you to specify extra arguments for additional filtration.
@@ -10308,7 +10216,7 @@ export declare enum ModCallbackCustom {
10308
10216
  * function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
10309
10217
  * ```
10310
10218
  */
10311
- POST_KNIFE_RENDER_FILTER = 58,
10219
+ POST_KNIFE_RENDER_FILTER = 57,
10312
10220
  /**
10313
10221
  * The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
10314
10222
  * you to specify extra arguments for additional filtration.
@@ -10323,7 +10231,7 @@ export declare enum ModCallbackCustom {
10323
10231
  * function postKnifeUpdateFilter(knife: EntityKnife): void {}
10324
10232
  * ```
10325
10233
  */
10326
- POST_KNIFE_UPDATE_FILTER = 59,
10234
+ POST_KNIFE_UPDATE_FILTER = 58,
10327
10235
  /**
10328
10236
  * The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
10329
10237
  * to specify extra arguments for additional filtration.
@@ -10338,7 +10246,7 @@ export declare enum ModCallbackCustom {
10338
10246
  * function postLaserInitFilter(laser: EntityLaser): void {}
10339
10247
  * ```
10340
10248
  */
10341
- POST_LASER_INIT_FILTER = 60,
10249
+ POST_LASER_INIT_FILTER = 59,
10342
10250
  /**
10343
10251
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
10344
10252
  *
@@ -10355,7 +10263,7 @@ export declare enum ModCallbackCustom {
10355
10263
  * function postLaserInitLate(laser: EntityLaser): void {}
10356
10264
  * ```
10357
10265
  */
10358
- POST_LASER_INIT_LATE = 61,
10266
+ POST_LASER_INIT_LATE = 60,
10359
10267
  /**
10360
10268
  * The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
10361
10269
  * you to specify extra arguments for additional filtration.
@@ -10370,7 +10278,7 @@ export declare enum ModCallbackCustom {
10370
10278
  * function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
10371
10279
  * ```
10372
10280
  */
10373
- POST_LASER_RENDER_FILTER = 62,
10281
+ POST_LASER_RENDER_FILTER = 61,
10374
10282
  /**
10375
10283
  * The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
10376
10284
  * you to specify extra arguments for additional filtration.
@@ -10385,7 +10293,7 @@ export declare enum ModCallbackCustom {
10385
10293
  * function postLaserUpdateFilter(laser: EntityLaser): void {}
10386
10294
  * ```
10387
10295
  */
10388
- POST_LASER_UPDATE_FILTER = 63,
10296
+ POST_LASER_UPDATE_FILTER = 62,
10389
10297
  /**
10390
10298
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
10391
10299
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -10411,7 +10319,7 @@ export declare enum ModCallbackCustom {
10411
10319
  * function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
10412
10320
  * ```
10413
10321
  */
10414
- POST_NEW_LEVEL_REORDERED = 64,
10322
+ POST_NEW_LEVEL_REORDERED = 63,
10415
10323
  /**
10416
10324
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
10417
10325
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -10428,7 +10336,7 @@ export declare enum ModCallbackCustom {
10428
10336
  * function postNewRoomEarly(roomType: RoomType): void {}
10429
10337
  * ```
10430
10338
  */
10431
- POST_NEW_ROOM_EARLY = 65,
10339
+ POST_NEW_ROOM_EARLY = 64,
10432
10340
  /**
10433
10341
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
10434
10342
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -10451,7 +10359,7 @@ export declare enum ModCallbackCustom {
10451
10359
  * function postNewRoomReordered(roomType: RoomType): void {}
10452
10360
  * ```
10453
10361
  */
10454
- POST_NEW_ROOM_REORDERED = 66,
10362
+ POST_NEW_ROOM_REORDERED = 65,
10455
10363
  /**
10456
10364
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
10457
10365
  * to specify extra arguments for additional filtration.
@@ -10468,7 +10376,7 @@ export declare enum ModCallbackCustom {
10468
10376
  * function postNPCDeathFilter(npc: EntityNPC): void {}
10469
10377
  * ```
10470
10378
  */
10471
- POST_NPC_DEATH_FILTER = 67,
10379
+ POST_NPC_DEATH_FILTER = 66,
10472
10380
  /**
10473
10381
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
10474
10382
  * to specify extra arguments for additional filtration.
@@ -10485,7 +10393,7 @@ export declare enum ModCallbackCustom {
10485
10393
  * function postNPCInitFilter(npc: EntityNPC): void {}
10486
10394
  * ```
10487
10395
  */
10488
- POST_NPC_INIT_FILTER = 68,
10396
+ POST_NPC_INIT_FILTER = 67,
10489
10397
  /**
10490
10398
  * Fires on the first `NPC_UPDATE` frame for each NPC.
10491
10399
  *
@@ -10504,7 +10412,7 @@ export declare enum ModCallbackCustom {
10504
10412
  * function postNPCInitLate(npc: EntityNPC): void {}
10505
10413
  * ```
10506
10414
  */
10507
- POST_NPC_INIT_LATE = 69,
10415
+ POST_NPC_INIT_LATE = 68,
10508
10416
  /**
10509
10417
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
10510
10418
  * to specify extra arguments for additional filtration.
@@ -10521,7 +10429,7 @@ export declare enum ModCallbackCustom {
10521
10429
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
10522
10430
  * ```
10523
10431
  */
10524
- POST_NPC_RENDER_FILTER = 70,
10432
+ POST_NPC_RENDER_FILTER = 69,
10525
10433
  /**
10526
10434
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
10527
10435
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -10542,7 +10450,7 @@ export declare enum ModCallbackCustom {
10542
10450
  * ): void {}
10543
10451
  * ```
10544
10452
  */
10545
- POST_NPC_STATE_CHANGED = 71,
10453
+ POST_NPC_STATE_CHANGED = 70,
10546
10454
  /**
10547
10455
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
10548
10456
  * to specify extra arguments for additional filtration.
@@ -10559,7 +10467,7 @@ export declare enum ModCallbackCustom {
10559
10467
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
10560
10468
  * ```
10561
10469
  */
10562
- POST_NPC_UPDATE_FILTER = 72,
10470
+ POST_NPC_UPDATE_FILTER = 71,
10563
10471
  /**
10564
10472
  * Similar to the vanilla callback of the same name, but fires after the
10565
10473
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10584,7 +10492,7 @@ export declare enum ModCallbackCustom {
10584
10492
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
10585
10493
  * ```
10586
10494
  */
10587
- POST_PEFFECT_UPDATE_REORDERED = 73,
10495
+ POST_PEFFECT_UPDATE_REORDERED = 72,
10588
10496
  /**
10589
10497
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
10590
10498
  * than what it was on the previous frame.
@@ -10605,7 +10513,7 @@ export declare enum ModCallbackCustom {
10605
10513
  * ): void {}
10606
10514
  * ```
10607
10515
  */
10608
- POST_PICKUP_CHANGED = 74,
10516
+ POST_PICKUP_CHANGED = 73,
10609
10517
  /**
10610
10518
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
10611
10519
  *
@@ -10624,7 +10532,7 @@ export declare enum ModCallbackCustom {
10624
10532
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
10625
10533
  * ```
10626
10534
  */
10627
- POST_PICKUP_COLLECT = 75,
10535
+ POST_PICKUP_COLLECT = 74,
10628
10536
  /**
10629
10537
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
10630
10538
  * you to specify extra arguments for additional filtration.
@@ -10639,7 +10547,7 @@ export declare enum ModCallbackCustom {
10639
10547
  * function postPickupInitFilter(pickup: EntityPickup): void {}
10640
10548
  * ```
10641
10549
  */
10642
- POST_PICKUP_INIT_FILTER = 76,
10550
+ POST_PICKUP_INIT_FILTER = 75,
10643
10551
  /**
10644
10552
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
10645
10553
  * respective pickup on the run.
@@ -10657,7 +10565,7 @@ export declare enum ModCallbackCustom {
10657
10565
  * function postPickupInitFirst(pickup: EntityPickup): void {}
10658
10566
  * ```
10659
10567
  */
10660
- POST_PICKUP_INIT_FIRST = 77,
10568
+ POST_PICKUP_INIT_FIRST = 76,
10661
10569
  /**
10662
10570
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
10663
10571
  *
@@ -10674,7 +10582,7 @@ export declare enum ModCallbackCustom {
10674
10582
  * function postPickupInitLate(pickup: EntityPickup): void {}
10675
10583
  * ```
10676
10584
  */
10677
- POST_PICKUP_INIT_LATE = 78,
10585
+ POST_PICKUP_INIT_LATE = 77,
10678
10586
  /**
10679
10587
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
10680
10588
  * you to specify extra arguments for additional filtration.
@@ -10689,7 +10597,7 @@ export declare enum ModCallbackCustom {
10689
10597
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
10690
10598
  * ```
10691
10599
  */
10692
- POST_PICKUP_RENDER_FILTER = 79,
10600
+ POST_PICKUP_RENDER_FILTER = 78,
10693
10601
  /**
10694
10602
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
10695
10603
  * allows you to specify extra arguments for additional filtration.
@@ -10708,7 +10616,7 @@ export declare enum ModCallbackCustom {
10708
10616
  * ): [PickupVariant, int] | undefined {}
10709
10617
  * ```
10710
10618
  */
10711
- POST_PICKUP_SELECTION_FILTER = 80,
10619
+ POST_PICKUP_SELECTION_FILTER = 79,
10712
10620
  /**
10713
10621
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
10714
10622
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -10727,7 +10635,7 @@ export declare enum ModCallbackCustom {
10727
10635
  * ): void {}
10728
10636
  * ```
10729
10637
  */
10730
- POST_PICKUP_STATE_CHANGED = 81,
10638
+ POST_PICKUP_STATE_CHANGED = 80,
10731
10639
  /**
10732
10640
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
10733
10641
  * you to specify extra arguments for additional filtration.
@@ -10742,7 +10650,7 @@ export declare enum ModCallbackCustom {
10742
10650
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
10743
10651
  * ```
10744
10652
  */
10745
- POST_PICKUP_UPDATE_FILTER = 82,
10653
+ POST_PICKUP_UPDATE_FILTER = 81,
10746
10654
  /**
10747
10655
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
10748
10656
  *
@@ -10754,7 +10662,7 @@ export declare enum ModCallbackCustom {
10754
10662
  * function postPitRender(pit: GridEntityPit): void {}
10755
10663
  * ```
10756
10664
  */
10757
- POST_PIT_RENDER = 83,
10665
+ POST_PIT_RENDER = 82,
10758
10666
  /**
10759
10667
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
10760
10668
  *
@@ -10766,7 +10674,7 @@ export declare enum ModCallbackCustom {
10766
10674
  * function postPitUpdate(pit: GridEntityPit): void {}
10767
10675
  * ```
10768
10676
  */
10769
- POST_PIT_UPDATE = 84,
10677
+ POST_PIT_UPDATE = 83,
10770
10678
  /**
10771
10679
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
10772
10680
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -10788,7 +10696,7 @@ export declare enum ModCallbackCustom {
10788
10696
  * ): void {}
10789
10697
  * ```
10790
10698
  */
10791
- POST_PLAYER_CHANGE_HEALTH = 85,
10699
+ POST_PLAYER_CHANGE_HEALTH = 84,
10792
10700
  /**
10793
10701
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
10794
10702
  * from what they were on the previous frame.
@@ -10818,7 +10726,7 @@ export declare enum ModCallbackCustom {
10818
10726
  * ) => void {}
10819
10727
  * ```
10820
10728
  */
10821
- POST_PLAYER_CHANGE_STAT = 86,
10729
+ POST_PLAYER_CHANGE_STAT = 85,
10822
10730
  /**
10823
10731
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
10824
10732
  * type
@@ -10841,7 +10749,7 @@ export declare enum ModCallbackCustom {
10841
10749
  * ): void {}
10842
10750
  * ```
10843
10751
  */
10844
- POST_PLAYER_CHANGE_TYPE = 87,
10752
+ POST_PLAYER_CHANGE_TYPE = 86,
10845
10753
  /**
10846
10754
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10847
10755
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -10858,7 +10766,7 @@ export declare enum ModCallbackCustom {
10858
10766
  * ): void {}
10859
10767
  * ```
10860
10768
  */
10861
- POST_PLAYER_COLLECTIBLE_ADDED = 88,
10769
+ POST_PLAYER_COLLECTIBLE_ADDED = 87,
10862
10770
  /**
10863
10771
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10864
10772
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -10875,7 +10783,7 @@ export declare enum ModCallbackCustom {
10875
10783
  * ): void {}
10876
10784
  * ```
10877
10785
  */
10878
- POST_PLAYER_COLLECTIBLE_REMOVED = 89,
10786
+ POST_PLAYER_COLLECTIBLE_REMOVED = 88,
10879
10787
  /**
10880
10788
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
10881
10789
  * prevent the fatal damage.
@@ -10893,7 +10801,7 @@ export declare enum ModCallbackCustom {
10893
10801
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
10894
10802
  * ```
10895
10803
  */
10896
- POST_PLAYER_FATAL_DAMAGE = 90,
10804
+ POST_PLAYER_FATAL_DAMAGE = 89,
10897
10805
  /**
10898
10806
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
10899
10807
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -10915,7 +10823,7 @@ export declare enum ModCallbackCustom {
10915
10823
  * function postPlayerInitFirst(player: EntityPlayer): void {}
10916
10824
  * ```
10917
10825
  */
10918
- POST_PLAYER_INIT_FIRST = 91,
10826
+ POST_PLAYER_INIT_FIRST = 90,
10919
10827
  /**
10920
10828
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
10921
10829
  *
@@ -10935,7 +10843,7 @@ export declare enum ModCallbackCustom {
10935
10843
  * function postPlayerInitLate(pickup: EntityPickup): void {}
10936
10844
  * ```
10937
10845
  */
10938
- POST_PLAYER_INIT_LATE = 92,
10846
+ POST_PLAYER_INIT_LATE = 91,
10939
10847
  /**
10940
10848
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
10941
10849
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -10959,7 +10867,7 @@ export declare enum ModCallbackCustom {
10959
10867
  * function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
10960
10868
  * ```
10961
10869
  */
10962
- POST_PLAYER_RENDER_REORDERED = 93,
10870
+ POST_PLAYER_RENDER_REORDERED = 92,
10963
10871
  /**
10964
10872
  * Similar to the vanilla callback of the same name, but fires after the
10965
10873
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10984,7 +10892,7 @@ export declare enum ModCallbackCustom {
10984
10892
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
10985
10893
  * ```
10986
10894
  */
10987
- POST_PLAYER_UPDATE_REORDERED = 94,
10895
+ POST_PLAYER_UPDATE_REORDERED = 93,
10988
10896
  /**
10989
10897
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
10990
10898
  *
@@ -10996,7 +10904,7 @@ export declare enum ModCallbackCustom {
10996
10904
  * function postPoopRender(poop: GridEntityPoop): void {}
10997
10905
  * ```
10998
10906
  */
10999
- POST_POOP_RENDER = 95,
10907
+ POST_POOP_RENDER = 94,
11000
10908
  /**
11001
10909
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
11002
10910
  *
@@ -11008,7 +10916,7 @@ export declare enum ModCallbackCustom {
11008
10916
  * function postPoopUpdate(poop: GridEntityPoop): void {}
11009
10917
  * ```
11010
10918
  */
11011
- POST_POOP_UPDATE = 96,
10919
+ POST_POOP_UPDATE = 95,
11012
10920
  /**
11013
10921
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
11014
10922
  *
@@ -11020,7 +10928,7 @@ export declare enum ModCallbackCustom {
11020
10928
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
11021
10929
  * ```
11022
10930
  */
11023
- POST_PRESSURE_PLATE_RENDER = 97,
10931
+ POST_PRESSURE_PLATE_RENDER = 96,
11024
10932
  /**
11025
10933
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
11026
10934
  *
@@ -11032,7 +10940,7 @@ export declare enum ModCallbackCustom {
11032
10940
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
11033
10941
  * ```
11034
10942
  */
11035
- POST_PRESSURE_PLATE_UPDATE = 98,
10943
+ POST_PRESSURE_PLATE_UPDATE = 97,
11036
10944
  /**
11037
10945
  * The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
11038
10946
  * allows you to specify extra arguments for additional filtration.
@@ -11047,7 +10955,7 @@ export declare enum ModCallbackCustom {
11047
10955
  * function postProjectileInitFilter(tear: EntityTear): void {}
11048
10956
  * ```
11049
10957
  */
11050
- POST_PROJECTILE_INIT_FILTER = 99,
10958
+ POST_PROJECTILE_INIT_FILTER = 98,
11051
10959
  /**
11052
10960
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
11053
10961
  *
@@ -11064,7 +10972,7 @@ export declare enum ModCallbackCustom {
11064
10972
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
11065
10973
  * ```
11066
10974
  */
11067
- POST_PROJECTILE_INIT_LATE = 100,
10975
+ POST_PROJECTILE_INIT_LATE = 99,
11068
10976
  /**
11069
10977
  * The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
11070
10978
  * allows you to specify extra arguments for additional filtration.
@@ -11079,7 +10987,7 @@ export declare enum ModCallbackCustom {
11079
10987
  * function postProjectileRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
11080
10988
  * ```
11081
10989
  */
11082
- POST_PROJECTILE_RENDER_FILTER = 101,
10990
+ POST_PROJECTILE_RENDER_FILTER = 100,
11083
10991
  /**
11084
10992
  * The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
11085
10993
  * allows you to specify extra arguments for additional filtration.
@@ -11094,7 +11002,7 @@ export declare enum ModCallbackCustom {
11094
11002
  * function postProjectileUpdateFilter(tear: EntityTear): void {}
11095
11003
  * ```
11096
11004
  */
11097
- POST_PROJECTILE_UPDATE_FILTER = 102,
11005
+ POST_PROJECTILE_UPDATE_FILTER = 101,
11098
11006
  /**
11099
11007
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
11100
11008
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -11110,7 +11018,7 @@ export declare enum ModCallbackCustom {
11110
11018
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
11111
11019
  * ```
11112
11020
  */
11113
- POST_PURCHASE = 103,
11021
+ POST_PURCHASE = 102,
11114
11022
  /**
11115
11023
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
11116
11024
  *
@@ -11124,7 +11032,7 @@ export declare enum ModCallbackCustom {
11124
11032
  * function postRockRender(rock: GridEntityRock): void {}
11125
11033
  * ```
11126
11034
  */
11127
- POST_ROCK_RENDER = 104,
11035
+ POST_ROCK_RENDER = 103,
11128
11036
  /**
11129
11037
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
11130
11038
  *
@@ -11138,7 +11046,7 @@ export declare enum ModCallbackCustom {
11138
11046
  * function postRockUpdate(rock: GridEntityRock): void {}
11139
11047
  * ```
11140
11048
  */
11141
- POST_ROCK_UPDATE = 105,
11049
+ POST_ROCK_UPDATE = 104,
11142
11050
  /**
11143
11051
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
11144
11052
  * the `Room.IsClear` method).
@@ -11155,7 +11063,7 @@ export declare enum ModCallbackCustom {
11155
11063
  * function postRoomClearChanged(roomClear: boolean): void {}
11156
11064
  * ```
11157
11065
  */
11158
- POST_ROOM_CLEAR_CHANGED = 106,
11066
+ POST_ROOM_CLEAR_CHANGED = 105,
11159
11067
  /**
11160
11068
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
11161
11069
  * Room.
@@ -11170,7 +11078,7 @@ export declare enum ModCallbackCustom {
11170
11078
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
11171
11079
  * ```
11172
11080
  */
11173
- POST_SACRIFICE = 107,
11081
+ POST_SACRIFICE = 106,
11174
11082
  /**
11175
11083
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
11176
11084
  *
@@ -11188,7 +11096,7 @@ export declare enum ModCallbackCustom {
11188
11096
  * ): void {}
11189
11097
  * ```
11190
11098
  */
11191
- POST_SLOT_ANIMATION_CHANGED = 108,
11099
+ POST_SLOT_ANIMATION_CHANGED = 107,
11192
11100
  /**
11193
11101
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
11194
11102
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -11212,7 +11120,7 @@ export declare enum ModCallbackCustom {
11212
11120
  * ): void {}
11213
11121
  * ```
11214
11122
  */
11215
- POST_SLOT_COLLISION = 109,
11123
+ POST_SLOT_COLLISION = 108,
11216
11124
  /**
11217
11125
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
11218
11126
  * destroyed or a beggar is removed.
@@ -11254,7 +11162,7 @@ export declare enum ModCallbackCustom {
11254
11162
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
11255
11163
  * ```
11256
11164
  */
11257
- POST_SLOT_DESTROYED = 110,
11165
+ POST_SLOT_DESTROYED = 109,
11258
11166
  /**
11259
11167
  * Fires when a new slot entity is initialized. Specifically, this is either:
11260
11168
  *
@@ -11273,7 +11181,7 @@ export declare enum ModCallbackCustom {
11273
11181
  * function postSlotInit(slot: Entity): void {}
11274
11182
  * ```
11275
11183
  */
11276
- POST_SLOT_INIT = 111,
11184
+ POST_SLOT_INIT = 110,
11277
11185
  /**
11278
11186
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
11279
11187
  *
@@ -11287,7 +11195,7 @@ export declare enum ModCallbackCustom {
11287
11195
  * function postSlotRender(slot: Entity): void {}
11288
11196
  * ```
11289
11197
  */
11290
- POST_SLOT_RENDER = 112,
11198
+ POST_SLOT_RENDER = 111,
11291
11199
  /**
11292
11200
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
11293
11201
  *
@@ -11301,7 +11209,7 @@ export declare enum ModCallbackCustom {
11301
11209
  * function postSlotUpdate(slot: Entity): void {}
11302
11210
  * ```
11303
11211
  */
11304
- POST_SLOT_UPDATE = 113,
11212
+ POST_SLOT_UPDATE = 112,
11305
11213
  /**
11306
11214
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
11307
11215
  *
@@ -11313,7 +11221,7 @@ export declare enum ModCallbackCustom {
11313
11221
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
11314
11222
  * ```
11315
11223
  */
11316
- POST_SPIKES_RENDER = 114,
11224
+ POST_SPIKES_RENDER = 113,
11317
11225
  /**
11318
11226
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
11319
11227
  *
@@ -11325,7 +11233,7 @@ export declare enum ModCallbackCustom {
11325
11233
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
11326
11234
  * ```
11327
11235
  */
11328
- POST_SPIKES_UPDATE = 115,
11236
+ POST_SPIKES_UPDATE = 114,
11329
11237
  /**
11330
11238
  * The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
11331
11239
  * to specify extra arguments for additional filtration.
@@ -11340,7 +11248,7 @@ export declare enum ModCallbackCustom {
11340
11248
  * function postTearInitFilter(tear: EntityTear): void {}
11341
11249
  * ```
11342
11250
  */
11343
- POST_TEAR_INIT_FILTER = 116,
11251
+ POST_TEAR_INIT_FILTER = 115,
11344
11252
  /**
11345
11253
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
11346
11254
  * `EntityTear.FrameCount` is equal to 0).
@@ -11358,7 +11266,7 @@ export declare enum ModCallbackCustom {
11358
11266
  * function postTearInitLate(tear: EntityTear): void {}
11359
11267
  * ```
11360
11268
  */
11361
- POST_TEAR_INIT_LATE = 117,
11269
+ POST_TEAR_INIT_LATE = 116,
11362
11270
  /**
11363
11271
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
11364
11272
  * `EntityTear.FrameCount` is equal to 1).
@@ -11375,7 +11283,7 @@ export declare enum ModCallbackCustom {
11375
11283
  * function postTearInitVeryLate(tear: EntityTear): void {}
11376
11284
  * ```
11377
11285
  */
11378
- POST_TEAR_INIT_VERY_LATE = 118,
11286
+ POST_TEAR_INIT_VERY_LATE = 117,
11379
11287
  /**
11380
11288
  * The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
11381
11289
  * you to specify extra arguments for additional filtration.
@@ -11390,7 +11298,7 @@ export declare enum ModCallbackCustom {
11390
11298
  * function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
11391
11299
  * ```
11392
11300
  */
11393
- POST_TEAR_RENDER_FILTER = 119,
11301
+ POST_TEAR_RENDER_FILTER = 118,
11394
11302
  /**
11395
11303
  * The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
11396
11304
  * to specify extra arguments for additional filtration.
@@ -11405,7 +11313,7 @@ export declare enum ModCallbackCustom {
11405
11313
  * function postTearUpdateFilter(tear: EntityTear): void {}
11406
11314
  * ```
11407
11315
  */
11408
- POST_TEAR_UPDATE_FILTER = 120,
11316
+ POST_TEAR_UPDATE_FILTER = 119,
11409
11317
  /**
11410
11318
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
11411
11319
  *
@@ -11417,7 +11325,7 @@ export declare enum ModCallbackCustom {
11417
11325
  * function postTNTRender(tnt: GridEntityTNT): void {}
11418
11326
  * ```
11419
11327
  */
11420
- POST_TNT_RENDER = 121,
11328
+ POST_TNT_RENDER = 120,
11421
11329
  /**
11422
11330
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
11423
11331
  *
@@ -11429,7 +11337,7 @@ export declare enum ModCallbackCustom {
11429
11337
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
11430
11338
  * ```
11431
11339
  */
11432
- POST_TNT_UPDATE = 122,
11340
+ POST_TNT_UPDATE = 121,
11433
11341
  /**
11434
11342
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
11435
11343
  * transformation.
@@ -11448,7 +11356,7 @@ export declare enum ModCallbackCustom {
11448
11356
  * ): void {}
11449
11357
  * ```
11450
11358
  */
11451
- POST_TRANSFORMATION = 123,
11359
+ POST_TRANSFORMATION = 122,
11452
11360
  /**
11453
11361
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
11454
11362
  *
@@ -11463,7 +11371,7 @@ export declare enum ModCallbackCustom {
11463
11371
  * ): void {}
11464
11372
  * ```
11465
11373
  */
11466
- POST_TRINKET_BREAK = 124,
11374
+ POST_TRINKET_BREAK = 123,
11467
11375
  /**
11468
11376
  * The same thing as the vanilla `POST_USE_PILL` callback, except this callback passes the
11469
11377
  * `PillColor` of the used pill as the final argument. It allows you to filter by the `PillColor`.
@@ -11486,7 +11394,7 @@ export declare enum ModCallbackCustom {
11486
11394
  * ): void {}
11487
11395
  * ```
11488
11396
  */
11489
- POST_USE_PILL_FILTER = 125,
11397
+ POST_USE_PILL_FILTER = 124,
11490
11398
  /**
11491
11399
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
11492
11400
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -11502,7 +11410,7 @@ export declare enum ModCallbackCustom {
11502
11410
  * function preBerserkDeath(player: EntityPlayer): void {}
11503
11411
  * ```
11504
11412
  */
11505
- PRE_BERSERK_DEATH = 126,
11413
+ PRE_BERSERK_DEATH = 125,
11506
11414
  /**
11507
11415
  * The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
11508
11416
  * you to specify extra arguments for additional filtration.
@@ -11521,7 +11429,7 @@ export declare enum ModCallbackCustom {
11521
11429
  * ): void {}
11522
11430
  * ```
11523
11431
  */
11524
- PRE_BOMB_COLLISION_FILTER = 127,
11432
+ PRE_BOMB_COLLISION_FILTER = 126,
11525
11433
  /**
11526
11434
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
11527
11435
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -11540,7 +11448,7 @@ export declare enum ModCallbackCustom {
11540
11448
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
11541
11449
  * ```
11542
11450
  */
11543
- PRE_CUSTOM_REVIVE = 128,
11451
+ PRE_CUSTOM_REVIVE = 127,
11544
11452
  /**
11545
11453
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
11546
11454
  * you to specify extra arguments for additional filtration.
@@ -11565,7 +11473,7 @@ export declare enum ModCallbackCustom {
11565
11473
  * ): [EntityType, int, int, int] | undefined {}
11566
11474
  * ```
11567
11475
  */
11568
- PRE_ENTITY_SPAWN_FILTER = 129,
11476
+ PRE_ENTITY_SPAWN_FILTER = 128,
11569
11477
  /**
11570
11478
  * The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
11571
11479
  * allows you to specify extra arguments for additional filtration.
@@ -11584,7 +11492,7 @@ export declare enum ModCallbackCustom {
11584
11492
  * ): void {}
11585
11493
  * ```
11586
11494
  */
11587
- PRE_FAMILIAR_COLLISION_FILTER = 130,
11495
+ PRE_FAMILIAR_COLLISION_FILTER = 129,
11588
11496
  /**
11589
11497
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
11590
11498
  * meets all of the conditions to pick it up.
@@ -11604,7 +11512,7 @@ export declare enum ModCallbackCustom {
11604
11512
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
11605
11513
  * ```
11606
11514
  */
11607
- PRE_GET_PEDESTAL = 131,
11515
+ PRE_GET_PEDESTAL = 130,
11608
11516
  /**
11609
11517
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
11610
11518
  * the player begins to hold the item above their head).
@@ -11624,7 +11532,7 @@ export declare enum ModCallbackCustom {
11624
11532
  * ): void {}
11625
11533
  * ```
11626
11534
  */
11627
- PRE_ITEM_PICKUP = 132,
11535
+ PRE_ITEM_PICKUP = 131,
11628
11536
  /**
11629
11537
  * The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
11630
11538
  * you to specify extra arguments for additional filtration.
@@ -11643,7 +11551,7 @@ export declare enum ModCallbackCustom {
11643
11551
  * ): void {}
11644
11552
  * ```
11645
11553
  */
11646
- PRE_KNIFE_COLLISION_FILTER = 133,
11554
+ PRE_KNIFE_COLLISION_FILTER = 132,
11647
11555
  /**
11648
11556
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
11649
11557
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -11657,7 +11565,7 @@ export declare enum ModCallbackCustom {
11657
11565
  * function preNewLevel(player: EntityPlayer): void {}
11658
11566
  * ```
11659
11567
  */
11660
- PRE_NEW_LEVEL = 134,
11568
+ PRE_NEW_LEVEL = 133,
11661
11569
  /**
11662
11570
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
11663
11571
  * you to specify extra arguments for additional filtration.
@@ -11678,7 +11586,7 @@ export declare enum ModCallbackCustom {
11678
11586
  * ): boolean | undefined {}
11679
11587
  * ```
11680
11588
  */
11681
- PRE_NPC_COLLISION_FILTER = 135,
11589
+ PRE_NPC_COLLISION_FILTER = 134,
11682
11590
  /**
11683
11591
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
11684
11592
  * to specify extra arguments for additional filtration.
@@ -11695,7 +11603,7 @@ export declare enum ModCallbackCustom {
11695
11603
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
11696
11604
  * ```
11697
11605
  */
11698
- PRE_NPC_UPDATE_FILTER = 136,
11606
+ PRE_NPC_UPDATE_FILTER = 135,
11699
11607
  /**
11700
11608
  * The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
11701
11609
  * allows you to specify extra arguments for additional filtration.
@@ -11714,7 +11622,7 @@ export declare enum ModCallbackCustom {
11714
11622
  * ): void {}
11715
11623
  * ```
11716
11624
  */
11717
- PRE_PROJECTILE_COLLISION_FILTER = 137,
11625
+ PRE_PROJECTILE_COLLISION_FILTER = 136,
11718
11626
  /**
11719
11627
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
11720
11628
  * allows you to specify extra arguments for additional filtration.
@@ -11737,7 +11645,7 @@ export declare enum ModCallbackCustom {
11737
11645
  * ): [EntityType | GridEntityXMLType, int, int] | undefined {}
11738
11646
  * ```
11739
11647
  */
11740
- PRE_ROOM_ENTITY_SPAWN_FILTER = 138,
11648
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 137,
11741
11649
  /**
11742
11650
  * The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
11743
11651
  * you to specify extra arguments for additional filtration.
@@ -11756,7 +11664,7 @@ export declare enum ModCallbackCustom {
11756
11664
  * ): void {}
11757
11665
  * ```
11758
11666
  */
11759
- PRE_TEAR_COLLISION_FILTER = 139
11667
+ PRE_TEAR_COLLISION_FILTER = 138
11760
11668
  }
11761
11669
 
11762
11670
  /**
@@ -13220,6 +13128,10 @@ declare class PickupIndexCreation extends Feature {
13220
13128
  *
13221
13129
  * Tracking pickups requires stateful tracking, so using pickup indexes requires an upgraded mod.
13222
13130
  *
13131
+ * Note that the pickup index will not change:
13132
+ * - When a pickup is rolled with e.g. D6 or D20.
13133
+ * - When an item is "rotated" via e.g. Tainted Isaac's mechanic.
13134
+ *
13223
13135
  * In order to use this function, you must upgrade your mod with
13224
13136
  * `ISCFeature.PICKUP_INDEX_CREATION`.
13225
13137
  */
@@ -13620,9 +13532,13 @@ declare class PreventChildEntities extends Feature {
13620
13532
  }
13621
13533
 
13622
13534
  declare class PreventCollectibleRotation extends Feature {
13535
+ private pickupIndexCreation;
13536
+ /**
13537
+ * Soul of Isaac causes items to flip. We assume that the player deliberately wants to roll a
13538
+ * quest item, so we delete all tracked items in the current room.
13539
+ */
13623
13540
  private useCardSoulOfIsaac;
13624
- private postPickupUpdateCollectible;
13625
- private checkCollectibleRotated;
13541
+ private postPickupChanged;
13626
13542
  /**
13627
13543
  * Helper function to prevent a collectible from being affected by Tainted Isaac's rotation
13628
13544
  * mechanic. (This mechanic also happens from Glitched Crown and Binge Eater.) This is useful