isaacscript-common 18.1.0 → 18.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/index.d.ts +115 -99
  2. package/dist/isaacscript-common.lua +146 -102
  3. package/dist/src/callbackClasses.d.ts +1 -0
  4. package/dist/src/callbackClasses.d.ts.map +1 -1
  5. package/dist/src/callbackClasses.lua +5 -0
  6. package/dist/src/callbacks.d.ts +100 -99
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +1 -0
  9. package/dist/src/classes/callbacks/EntityTakeDmgFilter.d.ts.map +1 -1
  10. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts +9 -0
  11. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -0
  12. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.lua +34 -0
  13. package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  14. package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  15. package/dist/src/classes/callbacks/PostBombExploded.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  17. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  19. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  21. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostDoorRender.d.ts.map +1 -1
  23. package/dist/src/classes/callbacks/PostDoorUpdate.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  25. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  26. package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  27. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  28. package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  29. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  30. package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  32. package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts +1 -1
  33. package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +2 -2
  35. package/dist/src/classes/callbacks/PostNPCInitFilter.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  37. package/dist/src/classes/callbacks/PostNPCRenderFilter.d.ts.map +1 -1
  38. package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  39. package/dist/src/classes/callbacks/PostNPCUpdateFilter.d.ts.map +1 -1
  40. package/dist/src/classes/callbacks/PostNewRoomEarly.d.ts.map +1 -1
  41. package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  42. package/dist/src/classes/callbacks/PostPickupInitFirst.d.ts.map +1 -1
  43. package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  44. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  45. package/dist/src/classes/callbacks/PostPitRender.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostPitUpdate.d.ts.map +1 -1
  47. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  48. package/dist/src/classes/callbacks/PostPoopRender.d.ts.map +1 -1
  49. package/dist/src/classes/callbacks/PostPoopUpdate.d.ts.map +1 -1
  50. package/dist/src/classes/callbacks/PostPressurePlateRender.d.ts.map +1 -1
  51. package/dist/src/classes/callbacks/PostPressurePlateUpdate.d.ts.map +1 -1
  52. package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  53. package/dist/src/classes/callbacks/PostRockRender.d.ts.map +1 -1
  54. package/dist/src/classes/callbacks/PostRockUpdate.d.ts.map +1 -1
  55. package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  56. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  57. package/dist/src/classes/callbacks/PostSlotCollision.d.ts.map +1 -1
  58. package/dist/src/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
  59. package/dist/src/classes/callbacks/PostSpikesRender.d.ts.map +1 -1
  60. package/dist/src/classes/callbacks/PostSpikesUpdate.d.ts.map +1 -1
  61. package/dist/src/classes/callbacks/PostTNTRender.d.ts.map +1 -1
  62. package/dist/src/classes/callbacks/PostTNTUpdate.d.ts.map +1 -1
  63. package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  64. package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  65. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  66. package/dist/src/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
  67. package/dist/src/classes/callbacks/PreNPCCollisionFilter.d.ts.map +1 -1
  68. package/dist/src/classes/callbacks/PreNPCUpdateFilter.d.ts.map +1 -1
  69. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  70. package/dist/src/enums/ModCallbackCustom.d.ts +110 -99
  71. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  72. package/dist/src/enums/ModCallbackCustom.lua +101 -99
  73. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +5 -0
  74. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  75. package/package.json +1 -1
  76. package/src/callbackClasses.ts +1 -0
  77. package/src/callbacks.ts +1 -0
  78. package/src/classes/callbacks/EntityTakeDmgFilter.ts +2 -1
  79. package/src/classes/callbacks/EntityTakeDmgPlayer.ts +40 -0
  80. package/src/classes/callbacks/PostAmbushFinished.ts +2 -1
  81. package/src/classes/callbacks/PostAmbushStarted.ts +2 -1
  82. package/src/classes/callbacks/PostBombExploded.ts +2 -1
  83. package/src/classes/callbacks/PostBombInitLate.ts +2 -1
  84. package/src/classes/callbacks/PostBoneSwing.ts +2 -1
  85. package/src/classes/callbacks/PostCollectibleEmpty.ts +2 -1
  86. package/src/classes/callbacks/PostCollectibleInitFirst.ts +2 -1
  87. package/src/classes/callbacks/PostCursedTeleport.ts +5 -2
  88. package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -1
  89. package/src/classes/callbacks/PostDoorRender.ts +4 -1
  90. package/src/classes/callbacks/PostDoorUpdate.ts +4 -1
  91. package/src/classes/callbacks/PostEffectInitLate.ts +2 -1
  92. package/src/classes/callbacks/PostEffectStateChanged.ts +2 -1
  93. package/src/classes/callbacks/PostFamiliarInitLate.ts +2 -1
  94. package/src/classes/callbacks/PostFamiliarStateChanged.ts +2 -1
  95. package/src/classes/callbacks/PostGreedModeWave.ts +2 -1
  96. package/src/classes/callbacks/PostItemDischarge.ts +2 -1
  97. package/src/classes/callbacks/PostKnifeInitLate.ts +2 -1
  98. package/src/classes/callbacks/PostLaserInitLate.ts +2 -1
  99. package/src/classes/callbacks/PostNPCDeathFilter.ts +3 -2
  100. package/src/classes/callbacks/PostNPCInitFilter.ts +2 -1
  101. package/src/classes/callbacks/PostNPCInitLate.ts +2 -1
  102. package/src/classes/callbacks/PostNPCRenderFilter.ts +2 -1
  103. package/src/classes/callbacks/PostNPCStateChanged.ts +2 -1
  104. package/src/classes/callbacks/PostNPCUpdateFilter.ts +2 -1
  105. package/src/classes/callbacks/PostNewRoomEarly.ts +5 -2
  106. package/src/classes/callbacks/PostPickupCollect.ts +2 -1
  107. package/src/classes/callbacks/PostPickupInitFirst.ts +2 -1
  108. package/src/classes/callbacks/PostPickupInitLate.ts +2 -1
  109. package/src/classes/callbacks/PostPickupStateChanged.ts +2 -1
  110. package/src/classes/callbacks/PostPitRender.ts +2 -1
  111. package/src/classes/callbacks/PostPitUpdate.ts +2 -1
  112. package/src/classes/callbacks/PostPlayerFatalDamage.ts +5 -2
  113. package/src/classes/callbacks/PostPoopRender.ts +2 -1
  114. package/src/classes/callbacks/PostPoopUpdate.ts +2 -1
  115. package/src/classes/callbacks/PostPressurePlateRender.ts +2 -1
  116. package/src/classes/callbacks/PostPressurePlateUpdate.ts +2 -1
  117. package/src/classes/callbacks/PostProjectileInitLate.ts +2 -1
  118. package/src/classes/callbacks/PostRockRender.ts +2 -1
  119. package/src/classes/callbacks/PostRockUpdate.ts +2 -1
  120. package/src/classes/callbacks/PostRoomClearChanged.ts +2 -1
  121. package/src/classes/callbacks/PostSacrifice.ts +2 -1
  122. package/src/classes/callbacks/PostSlotCollision.ts +2 -1
  123. package/src/classes/callbacks/PostSlotDestroyed.ts +1 -0
  124. package/src/classes/callbacks/PostSpikesRender.ts +2 -1
  125. package/src/classes/callbacks/PostSpikesUpdate.ts +2 -1
  126. package/src/classes/callbacks/PostTNTRender.ts +2 -1
  127. package/src/classes/callbacks/PostTNTUpdate.ts +2 -1
  128. package/src/classes/callbacks/PostTearInitLate.ts +2 -1
  129. package/src/classes/callbacks/PostTearInitVeryLate.ts +2 -1
  130. package/src/classes/callbacks/PostTrinketBreak.ts +2 -1
  131. package/src/classes/callbacks/PreGetPedestal.ts +2 -1
  132. package/src/classes/callbacks/PreNPCCollisionFilter.ts +2 -1
  133. package/src/classes/callbacks/PreNPCUpdateFilter.ts +2 -1
  134. package/src/classes/callbacks/PreNewLevel.ts +2 -1
  135. package/src/enums/ModCallbackCustom.ts +12 -0
  136. package/src/interfaces/private/AddCallbackParametersCustom.ts +12 -0
package/dist/index.d.ts CHANGED
@@ -91,6 +91,11 @@ declare interface AddCallbackParametersCustom {
91
91
  variant?: number,
92
92
  subType?: number
93
93
  ];
94
+ [ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER]: [
95
+ callback: (player: EntityPlayer, amount: float, damageFlags: BitFlags<DamageFlag>, source: EntityRef, countdownFrames: int) => boolean | undefined,
96
+ playerVariant?: PlayerVariant,
97
+ character?: PlayerType
98
+ ];
94
99
  [ModCallbackCustom.POST_AMBUSH_FINISHED]: [
95
100
  callback: (ambushType: AmbushType) => void,
96
101
  ambushType?: AmbushType
@@ -8623,6 +8628,17 @@ export declare enum ModCallbackCustom {
8623
8628
  * matches the sub-type provided.
8624
8629
  */
8625
8630
  ENTITY_TAKE_DMG_FILTER = 0,
8631
+ /**
8632
+ * The exact same thing as the vanilla `ENTITY_TAKE_DMG` callback, except this callback
8633
+ * automatically filters for `EntityType.ENTITY_PLAYER` and casts the `Entity` object to a
8634
+ * `EntityPlayer`.
8635
+ *
8636
+ * - You can provide an optional third argument that will make the callback only fire if it
8637
+ * matches the `PlayerVariant` provided.
8638
+ * - You can provide an optional fourth argument that will make the callback only fire if it
8639
+ * matches the `PlayerType` provided.
8640
+ */
8641
+ ENTITY_TAKE_DMG_PLAYER = 1,
8626
8642
  /**
8627
8643
  * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
8628
8644
  * Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
@@ -8635,7 +8651,7 @@ export declare enum ModCallbackCustom {
8635
8651
  * function postAmbushFinished(ambushType: AmbushType): void {}
8636
8652
  * ```
8637
8653
  */
8638
- POST_AMBUSH_FINISHED = 1,
8654
+ POST_AMBUSH_FINISHED = 2,
8639
8655
  /**
8640
8656
  * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
8641
8657
  * Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
@@ -8648,7 +8664,7 @@ export declare enum ModCallbackCustom {
8648
8664
  * function postAmbushStarted(ambushType: AmbushType): void {}
8649
8665
  * ```
8650
8666
  */
8651
- POST_AMBUSH_STARTED = 2,
8667
+ POST_AMBUSH_STARTED = 3,
8652
8668
  /**
8653
8669
  * Fires on the `POST_BOMB_UPDATE` callback that it explodes.
8654
8670
  *
@@ -8662,7 +8678,7 @@ export declare enum ModCallbackCustom {
8662
8678
  * function postBombDetonated(bomb: EntityBomb): void {}
8663
8679
  * ```
8664
8680
  */
8665
- POST_BOMB_EXPLODED = 3,
8681
+ POST_BOMB_EXPLODED = 4,
8666
8682
  /**
8667
8683
  * Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
8668
8684
  *
@@ -8679,7 +8695,7 @@ export declare enum ModCallbackCustom {
8679
8695
  * function postBombInitLate(bomb: EntityBomb): void {}
8680
8696
  * ```
8681
8697
  */
8682
- POST_BOMB_INIT_LATE = 4,
8698
+ POST_BOMB_INIT_LATE = 5,
8683
8699
  /**
8684
8700
  * Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
8685
8701
  *
@@ -8687,7 +8703,7 @@ export declare enum ModCallbackCustom {
8687
8703
  * function postBoneSwing(boneClub: EntityKnife): void {}
8688
8704
  * ```
8689
8705
  */
8690
- POST_BONE_SWING = 5,
8706
+ POST_BONE_SWING = 6,
8691
8707
  /**
8692
8708
  * Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
8693
8709
  * to `CollectibleType.NULL` (i.e. an "empty" pedestal).
@@ -8703,7 +8719,7 @@ export declare enum ModCallbackCustom {
8703
8719
  * ): void {}
8704
8720
  * ```
8705
8721
  */
8706
- POST_COLLECTIBLE_EMPTY = 6,
8722
+ POST_COLLECTIBLE_EMPTY = 7,
8707
8723
  /**
8708
8724
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
8709
8725
  * respective collectible on the run. For more details on how this is calculated, see the
@@ -8721,7 +8737,7 @@ export declare enum ModCallbackCustom {
8721
8737
  * function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
8722
8738
  * ```
8723
8739
  */
8724
- POST_COLLECTIBLE_INIT_FIRST = 7,
8740
+ POST_COLLECTIBLE_INIT_FIRST = 8,
8725
8741
  /**
8726
8742
  * Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
8727
8743
  * begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
@@ -8737,7 +8753,7 @@ export declare enum ModCallbackCustom {
8737
8753
  * function postCursedTeleport(player: EntityPlayer): void {}
8738
8754
  * ```
8739
8755
  */
8740
- POST_CURSED_TELEPORT = 8,
8756
+ POST_CURSED_TELEPORT = 9,
8741
8757
  /**
8742
8758
  * Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
8743
8759
  * has teleported to the previous room, and is ready to play the animation for the modded revival
@@ -8755,7 +8771,7 @@ export declare enum ModCallbackCustom {
8755
8771
  * function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
8756
8772
  * ```
8757
8773
  */
8758
- POST_CUSTOM_REVIVE = 9,
8774
+ POST_CUSTOM_REVIVE = 10,
8759
8775
  /**
8760
8776
  * Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
8761
8777
  * Room floor.
@@ -8771,7 +8787,7 @@ export declare enum ModCallbackCustom {
8771
8787
  * ): void {}
8772
8788
  * ```
8773
8789
  */
8774
- POST_DICE_ROOM_ACTIVATED = 10,
8790
+ POST_DICE_ROOM_ACTIVATED = 11,
8775
8791
  /**
8776
8792
  * Fires from the `POST_RENDER` callback on every frame that a door exists.
8777
8793
  *
@@ -8783,7 +8799,7 @@ export declare enum ModCallbackCustom {
8783
8799
  * function postDoorRender(door: GridEntityDoor): void {}
8784
8800
  * ```
8785
8801
  */
8786
- POST_DOOR_RENDER = 11,
8802
+ POST_DOOR_RENDER = 12,
8787
8803
  /**
8788
8804
  * Fires from the `POST_UPDATE` callback on every frame that a door exists.
8789
8805
  *
@@ -8795,7 +8811,7 @@ export declare enum ModCallbackCustom {
8795
8811
  * function postDoorUpdate(door: GridEntityDoor): void {}
8796
8812
  * ```
8797
8813
  */
8798
- POST_DOOR_UPDATE = 12,
8814
+ POST_DOOR_UPDATE = 13,
8799
8815
  /**
8800
8816
  * Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
8801
8817
  *
@@ -8812,7 +8828,7 @@ export declare enum ModCallbackCustom {
8812
8828
  * function postEffectInitLate(effect: EntityEffect): void {}
8813
8829
  * ```
8814
8830
  */
8815
- POST_EFFECT_INIT_LATE = 13,
8831
+ POST_EFFECT_INIT_LATE = 14,
8816
8832
  /**
8817
8833
  * Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
8818
8834
  * was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
@@ -8831,7 +8847,7 @@ export declare enum ModCallbackCustom {
8831
8847
  * ): void {}
8832
8848
  * ```
8833
8849
  */
8834
- POST_EFFECT_STATE_CHANGED = 14,
8850
+ POST_EFFECT_STATE_CHANGED = 15,
8835
8851
  /**
8836
8852
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
8837
8853
  * updated to the new character until a game frame has passed.)
@@ -8840,7 +8856,7 @@ export declare enum ModCallbackCustom {
8840
8856
  * function postEsauJr(player: EntityPlayer): void {}
8841
8857
  * ```
8842
8858
  */
8843
- POST_ESAU_JR = 15,
8859
+ POST_ESAU_JR = 16,
8844
8860
  /**
8845
8861
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
8846
8862
  *
@@ -8857,7 +8873,7 @@ export declare enum ModCallbackCustom {
8857
8873
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
8858
8874
  * ```
8859
8875
  */
8860
- POST_FAMILIAR_INIT_LATE = 16,
8876
+ POST_FAMILIAR_INIT_LATE = 17,
8861
8877
  /**
8862
8878
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
8863
8879
  * was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
@@ -8877,7 +8893,7 @@ export declare enum ModCallbackCustom {
8877
8893
  * ): void {}
8878
8894
  * ```
8879
8895
  */
8880
- POST_FAMILIAR_STATE_CHANGED = 17,
8896
+ POST_FAMILIAR_STATE_CHANGED = 18,
8881
8897
  /**
8882
8898
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
8883
8899
  * not updated to the new character until a game frame has passed.)
@@ -8889,7 +8905,7 @@ export declare enum ModCallbackCustom {
8889
8905
  * function postFirstEsauJr(player: EntityPlayer): void {}
8890
8906
  * ```
8891
8907
  */
8892
- POST_FIRST_ESAU_JR = 18,
8908
+ POST_FIRST_ESAU_JR = 19,
8893
8909
  /**
8894
8910
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
8895
8911
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -8902,7 +8918,7 @@ export declare enum ModCallbackCustom {
8902
8918
  * function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
8903
8919
  * ```
8904
8920
  */
8905
- POST_FIRST_FLIP = 19,
8921
+ POST_FIRST_FLIP = 20,
8906
8922
  /**
8907
8923
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
8908
8924
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -8915,7 +8931,7 @@ export declare enum ModCallbackCustom {
8915
8931
  * function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
8916
8932
  * ```
8917
8933
  */
8918
- POST_FLIP = 20,
8934
+ POST_FLIP = 21,
8919
8935
  /**
8920
8936
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
8921
8937
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -8926,7 +8942,7 @@ export declare enum ModCallbackCustom {
8926
8942
  * function postGameStartedReordered(isContinued: boolean): void {}
8927
8943
  * ```
8928
8944
  */
8929
- POST_GAME_STARTED_REORDERED = 21,
8945
+ POST_GAME_STARTED_REORDERED = 22,
8930
8946
  /**
8931
8947
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
8932
8948
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -8937,7 +8953,7 @@ export declare enum ModCallbackCustom {
8937
8953
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
8938
8954
  * ```
8939
8955
  */
8940
- POST_GAME_STARTED_REORDERED_LAST = 22,
8956
+ POST_GAME_STARTED_REORDERED_LAST = 23,
8941
8957
  /**
8942
8958
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
8943
8959
  *
@@ -8945,7 +8961,7 @@ export declare enum ModCallbackCustom {
8945
8961
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
8946
8962
  * ```
8947
8963
  */
8948
- POST_GREED_MODE_WAVE = 23,
8964
+ POST_GREED_MODE_WAVE = 24,
8949
8965
  /**
8950
8966
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
8951
8967
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -8964,7 +8980,7 @@ export declare enum ModCallbackCustom {
8964
8980
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
8965
8981
  * ```
8966
8982
  */
8967
- POST_GRID_ENTITY_BROKEN = 24,
8983
+ POST_GRID_ENTITY_BROKEN = 25,
8968
8984
  /**
8969
8985
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
8970
8986
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -8992,7 +9008,7 @@ export declare enum ModCallbackCustom {
8992
9008
  * ): void {}
8993
9009
  * ```
8994
9010
  */
8995
- POST_GRID_ENTITY_COLLISION = 25,
9011
+ POST_GRID_ENTITY_COLLISION = 26,
8996
9012
  /**
8997
9013
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
8998
9014
  * with the `spawnCustomGridEntity` helper function.
@@ -9009,7 +9025,7 @@ export declare enum ModCallbackCustom {
9009
9025
  * ): void {}
9010
9026
  * ```
9011
9027
  */
9012
- POST_GRID_ENTITY_CUSTOM_BROKEN = 26,
9028
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 27,
9013
9029
  /**
9014
9030
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
9015
9031
  * with the `spawnCustomGridEntity` helper function.
@@ -9033,7 +9049,7 @@ export declare enum ModCallbackCustom {
9033
9049
  * ): void {}
9034
9050
  * ```
9035
9051
  */
9036
- POST_GRID_ENTITY_CUSTOM_COLLISION = 27,
9052
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 28,
9037
9053
  /**
9038
9054
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
9039
9055
  * the `spawnCustomGridEntity` helper function.
@@ -9050,7 +9066,7 @@ export declare enum ModCallbackCustom {
9050
9066
  * ): void {}
9051
9067
  * ```
9052
9068
  */
9053
- POST_GRID_ENTITY_CUSTOM_INIT = 28,
9069
+ POST_GRID_ENTITY_CUSTOM_INIT = 29,
9054
9070
  /**
9055
9071
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
9056
9072
  * with the `spawnCustomGridEntity` helper function.
@@ -9067,7 +9083,7 @@ export declare enum ModCallbackCustom {
9067
9083
  * ): void {}
9068
9084
  * ```
9069
9085
  */
9070
- POST_GRID_ENTITY_CUSTOM_REMOVE = 29,
9086
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 30,
9071
9087
  /**
9072
9088
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
9073
9089
  * with the `spawnCustomGridEntity` helper function.
@@ -9084,7 +9100,7 @@ export declare enum ModCallbackCustom {
9084
9100
  * ): void {}
9085
9101
  * ```
9086
9102
  */
9087
- POST_GRID_ENTITY_CUSTOM_RENDER = 30,
9103
+ POST_GRID_ENTITY_CUSTOM_RENDER = 31,
9088
9104
  /**
9089
9105
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
9090
9106
  * created with the `spawnCustomGridEntity` helper function.
@@ -9103,7 +9119,7 @@ export declare enum ModCallbackCustom {
9103
9119
  * ): void {}
9104
9120
  * ```
9105
9121
  */
9106
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 31,
9122
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 32,
9107
9123
  /**
9108
9124
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
9109
9125
  * with the `spawnCustomGridEntity` helper function.
@@ -9120,7 +9136,7 @@ export declare enum ModCallbackCustom {
9120
9136
  * ): void {}
9121
9137
  * ```
9122
9138
  */
9123
- POST_GRID_ENTITY_CUSTOM_UPDATE = 32,
9139
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 33,
9124
9140
  /**
9125
9141
  * Fires when a new grid entity is initialized. Specifically, this is either:
9126
9142
  *
@@ -9142,7 +9158,7 @@ export declare enum ModCallbackCustom {
9142
9158
  * function postGridEntityInit(gridEntity: GridEntity): void {}
9143
9159
  * ```
9144
9160
  */
9145
- POST_GRID_ENTITY_INIT = 33,
9161
+ POST_GRID_ENTITY_INIT = 34,
9146
9162
  /**
9147
9163
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
9148
9164
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -9167,7 +9183,7 @@ export declare enum ModCallbackCustom {
9167
9183
  * ): void {}
9168
9184
  * ```
9169
9185
  */
9170
- POST_GRID_ENTITY_REMOVE = 34,
9186
+ POST_GRID_ENTITY_REMOVE = 35,
9171
9187
  /**
9172
9188
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
9173
9189
  *
@@ -9184,7 +9200,7 @@ export declare enum ModCallbackCustom {
9184
9200
  * function postGridEntityRender(gridEntity: GridEntity): void {}
9185
9201
  * ```
9186
9202
  */
9187
- POST_GRID_ENTITY_RENDER = 35,
9203
+ POST_GRID_ENTITY_RENDER = 36,
9188
9204
  /**
9189
9205
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
9190
9206
  * "state" refers to the `GridEntity.State` field.)
@@ -9206,7 +9222,7 @@ export declare enum ModCallbackCustom {
9206
9222
  * ): void {}
9207
9223
  * ```
9208
9224
  */
9209
- POST_GRID_ENTITY_STATE_CHANGED = 36,
9225
+ POST_GRID_ENTITY_STATE_CHANGED = 37,
9210
9226
  /**
9211
9227
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
9212
9228
  *
@@ -9223,7 +9239,7 @@ export declare enum ModCallbackCustom {
9223
9239
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
9224
9240
  * ```
9225
9241
  */
9226
- POST_GRID_ENTITY_UPDATE = 37,
9242
+ POST_GRID_ENTITY_UPDATE = 38,
9227
9243
  /**
9228
9244
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
9229
9245
  * temporary collectible effect.
@@ -9246,7 +9262,7 @@ export declare enum ModCallbackCustom {
9246
9262
  * ): void {}
9247
9263
  * ```
9248
9264
  */
9249
- POST_HOLY_MANTLE_REMOVED = 38,
9265
+ POST_HOLY_MANTLE_REMOVED = 39,
9250
9266
  /**
9251
9267
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
9252
9268
  * active collectible item, implying that the item was just used.
@@ -9269,7 +9285,7 @@ export declare enum ModCallbackCustom {
9269
9285
  * ): void {}
9270
9286
  * ```
9271
9287
  */
9272
- POST_ITEM_DISCHARGE = 39,
9288
+ POST_ITEM_DISCHARGE = 40,
9273
9289
  /**
9274
9290
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
9275
9291
  * when the animation of the player holding the item above their head is finished and the item is
@@ -9290,7 +9306,7 @@ export declare enum ModCallbackCustom {
9290
9306
  * ): void {}
9291
9307
  * ```
9292
9308
  */
9293
- POST_ITEM_PICKUP = 40,
9309
+ POST_ITEM_PICKUP = 41,
9294
9310
  /**
9295
9311
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
9296
9312
  *
@@ -9307,7 +9323,7 @@ export declare enum ModCallbackCustom {
9307
9323
  * function postKnifeInitLate(knife: EntityKnife): void {}
9308
9324
  * ```
9309
9325
  */
9310
- POST_KNIFE_INIT_LATE = 41,
9326
+ POST_KNIFE_INIT_LATE = 42,
9311
9327
  /**
9312
9328
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
9313
9329
  *
@@ -9324,7 +9340,7 @@ export declare enum ModCallbackCustom {
9324
9340
  * function postLaserInitLate(laser: EntityLaser): void {}
9325
9341
  * ```
9326
9342
  */
9327
- POST_LASER_INIT_LATE = 42,
9343
+ POST_LASER_INIT_LATE = 43,
9328
9344
  /**
9329
9345
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9330
9346
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -9341,7 +9357,7 @@ export declare enum ModCallbackCustom {
9341
9357
  * function postNewLevelReordered(): void {}
9342
9358
  * ```
9343
9359
  */
9344
- POST_NEW_LEVEL_REORDERED = 43,
9360
+ POST_NEW_LEVEL_REORDERED = 44,
9345
9361
  /**
9346
9362
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
9347
9363
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -9352,7 +9368,7 @@ export declare enum ModCallbackCustom {
9352
9368
  * function postNewRoomEarly(): void {}
9353
9369
  * ```
9354
9370
  */
9355
- POST_NEW_ROOM_EARLY = 44,
9371
+ POST_NEW_ROOM_EARLY = 45,
9356
9372
  /**
9357
9373
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9358
9374
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -9369,7 +9385,7 @@ export declare enum ModCallbackCustom {
9369
9385
  * function postNewRoomReordered(): void {}
9370
9386
  * ```
9371
9387
  */
9372
- POST_NEW_ROOM_REORDERED = 45,
9388
+ POST_NEW_ROOM_REORDERED = 46,
9373
9389
  /**
9374
9390
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
9375
9391
  * to specify extra arguments for additional filtration.
@@ -9382,7 +9398,7 @@ export declare enum ModCallbackCustom {
9382
9398
  * - You can provide an optional fifth argument that will make the callback only fire if it
9383
9399
  * matches the sub-type provided.
9384
9400
  */
9385
- POST_NPC_DEATH_FILTER = 46,
9401
+ POST_NPC_DEATH_FILTER = 47,
9386
9402
  /**
9387
9403
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
9388
9404
  * to specify extra arguments for additional filtration.
@@ -9395,7 +9411,7 @@ export declare enum ModCallbackCustom {
9395
9411
  * - You can provide an optional fifth argument that will make the callback only fire if it
9396
9412
  * matches the sub-type provided.
9397
9413
  */
9398
- POST_NPC_INIT_FILTER = 47,
9414
+ POST_NPC_INIT_FILTER = 48,
9399
9415
  /**
9400
9416
  * Fires on the first `NPC_UPDATE` frame for each NPC.
9401
9417
  *
@@ -9414,7 +9430,7 @@ export declare enum ModCallbackCustom {
9414
9430
  * function postNPCInitLate(npc: EntityNPC): void {}
9415
9431
  * ```
9416
9432
  */
9417
- POST_NPC_INIT_LATE = 48,
9433
+ POST_NPC_INIT_LATE = 49,
9418
9434
  /**
9419
9435
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
9420
9436
  * to specify extra arguments for additional filtration.
@@ -9427,7 +9443,7 @@ export declare enum ModCallbackCustom {
9427
9443
  * - You can provide an optional fifth argument that will make the callback only fire if it
9428
9444
  * matches the sub-type provided.
9429
9445
  */
9430
- POST_NPC_RENDER_FILTER = 49,
9446
+ POST_NPC_RENDER_FILTER = 50,
9431
9447
  /**
9432
9448
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
9433
9449
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -9448,7 +9464,7 @@ export declare enum ModCallbackCustom {
9448
9464
  * ): void {}
9449
9465
  * ```
9450
9466
  */
9451
- POST_NPC_STATE_CHANGED = 50,
9467
+ POST_NPC_STATE_CHANGED = 51,
9452
9468
  /**
9453
9469
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
9454
9470
  * to specify extra arguments for additional filtration.
@@ -9461,7 +9477,7 @@ export declare enum ModCallbackCustom {
9461
9477
  * - You can provide an optional fifth argument that will make the callback only fire if it
9462
9478
  * matches the sub-type provided.
9463
9479
  */
9464
- POST_NPC_UPDATE_FILTER = 51,
9480
+ POST_NPC_UPDATE_FILTER = 52,
9465
9481
  /**
9466
9482
  * Similar to the vanilla callback of the same name, but fires after the
9467
9483
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9486,7 +9502,7 @@ export declare enum ModCallbackCustom {
9486
9502
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
9487
9503
  * ```
9488
9504
  */
9489
- POST_PEFFECT_UPDATE_REORDERED = 52,
9505
+ POST_PEFFECT_UPDATE_REORDERED = 53,
9490
9506
  /**
9491
9507
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
9492
9508
  *
@@ -9505,7 +9521,7 @@ export declare enum ModCallbackCustom {
9505
9521
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
9506
9522
  * ```
9507
9523
  */
9508
- POST_PICKUP_COLLECT = 53,
9524
+ POST_PICKUP_COLLECT = 54,
9509
9525
  /**
9510
9526
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
9511
9527
  * respective pickup on the run.
@@ -9523,7 +9539,7 @@ export declare enum ModCallbackCustom {
9523
9539
  * function postPickupInitFirst(pickup: EntityPickup): void {}
9524
9540
  * ```
9525
9541
  */
9526
- POST_PICKUP_INIT_FIRST = 54,
9542
+ POST_PICKUP_INIT_FIRST = 55,
9527
9543
  /**
9528
9544
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
9529
9545
  *
@@ -9540,7 +9556,7 @@ export declare enum ModCallbackCustom {
9540
9556
  * function postPickupInitLate(pickup: EntityPickup): void {}
9541
9557
  * ```
9542
9558
  */
9543
- POST_PICKUP_INIT_LATE = 55,
9559
+ POST_PICKUP_INIT_LATE = 56,
9544
9560
  /**
9545
9561
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
9546
9562
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -9559,7 +9575,7 @@ export declare enum ModCallbackCustom {
9559
9575
  * ): void {}
9560
9576
  * ```
9561
9577
  */
9562
- POST_PICKUP_STATE_CHANGED = 56,
9578
+ POST_PICKUP_STATE_CHANGED = 57,
9563
9579
  /**
9564
9580
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
9565
9581
  *
@@ -9571,7 +9587,7 @@ export declare enum ModCallbackCustom {
9571
9587
  * function postPitRender(pit: GridEntityPit): void {}
9572
9588
  * ```
9573
9589
  */
9574
- POST_PIT_RENDER = 57,
9590
+ POST_PIT_RENDER = 58,
9575
9591
  /**
9576
9592
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
9577
9593
  *
@@ -9583,7 +9599,7 @@ export declare enum ModCallbackCustom {
9583
9599
  * function postPitUpdate(pit: GridEntityPit): void {}
9584
9600
  * ```
9585
9601
  */
9586
- POST_PIT_UPDATE = 58,
9602
+ POST_PIT_UPDATE = 59,
9587
9603
  /**
9588
9604
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
9589
9605
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -9605,7 +9621,7 @@ export declare enum ModCallbackCustom {
9605
9621
  * ): void {}
9606
9622
  * ```
9607
9623
  */
9608
- POST_PLAYER_CHANGE_HEALTH = 59,
9624
+ POST_PLAYER_CHANGE_HEALTH = 60,
9609
9625
  /**
9610
9626
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
9611
9627
  * from what they were on the previous frame.
@@ -9635,7 +9651,7 @@ export declare enum ModCallbackCustom {
9635
9651
  * ) => void {}
9636
9652
  * ```
9637
9653
  */
9638
- POST_PLAYER_CHANGE_STAT = 60,
9654
+ POST_PLAYER_CHANGE_STAT = 61,
9639
9655
  /**
9640
9656
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
9641
9657
  * type
@@ -9658,7 +9674,7 @@ export declare enum ModCallbackCustom {
9658
9674
  * ): void {}
9659
9675
  * ```
9660
9676
  */
9661
- POST_PLAYER_CHANGE_TYPE = 61,
9677
+ POST_PLAYER_CHANGE_TYPE = 62,
9662
9678
  /**
9663
9679
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
9664
9680
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -9675,7 +9691,7 @@ export declare enum ModCallbackCustom {
9675
9691
  * ): void {}
9676
9692
  * ```
9677
9693
  */
9678
- POST_PLAYER_COLLECTIBLE_ADDED = 62,
9694
+ POST_PLAYER_COLLECTIBLE_ADDED = 63,
9679
9695
  /**
9680
9696
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
9681
9697
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -9692,7 +9708,7 @@ export declare enum ModCallbackCustom {
9692
9708
  * ): void {}
9693
9709
  * ```
9694
9710
  */
9695
- POST_PLAYER_COLLECTIBLE_REMOVED = 63,
9711
+ POST_PLAYER_COLLECTIBLE_REMOVED = 64,
9696
9712
  /**
9697
9713
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
9698
9714
  * prevent the fatal damage.
@@ -9710,7 +9726,7 @@ export declare enum ModCallbackCustom {
9710
9726
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
9711
9727
  * ```
9712
9728
  */
9713
- POST_PLAYER_FATAL_DAMAGE = 64,
9729
+ POST_PLAYER_FATAL_DAMAGE = 65,
9714
9730
  /**
9715
9731
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
9716
9732
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -9732,7 +9748,7 @@ export declare enum ModCallbackCustom {
9732
9748
  * function postPlayerInitFirst(player: EntityPlayer): void {}
9733
9749
  * ```
9734
9750
  */
9735
- POST_PLAYER_INIT_FIRST = 65,
9751
+ POST_PLAYER_INIT_FIRST = 66,
9736
9752
  /**
9737
9753
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
9738
9754
  *
@@ -9752,7 +9768,7 @@ export declare enum ModCallbackCustom {
9752
9768
  * function postPlayerInitLate(pickup: EntityPickup): void {}
9753
9769
  * ```
9754
9770
  */
9755
- POST_PLAYER_INIT_LATE = 66,
9771
+ POST_PLAYER_INIT_LATE = 67,
9756
9772
  /**
9757
9773
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
9758
9774
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -9776,7 +9792,7 @@ export declare enum ModCallbackCustom {
9776
9792
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
9777
9793
  * ```
9778
9794
  */
9779
- POST_PLAYER_RENDER_REORDERED = 67,
9795
+ POST_PLAYER_RENDER_REORDERED = 68,
9780
9796
  /**
9781
9797
  * Similar to the vanilla callback of the same name, but fires after the
9782
9798
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9801,7 +9817,7 @@ export declare enum ModCallbackCustom {
9801
9817
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
9802
9818
  * ```
9803
9819
  */
9804
- POST_PLAYER_UPDATE_REORDERED = 68,
9820
+ POST_PLAYER_UPDATE_REORDERED = 69,
9805
9821
  /**
9806
9822
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
9807
9823
  *
@@ -9813,7 +9829,7 @@ export declare enum ModCallbackCustom {
9813
9829
  * function postPoopRender(poop: GridEntityPoop): void {}
9814
9830
  * ```
9815
9831
  */
9816
- POST_POOP_RENDER = 69,
9832
+ POST_POOP_RENDER = 70,
9817
9833
  /**
9818
9834
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
9819
9835
  *
@@ -9825,7 +9841,7 @@ export declare enum ModCallbackCustom {
9825
9841
  * function postPoopUpdate(poop: GridEntityPoop): void {}
9826
9842
  * ```
9827
9843
  */
9828
- POST_POOP_UPDATE = 70,
9844
+ POST_POOP_UPDATE = 71,
9829
9845
  /**
9830
9846
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
9831
9847
  *
@@ -9837,7 +9853,7 @@ export declare enum ModCallbackCustom {
9837
9853
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
9838
9854
  * ```
9839
9855
  */
9840
- POST_PRESSURE_PLATE_RENDER = 71,
9856
+ POST_PRESSURE_PLATE_RENDER = 72,
9841
9857
  /**
9842
9858
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
9843
9859
  *
@@ -9849,7 +9865,7 @@ export declare enum ModCallbackCustom {
9849
9865
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
9850
9866
  * ```
9851
9867
  */
9852
- POST_PRESSURE_PLATE_UPDATE = 72,
9868
+ POST_PRESSURE_PLATE_UPDATE = 73,
9853
9869
  /**
9854
9870
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
9855
9871
  *
@@ -9866,7 +9882,7 @@ export declare enum ModCallbackCustom {
9866
9882
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
9867
9883
  * ```
9868
9884
  */
9869
- POST_PROJECTILE_INIT_LATE = 73,
9885
+ POST_PROJECTILE_INIT_LATE = 74,
9870
9886
  /**
9871
9887
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
9872
9888
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -9882,7 +9898,7 @@ export declare enum ModCallbackCustom {
9882
9898
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
9883
9899
  * ```
9884
9900
  */
9885
- POST_PURCHASE = 74,
9901
+ POST_PURCHASE = 75,
9886
9902
  /**
9887
9903
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
9888
9904
  *
@@ -9896,7 +9912,7 @@ export declare enum ModCallbackCustom {
9896
9912
  * function postRockRender(rock: GridEntityRock): void {}
9897
9913
  * ```
9898
9914
  */
9899
- POST_ROCK_RENDER = 75,
9915
+ POST_ROCK_RENDER = 76,
9900
9916
  /**
9901
9917
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
9902
9918
  *
@@ -9910,7 +9926,7 @@ export declare enum ModCallbackCustom {
9910
9926
  * function postRockUpdate(rock: GridEntityRock): void {}
9911
9927
  * ```
9912
9928
  */
9913
- POST_ROCK_UPDATE = 76,
9929
+ POST_ROCK_UPDATE = 77,
9914
9930
  /**
9915
9931
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
9916
9932
  * the `Room.IsClear` method).
@@ -9927,7 +9943,7 @@ export declare enum ModCallbackCustom {
9927
9943
  * function postRoomClearChanged(roomClear: boolean): void {}
9928
9944
  * ```
9929
9945
  */
9930
- POST_ROOM_CLEAR_CHANGED = 77,
9946
+ POST_ROOM_CLEAR_CHANGED = 78,
9931
9947
  /**
9932
9948
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
9933
9949
  * Room.
@@ -9942,7 +9958,7 @@ export declare enum ModCallbackCustom {
9942
9958
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
9943
9959
  * ```
9944
9960
  */
9945
- POST_SACRIFICE = 78,
9961
+ POST_SACRIFICE = 79,
9946
9962
  /**
9947
9963
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
9948
9964
  *
@@ -9956,7 +9972,7 @@ export declare enum ModCallbackCustom {
9956
9972
  * function postSlotAnimationChanged(slot: Entity): void {}
9957
9973
  * ```
9958
9974
  */
9959
- POST_SLOT_ANIMATION_CHANGED = 79,
9975
+ POST_SLOT_ANIMATION_CHANGED = 80,
9960
9976
  /**
9961
9977
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
9962
9978
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -9980,7 +9996,7 @@ export declare enum ModCallbackCustom {
9980
9996
  * ): void {}
9981
9997
  * ```
9982
9998
  */
9983
- POST_SLOT_COLLISION = 80,
9999
+ POST_SLOT_COLLISION = 81,
9984
10000
  /**
9985
10001
  * Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
9986
10002
  * has broken.
@@ -9995,7 +10011,7 @@ export declare enum ModCallbackCustom {
9995
10011
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
9996
10012
  * ```
9997
10013
  */
9998
- POST_SLOT_DESTROYED = 81,
10014
+ POST_SLOT_DESTROYED = 82,
9999
10015
  /**
10000
10016
  * Fires when a new slot entity is initialized. Specifically, this is either:
10001
10017
  *
@@ -10014,7 +10030,7 @@ export declare enum ModCallbackCustom {
10014
10030
  * function postSlotInit(slot: Entity): void {}
10015
10031
  * ```
10016
10032
  */
10017
- POST_SLOT_INIT = 82,
10033
+ POST_SLOT_INIT = 83,
10018
10034
  /**
10019
10035
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
10020
10036
  *
@@ -10028,7 +10044,7 @@ export declare enum ModCallbackCustom {
10028
10044
  * function postSlotRender(slot: Entity): void {}
10029
10045
  * ```
10030
10046
  */
10031
- POST_SLOT_RENDER = 83,
10047
+ POST_SLOT_RENDER = 84,
10032
10048
  /**
10033
10049
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
10034
10050
  *
@@ -10042,7 +10058,7 @@ export declare enum ModCallbackCustom {
10042
10058
  * function postSlotUpdate(slot: Entity): void {}
10043
10059
  * ```
10044
10060
  */
10045
- POST_SLOT_UPDATE = 84,
10061
+ POST_SLOT_UPDATE = 85,
10046
10062
  /**
10047
10063
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
10048
10064
  *
@@ -10054,7 +10070,7 @@ export declare enum ModCallbackCustom {
10054
10070
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
10055
10071
  * ```
10056
10072
  */
10057
- POST_SPIKES_RENDER = 85,
10073
+ POST_SPIKES_RENDER = 86,
10058
10074
  /**
10059
10075
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
10060
10076
  *
@@ -10066,7 +10082,7 @@ export declare enum ModCallbackCustom {
10066
10082
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
10067
10083
  * ```
10068
10084
  */
10069
- POST_SPIKES_UPDATE = 86,
10085
+ POST_SPIKES_UPDATE = 87,
10070
10086
  /**
10071
10087
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
10072
10088
  * `EntityTear.FrameCount` is equal to 0).
@@ -10084,7 +10100,7 @@ export declare enum ModCallbackCustom {
10084
10100
  * function postTearInitLate(tear: EntityTear): void {}
10085
10101
  * ```
10086
10102
  */
10087
- POST_TEAR_INIT_LATE = 87,
10103
+ POST_TEAR_INIT_LATE = 88,
10088
10104
  /**
10089
10105
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
10090
10106
  * `EntityTear.FrameCount` is equal to 1).
@@ -10101,7 +10117,7 @@ export declare enum ModCallbackCustom {
10101
10117
  * function postTearInitVeryLate(tear: EntityTear): void {}
10102
10118
  * ```
10103
10119
  */
10104
- POST_TEAR_INIT_VERY_LATE = 88,
10120
+ POST_TEAR_INIT_VERY_LATE = 89,
10105
10121
  /**
10106
10122
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
10107
10123
  *
@@ -10113,7 +10129,7 @@ export declare enum ModCallbackCustom {
10113
10129
  * function postTNTRender(tnt: GridEntityTNT): void {}
10114
10130
  * ```
10115
10131
  */
10116
- POST_TNT_RENDER = 89,
10132
+ POST_TNT_RENDER = 90,
10117
10133
  /**
10118
10134
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
10119
10135
  *
@@ -10125,7 +10141,7 @@ export declare enum ModCallbackCustom {
10125
10141
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
10126
10142
  * ```
10127
10143
  */
10128
- POST_TNT_UPDATE = 90,
10144
+ POST_TNT_UPDATE = 91,
10129
10145
  /**
10130
10146
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
10131
10147
  * transformation.
@@ -10144,7 +10160,7 @@ export declare enum ModCallbackCustom {
10144
10160
  * ): void {}
10145
10161
  * ```
10146
10162
  */
10147
- POST_TRANSFORMATION = 91,
10163
+ POST_TRANSFORMATION = 92,
10148
10164
  /**
10149
10165
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
10150
10166
  *
@@ -10159,7 +10175,7 @@ export declare enum ModCallbackCustom {
10159
10175
  * ): void {}
10160
10176
  * ```
10161
10177
  */
10162
- POST_TRINKET_BREAK = 92,
10178
+ POST_TRINKET_BREAK = 93,
10163
10179
  /**
10164
10180
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
10165
10181
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -10175,7 +10191,7 @@ export declare enum ModCallbackCustom {
10175
10191
  * function preBerserkDeath(player: EntityPlayer): void {}
10176
10192
  * ```
10177
10193
  */
10178
- PRE_BERSERK_DEATH = 93,
10194
+ PRE_BERSERK_DEATH = 94,
10179
10195
  /**
10180
10196
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
10181
10197
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -10194,7 +10210,7 @@ export declare enum ModCallbackCustom {
10194
10210
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
10195
10211
  * ```
10196
10212
  */
10197
- PRE_CUSTOM_REVIVE = 94,
10213
+ PRE_CUSTOM_REVIVE = 95,
10198
10214
  /**
10199
10215
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
10200
10216
  * meets all of the conditions to pick it up.
@@ -10214,7 +10230,7 @@ export declare enum ModCallbackCustom {
10214
10230
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
10215
10231
  * ```
10216
10232
  */
10217
- PRE_GET_PEDESTAL = 95,
10233
+ PRE_GET_PEDESTAL = 96,
10218
10234
  /**
10219
10235
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
10220
10236
  * the player begins to hold the item above their head).
@@ -10234,7 +10250,7 @@ export declare enum ModCallbackCustom {
10234
10250
  * ): void {}
10235
10251
  * ```
10236
10252
  */
10237
- PRE_ITEM_PICKUP = 96,
10253
+ PRE_ITEM_PICKUP = 97,
10238
10254
  /**
10239
10255
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
10240
10256
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -10248,7 +10264,7 @@ export declare enum ModCallbackCustom {
10248
10264
  * function preNewLevel(player: EntityPlayer): void {}
10249
10265
  * ```
10250
10266
  */
10251
- PRE_NEW_LEVEL = 97,
10267
+ PRE_NEW_LEVEL = 98,
10252
10268
  /**
10253
10269
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
10254
10270
  * you to specify extra arguments for additional filtration.
@@ -10261,7 +10277,7 @@ export declare enum ModCallbackCustom {
10261
10277
  * - You can provide an optional fifth argument that will make the callback only fire if it
10262
10278
  * matches the sub-type provided.
10263
10279
  */
10264
- PRE_NPC_COLLISION_FILTER = 98,
10280
+ PRE_NPC_COLLISION_FILTER = 99,
10265
10281
  /**
10266
10282
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
10267
10283
  * to specify extra arguments for additional filtration.
@@ -10274,7 +10290,7 @@ export declare enum ModCallbackCustom {
10274
10290
  * - You can provide an optional fifth argument that will make the callback only fire if it
10275
10291
  * matches the sub-type provided.
10276
10292
  */
10277
- PRE_NPC_UPDATE_FILTER = 99
10293
+ PRE_NPC_UPDATE_FILTER = 100
10278
10294
  }
10279
10295
 
10280
10296
  /**