isaacscript-common 18.2.1 → 18.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ import { GridCollisionClass } from 'isaac-typescript-definitions';
36
36
  import { GridEntityType } from 'isaac-typescript-definitions';
37
37
  import { GridEntityXMLType } from 'isaac-typescript-definitions';
38
38
  import { HeartSubType } from 'isaac-typescript-definitions';
39
+ import { InputHook } from 'isaac-typescript-definitions';
39
40
  import { ItemConfigCardType } from 'isaac-typescript-definitions';
40
41
  import { ItemConfigChargeType } from 'isaac-typescript-definitions';
41
42
  import { ItemConfigPillEffectClass } from 'isaac-typescript-definitions';
@@ -96,6 +97,18 @@ declare interface AddCallbackParametersCustom {
96
97
  playerVariant?: PlayerVariant,
97
98
  character?: PlayerType
98
99
  ];
100
+ [ModCallbackCustom.INPUT_ACTION_FILTER]: [
101
+ callback: (entity: Entity | undefined, inputHook: InputHook, buttonAction: ButtonAction) => boolean | float | undefined,
102
+ inputHook?: InputHook,
103
+ buttonAction?: ButtonAction
104
+ ];
105
+ [ModCallbackCustom.INPUT_ACTION_PLAYER]: [
106
+ callback: (player: EntityPlayer, inputHook: InputHook, buttonAction: ButtonAction) => boolean | float | undefined,
107
+ playerVariant?: PlayerVariant,
108
+ character?: PlayerType,
109
+ inputHook?: InputHook,
110
+ buttonAction?: ButtonAction
111
+ ];
99
112
  [ModCallbackCustom.POST_AMBUSH_FINISHED]: [
100
113
  callback: (ambushType: AmbushType) => void,
101
114
  ambushType?: AmbushType
@@ -8659,6 +8672,48 @@ export declare enum ModCallbackCustom {
8659
8672
  * ```
8660
8673
  */
8661
8674
  ENTITY_TAKE_DMG_PLAYER = 1,
8675
+ /**
8676
+ * The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback allows you to
8677
+ * specify extra arguments for additional filtration.
8678
+ *
8679
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
8680
+ * - You can provide an optional third argument that will make the callback only fire if it
8681
+ * matches the `InputHook` provided.
8682
+ * - You can provide an optional fourth argument that will make the callback only fire if it
8683
+ * matches the `ButtonAction` provided.
8684
+ *
8685
+ * ```ts
8686
+ * function inputActionFilter(
8687
+ * entity: Entity | undefined,
8688
+ * inputHook: InputHook,
8689
+ * buttonAction: ButtonAction,
8690
+ * ): boolean | undefined {}
8691
+ * ```
8692
+ */
8693
+ INPUT_ACTION_FILTER = 2,
8694
+ /**
8695
+ * The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback automatically
8696
+ * filters for `EntityType.ENTITY_PLAYER` and casts the `Entity` object to a `EntityPlayer`. It
8697
+ * also allows you to specify extra arguments for additional filtration.
8698
+ *
8699
+ * - You can provide an optional third argument that will make the callback only fire if it
8700
+ * matches the `PlayerVariant` provided.
8701
+ * - You can provide an optional fourth argument that will make the callback only fire if it
8702
+ * matches the `PlayerType` provided.
8703
+ * - You can provide an optional fifth argument that will make the callback only fire if it
8704
+ * matches the `InputHook` provided.
8705
+ * - You can provide an optional sixth argument that will make the callback only fire if it
8706
+ * matches the `ButtonAction` provided.
8707
+ *
8708
+ * ```ts
8709
+ * function inputActionPlayer(
8710
+ * player: EntityPlayer,
8711
+ * inputHook: InputHook,
8712
+ * buttonAction: ButtonAction,
8713
+ * ): boolean | undefined {}
8714
+ * ```
8715
+ */
8716
+ INPUT_ACTION_PLAYER = 3,
8662
8717
  /**
8663
8718
  * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
8664
8719
  * Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
@@ -8671,7 +8726,7 @@ export declare enum ModCallbackCustom {
8671
8726
  * function postAmbushFinished(ambushType: AmbushType): void {}
8672
8727
  * ```
8673
8728
  */
8674
- POST_AMBUSH_FINISHED = 2,
8729
+ POST_AMBUSH_FINISHED = 4,
8675
8730
  /**
8676
8731
  * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
8677
8732
  * Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
@@ -8684,7 +8739,7 @@ export declare enum ModCallbackCustom {
8684
8739
  * function postAmbushStarted(ambushType: AmbushType): void {}
8685
8740
  * ```
8686
8741
  */
8687
- POST_AMBUSH_STARTED = 3,
8742
+ POST_AMBUSH_STARTED = 5,
8688
8743
  /**
8689
8744
  * Fires on the `POST_BOMB_UPDATE` callback that it explodes.
8690
8745
  *
@@ -8698,7 +8753,7 @@ export declare enum ModCallbackCustom {
8698
8753
  * function postBombDetonated(bomb: EntityBomb): void {}
8699
8754
  * ```
8700
8755
  */
8701
- POST_BOMB_EXPLODED = 4,
8756
+ POST_BOMB_EXPLODED = 6,
8702
8757
  /**
8703
8758
  * Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
8704
8759
  *
@@ -8715,7 +8770,7 @@ export declare enum ModCallbackCustom {
8715
8770
  * function postBombInitLate(bomb: EntityBomb): void {}
8716
8771
  * ```
8717
8772
  */
8718
- POST_BOMB_INIT_LATE = 5,
8773
+ POST_BOMB_INIT_LATE = 7,
8719
8774
  /**
8720
8775
  * Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
8721
8776
  *
@@ -8723,7 +8778,7 @@ export declare enum ModCallbackCustom {
8723
8778
  * function postBoneSwing(boneClub: EntityKnife): void {}
8724
8779
  * ```
8725
8780
  */
8726
- POST_BONE_SWING = 6,
8781
+ POST_BONE_SWING = 8,
8727
8782
  /**
8728
8783
  * Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
8729
8784
  * to `CollectibleType.NULL` (i.e. an "empty" pedestal).
@@ -8739,7 +8794,7 @@ export declare enum ModCallbackCustom {
8739
8794
  * ): void {}
8740
8795
  * ```
8741
8796
  */
8742
- POST_COLLECTIBLE_EMPTY = 7,
8797
+ POST_COLLECTIBLE_EMPTY = 9,
8743
8798
  /**
8744
8799
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
8745
8800
  * respective collectible on the run. For more details on how this is calculated, see the
@@ -8757,7 +8812,7 @@ export declare enum ModCallbackCustom {
8757
8812
  * function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
8758
8813
  * ```
8759
8814
  */
8760
- POST_COLLECTIBLE_INIT_FIRST = 8,
8815
+ POST_COLLECTIBLE_INIT_FIRST = 10,
8761
8816
  /**
8762
8817
  * Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
8763
8818
  * begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
@@ -8773,7 +8828,7 @@ export declare enum ModCallbackCustom {
8773
8828
  * function postCursedTeleport(player: EntityPlayer): void {}
8774
8829
  * ```
8775
8830
  */
8776
- POST_CURSED_TELEPORT = 9,
8831
+ POST_CURSED_TELEPORT = 11,
8777
8832
  /**
8778
8833
  * Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
8779
8834
  * has teleported to the previous room, and is ready to play the animation for the modded revival
@@ -8791,7 +8846,7 @@ export declare enum ModCallbackCustom {
8791
8846
  * function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
8792
8847
  * ```
8793
8848
  */
8794
- POST_CUSTOM_REVIVE = 10,
8849
+ POST_CUSTOM_REVIVE = 12,
8795
8850
  /**
8796
8851
  * Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
8797
8852
  * Room floor.
@@ -8807,7 +8862,7 @@ export declare enum ModCallbackCustom {
8807
8862
  * ): void {}
8808
8863
  * ```
8809
8864
  */
8810
- POST_DICE_ROOM_ACTIVATED = 11,
8865
+ POST_DICE_ROOM_ACTIVATED = 13,
8811
8866
  /**
8812
8867
  * Fires from the `POST_RENDER` callback on every frame that a door exists.
8813
8868
  *
@@ -8819,7 +8874,7 @@ export declare enum ModCallbackCustom {
8819
8874
  * function postDoorRender(door: GridEntityDoor): void {}
8820
8875
  * ```
8821
8876
  */
8822
- POST_DOOR_RENDER = 12,
8877
+ POST_DOOR_RENDER = 14,
8823
8878
  /**
8824
8879
  * Fires from the `POST_UPDATE` callback on every frame that a door exists.
8825
8880
  *
@@ -8831,7 +8886,7 @@ export declare enum ModCallbackCustom {
8831
8886
  * function postDoorUpdate(door: GridEntityDoor): void {}
8832
8887
  * ```
8833
8888
  */
8834
- POST_DOOR_UPDATE = 13,
8889
+ POST_DOOR_UPDATE = 15,
8835
8890
  /**
8836
8891
  * Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
8837
8892
  *
@@ -8848,7 +8903,7 @@ export declare enum ModCallbackCustom {
8848
8903
  * function postEffectInitLate(effect: EntityEffect): void {}
8849
8904
  * ```
8850
8905
  */
8851
- POST_EFFECT_INIT_LATE = 14,
8906
+ POST_EFFECT_INIT_LATE = 16,
8852
8907
  /**
8853
8908
  * Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
8854
8909
  * was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
@@ -8867,7 +8922,7 @@ export declare enum ModCallbackCustom {
8867
8922
  * ): void {}
8868
8923
  * ```
8869
8924
  */
8870
- POST_EFFECT_STATE_CHANGED = 15,
8925
+ POST_EFFECT_STATE_CHANGED = 17,
8871
8926
  /**
8872
8927
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
8873
8928
  * updated to the new character until a game frame has passed.)
@@ -8876,7 +8931,7 @@ export declare enum ModCallbackCustom {
8876
8931
  * function postEsauJr(player: EntityPlayer): void {}
8877
8932
  * ```
8878
8933
  */
8879
- POST_ESAU_JR = 16,
8934
+ POST_ESAU_JR = 18,
8880
8935
  /**
8881
8936
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
8882
8937
  *
@@ -8893,7 +8948,7 @@ export declare enum ModCallbackCustom {
8893
8948
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
8894
8949
  * ```
8895
8950
  */
8896
- POST_FAMILIAR_INIT_LATE = 17,
8951
+ POST_FAMILIAR_INIT_LATE = 19,
8897
8952
  /**
8898
8953
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
8899
8954
  * was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
@@ -8913,7 +8968,7 @@ export declare enum ModCallbackCustom {
8913
8968
  * ): void {}
8914
8969
  * ```
8915
8970
  */
8916
- POST_FAMILIAR_STATE_CHANGED = 18,
8971
+ POST_FAMILIAR_STATE_CHANGED = 20,
8917
8972
  /**
8918
8973
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
8919
8974
  * not updated to the new character until a game frame has passed.)
@@ -8925,7 +8980,7 @@ export declare enum ModCallbackCustom {
8925
8980
  * function postFirstEsauJr(player: EntityPlayer): void {}
8926
8981
  * ```
8927
8982
  */
8928
- POST_FIRST_ESAU_JR = 19,
8983
+ POST_FIRST_ESAU_JR = 21,
8929
8984
  /**
8930
8985
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
8931
8986
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -8938,7 +8993,7 @@ export declare enum ModCallbackCustom {
8938
8993
  * function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
8939
8994
  * ```
8940
8995
  */
8941
- POST_FIRST_FLIP = 20,
8996
+ POST_FIRST_FLIP = 22,
8942
8997
  /**
8943
8998
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
8944
8999
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -8951,7 +9006,7 @@ export declare enum ModCallbackCustom {
8951
9006
  * function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
8952
9007
  * ```
8953
9008
  */
8954
- POST_FLIP = 21,
9009
+ POST_FLIP = 23,
8955
9010
  /**
8956
9011
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
8957
9012
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -8962,7 +9017,7 @@ export declare enum ModCallbackCustom {
8962
9017
  * function postGameStartedReordered(isContinued: boolean): void {}
8963
9018
  * ```
8964
9019
  */
8965
- POST_GAME_STARTED_REORDERED = 22,
9020
+ POST_GAME_STARTED_REORDERED = 24,
8966
9021
  /**
8967
9022
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
8968
9023
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -8973,7 +9028,7 @@ export declare enum ModCallbackCustom {
8973
9028
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
8974
9029
  * ```
8975
9030
  */
8976
- POST_GAME_STARTED_REORDERED_LAST = 23,
9031
+ POST_GAME_STARTED_REORDERED_LAST = 25,
8977
9032
  /**
8978
9033
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
8979
9034
  *
@@ -8981,7 +9036,7 @@ export declare enum ModCallbackCustom {
8981
9036
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
8982
9037
  * ```
8983
9038
  */
8984
- POST_GREED_MODE_WAVE = 24,
9039
+ POST_GREED_MODE_WAVE = 26,
8985
9040
  /**
8986
9041
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
8987
9042
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -9000,7 +9055,7 @@ export declare enum ModCallbackCustom {
9000
9055
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
9001
9056
  * ```
9002
9057
  */
9003
- POST_GRID_ENTITY_BROKEN = 25,
9058
+ POST_GRID_ENTITY_BROKEN = 27,
9004
9059
  /**
9005
9060
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
9006
9061
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -9028,7 +9083,7 @@ export declare enum ModCallbackCustom {
9028
9083
  * ): void {}
9029
9084
  * ```
9030
9085
  */
9031
- POST_GRID_ENTITY_COLLISION = 26,
9086
+ POST_GRID_ENTITY_COLLISION = 28,
9032
9087
  /**
9033
9088
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
9034
9089
  * with the `spawnCustomGridEntity` helper function.
@@ -9045,7 +9100,7 @@ export declare enum ModCallbackCustom {
9045
9100
  * ): void {}
9046
9101
  * ```
9047
9102
  */
9048
- POST_GRID_ENTITY_CUSTOM_BROKEN = 27,
9103
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 29,
9049
9104
  /**
9050
9105
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
9051
9106
  * with the `spawnCustomGridEntity` helper function.
@@ -9069,7 +9124,7 @@ export declare enum ModCallbackCustom {
9069
9124
  * ): void {}
9070
9125
  * ```
9071
9126
  */
9072
- POST_GRID_ENTITY_CUSTOM_COLLISION = 28,
9127
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 30,
9073
9128
  /**
9074
9129
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
9075
9130
  * the `spawnCustomGridEntity` helper function.
@@ -9086,7 +9141,7 @@ export declare enum ModCallbackCustom {
9086
9141
  * ): void {}
9087
9142
  * ```
9088
9143
  */
9089
- POST_GRID_ENTITY_CUSTOM_INIT = 29,
9144
+ POST_GRID_ENTITY_CUSTOM_INIT = 31,
9090
9145
  /**
9091
9146
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
9092
9147
  * with the `spawnCustomGridEntity` helper function.
@@ -9103,7 +9158,7 @@ export declare enum ModCallbackCustom {
9103
9158
  * ): void {}
9104
9159
  * ```
9105
9160
  */
9106
- POST_GRID_ENTITY_CUSTOM_REMOVE = 30,
9161
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 32,
9107
9162
  /**
9108
9163
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
9109
9164
  * with the `spawnCustomGridEntity` helper function.
@@ -9120,7 +9175,7 @@ export declare enum ModCallbackCustom {
9120
9175
  * ): void {}
9121
9176
  * ```
9122
9177
  */
9123
- POST_GRID_ENTITY_CUSTOM_RENDER = 31,
9178
+ POST_GRID_ENTITY_CUSTOM_RENDER = 33,
9124
9179
  /**
9125
9180
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
9126
9181
  * created with the `spawnCustomGridEntity` helper function.
@@ -9139,7 +9194,7 @@ export declare enum ModCallbackCustom {
9139
9194
  * ): void {}
9140
9195
  * ```
9141
9196
  */
9142
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 32,
9197
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 34,
9143
9198
  /**
9144
9199
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
9145
9200
  * with the `spawnCustomGridEntity` helper function.
@@ -9156,7 +9211,7 @@ export declare enum ModCallbackCustom {
9156
9211
  * ): void {}
9157
9212
  * ```
9158
9213
  */
9159
- POST_GRID_ENTITY_CUSTOM_UPDATE = 33,
9214
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 35,
9160
9215
  /**
9161
9216
  * Fires when a new grid entity is initialized. Specifically, this is either:
9162
9217
  *
@@ -9178,7 +9233,7 @@ export declare enum ModCallbackCustom {
9178
9233
  * function postGridEntityInit(gridEntity: GridEntity): void {}
9179
9234
  * ```
9180
9235
  */
9181
- POST_GRID_ENTITY_INIT = 34,
9236
+ POST_GRID_ENTITY_INIT = 36,
9182
9237
  /**
9183
9238
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
9184
9239
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -9203,7 +9258,7 @@ export declare enum ModCallbackCustom {
9203
9258
  * ): void {}
9204
9259
  * ```
9205
9260
  */
9206
- POST_GRID_ENTITY_REMOVE = 35,
9261
+ POST_GRID_ENTITY_REMOVE = 37,
9207
9262
  /**
9208
9263
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
9209
9264
  *
@@ -9220,7 +9275,7 @@ export declare enum ModCallbackCustom {
9220
9275
  * function postGridEntityRender(gridEntity: GridEntity): void {}
9221
9276
  * ```
9222
9277
  */
9223
- POST_GRID_ENTITY_RENDER = 36,
9278
+ POST_GRID_ENTITY_RENDER = 38,
9224
9279
  /**
9225
9280
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
9226
9281
  * "state" refers to the `GridEntity.State` field.)
@@ -9242,7 +9297,7 @@ export declare enum ModCallbackCustom {
9242
9297
  * ): void {}
9243
9298
  * ```
9244
9299
  */
9245
- POST_GRID_ENTITY_STATE_CHANGED = 37,
9300
+ POST_GRID_ENTITY_STATE_CHANGED = 39,
9246
9301
  /**
9247
9302
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
9248
9303
  *
@@ -9259,7 +9314,7 @@ export declare enum ModCallbackCustom {
9259
9314
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
9260
9315
  * ```
9261
9316
  */
9262
- POST_GRID_ENTITY_UPDATE = 38,
9317
+ POST_GRID_ENTITY_UPDATE = 40,
9263
9318
  /**
9264
9319
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
9265
9320
  * temporary collectible effect.
@@ -9282,7 +9337,7 @@ export declare enum ModCallbackCustom {
9282
9337
  * ): void {}
9283
9338
  * ```
9284
9339
  */
9285
- POST_HOLY_MANTLE_REMOVED = 39,
9340
+ POST_HOLY_MANTLE_REMOVED = 41,
9286
9341
  /**
9287
9342
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
9288
9343
  * active collectible item, implying that the item was just used.
@@ -9305,7 +9360,7 @@ export declare enum ModCallbackCustom {
9305
9360
  * ): void {}
9306
9361
  * ```
9307
9362
  */
9308
- POST_ITEM_DISCHARGE = 40,
9363
+ POST_ITEM_DISCHARGE = 42,
9309
9364
  /**
9310
9365
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
9311
9366
  * when the animation of the player holding the item above their head is finished and the item is
@@ -9326,7 +9381,7 @@ export declare enum ModCallbackCustom {
9326
9381
  * ): void {}
9327
9382
  * ```
9328
9383
  */
9329
- POST_ITEM_PICKUP = 41,
9384
+ POST_ITEM_PICKUP = 43,
9330
9385
  /**
9331
9386
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
9332
9387
  *
@@ -9343,7 +9398,7 @@ export declare enum ModCallbackCustom {
9343
9398
  * function postKnifeInitLate(knife: EntityKnife): void {}
9344
9399
  * ```
9345
9400
  */
9346
- POST_KNIFE_INIT_LATE = 42,
9401
+ POST_KNIFE_INIT_LATE = 44,
9347
9402
  /**
9348
9403
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
9349
9404
  *
@@ -9360,7 +9415,7 @@ export declare enum ModCallbackCustom {
9360
9415
  * function postLaserInitLate(laser: EntityLaser): void {}
9361
9416
  * ```
9362
9417
  */
9363
- POST_LASER_INIT_LATE = 43,
9418
+ POST_LASER_INIT_LATE = 45,
9364
9419
  /**
9365
9420
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9366
9421
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -9377,7 +9432,7 @@ export declare enum ModCallbackCustom {
9377
9432
  * function postNewLevelReordered(): void {}
9378
9433
  * ```
9379
9434
  */
9380
- POST_NEW_LEVEL_REORDERED = 44,
9435
+ POST_NEW_LEVEL_REORDERED = 46,
9381
9436
  /**
9382
9437
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
9383
9438
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -9388,7 +9443,7 @@ export declare enum ModCallbackCustom {
9388
9443
  * function postNewRoomEarly(): void {}
9389
9444
  * ```
9390
9445
  */
9391
- POST_NEW_ROOM_EARLY = 45,
9446
+ POST_NEW_ROOM_EARLY = 47,
9392
9447
  /**
9393
9448
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
9394
9449
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -9405,7 +9460,7 @@ export declare enum ModCallbackCustom {
9405
9460
  * function postNewRoomReordered(): void {}
9406
9461
  * ```
9407
9462
  */
9408
- POST_NEW_ROOM_REORDERED = 46,
9463
+ POST_NEW_ROOM_REORDERED = 48,
9409
9464
  /**
9410
9465
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
9411
9466
  * to specify extra arguments for additional filtration.
@@ -9422,7 +9477,7 @@ export declare enum ModCallbackCustom {
9422
9477
  * function postNPCDeathFilter(npc: EntityNPC): void {}
9423
9478
  * ```
9424
9479
  */
9425
- POST_NPC_DEATH_FILTER = 47,
9480
+ POST_NPC_DEATH_FILTER = 49,
9426
9481
  /**
9427
9482
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
9428
9483
  * to specify extra arguments for additional filtration.
@@ -9439,7 +9494,7 @@ export declare enum ModCallbackCustom {
9439
9494
  * function postNPCInitFilter(npc: EntityNPC): void {}
9440
9495
  * ```
9441
9496
  */
9442
- POST_NPC_INIT_FILTER = 48,
9497
+ POST_NPC_INIT_FILTER = 50,
9443
9498
  /**
9444
9499
  * Fires on the first `NPC_UPDATE` frame for each NPC.
9445
9500
  *
@@ -9458,7 +9513,7 @@ export declare enum ModCallbackCustom {
9458
9513
  * function postNPCInitLate(npc: EntityNPC): void {}
9459
9514
  * ```
9460
9515
  */
9461
- POST_NPC_INIT_LATE = 49,
9516
+ POST_NPC_INIT_LATE = 51,
9462
9517
  /**
9463
9518
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
9464
9519
  * to specify extra arguments for additional filtration.
@@ -9475,7 +9530,7 @@ export declare enum ModCallbackCustom {
9475
9530
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
9476
9531
  * ```
9477
9532
  */
9478
- POST_NPC_RENDER_FILTER = 50,
9533
+ POST_NPC_RENDER_FILTER = 52,
9479
9534
  /**
9480
9535
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
9481
9536
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -9496,7 +9551,7 @@ export declare enum ModCallbackCustom {
9496
9551
  * ): void {}
9497
9552
  * ```
9498
9553
  */
9499
- POST_NPC_STATE_CHANGED = 51,
9554
+ POST_NPC_STATE_CHANGED = 53,
9500
9555
  /**
9501
9556
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
9502
9557
  * to specify extra arguments for additional filtration.
@@ -9513,7 +9568,7 @@ export declare enum ModCallbackCustom {
9513
9568
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
9514
9569
  * ```
9515
9570
  */
9516
- POST_NPC_UPDATE_FILTER = 52,
9571
+ POST_NPC_UPDATE_FILTER = 54,
9517
9572
  /**
9518
9573
  * Similar to the vanilla callback of the same name, but fires after the
9519
9574
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9538,7 +9593,7 @@ export declare enum ModCallbackCustom {
9538
9593
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
9539
9594
  * ```
9540
9595
  */
9541
- POST_PEFFECT_UPDATE_REORDERED = 53,
9596
+ POST_PEFFECT_UPDATE_REORDERED = 55,
9542
9597
  /**
9543
9598
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
9544
9599
  *
@@ -9557,7 +9612,7 @@ export declare enum ModCallbackCustom {
9557
9612
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
9558
9613
  * ```
9559
9614
  */
9560
- POST_PICKUP_COLLECT = 54,
9615
+ POST_PICKUP_COLLECT = 56,
9561
9616
  /**
9562
9617
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
9563
9618
  * respective pickup on the run.
@@ -9575,7 +9630,7 @@ export declare enum ModCallbackCustom {
9575
9630
  * function postPickupInitFirst(pickup: EntityPickup): void {}
9576
9631
  * ```
9577
9632
  */
9578
- POST_PICKUP_INIT_FIRST = 55,
9633
+ POST_PICKUP_INIT_FIRST = 57,
9579
9634
  /**
9580
9635
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
9581
9636
  *
@@ -9592,7 +9647,7 @@ export declare enum ModCallbackCustom {
9592
9647
  * function postPickupInitLate(pickup: EntityPickup): void {}
9593
9648
  * ```
9594
9649
  */
9595
- POST_PICKUP_INIT_LATE = 56,
9650
+ POST_PICKUP_INIT_LATE = 58,
9596
9651
  /**
9597
9652
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
9598
9653
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -9611,7 +9666,7 @@ export declare enum ModCallbackCustom {
9611
9666
  * ): void {}
9612
9667
  * ```
9613
9668
  */
9614
- POST_PICKUP_STATE_CHANGED = 57,
9669
+ POST_PICKUP_STATE_CHANGED = 59,
9615
9670
  /**
9616
9671
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
9617
9672
  *
@@ -9623,7 +9678,7 @@ export declare enum ModCallbackCustom {
9623
9678
  * function postPitRender(pit: GridEntityPit): void {}
9624
9679
  * ```
9625
9680
  */
9626
- POST_PIT_RENDER = 58,
9681
+ POST_PIT_RENDER = 60,
9627
9682
  /**
9628
9683
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
9629
9684
  *
@@ -9635,7 +9690,7 @@ export declare enum ModCallbackCustom {
9635
9690
  * function postPitUpdate(pit: GridEntityPit): void {}
9636
9691
  * ```
9637
9692
  */
9638
- POST_PIT_UPDATE = 59,
9693
+ POST_PIT_UPDATE = 61,
9639
9694
  /**
9640
9695
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
9641
9696
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -9657,7 +9712,7 @@ export declare enum ModCallbackCustom {
9657
9712
  * ): void {}
9658
9713
  * ```
9659
9714
  */
9660
- POST_PLAYER_CHANGE_HEALTH = 60,
9715
+ POST_PLAYER_CHANGE_HEALTH = 62,
9661
9716
  /**
9662
9717
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
9663
9718
  * from what they were on the previous frame.
@@ -9687,7 +9742,7 @@ export declare enum ModCallbackCustom {
9687
9742
  * ) => void {}
9688
9743
  * ```
9689
9744
  */
9690
- POST_PLAYER_CHANGE_STAT = 61,
9745
+ POST_PLAYER_CHANGE_STAT = 63,
9691
9746
  /**
9692
9747
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
9693
9748
  * type
@@ -9710,7 +9765,7 @@ export declare enum ModCallbackCustom {
9710
9765
  * ): void {}
9711
9766
  * ```
9712
9767
  */
9713
- POST_PLAYER_CHANGE_TYPE = 62,
9768
+ POST_PLAYER_CHANGE_TYPE = 64,
9714
9769
  /**
9715
9770
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
9716
9771
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -9727,7 +9782,7 @@ export declare enum ModCallbackCustom {
9727
9782
  * ): void {}
9728
9783
  * ```
9729
9784
  */
9730
- POST_PLAYER_COLLECTIBLE_ADDED = 63,
9785
+ POST_PLAYER_COLLECTIBLE_ADDED = 65,
9731
9786
  /**
9732
9787
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
9733
9788
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -9744,7 +9799,7 @@ export declare enum ModCallbackCustom {
9744
9799
  * ): void {}
9745
9800
  * ```
9746
9801
  */
9747
- POST_PLAYER_COLLECTIBLE_REMOVED = 64,
9802
+ POST_PLAYER_COLLECTIBLE_REMOVED = 66,
9748
9803
  /**
9749
9804
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
9750
9805
  * prevent the fatal damage.
@@ -9762,7 +9817,7 @@ export declare enum ModCallbackCustom {
9762
9817
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
9763
9818
  * ```
9764
9819
  */
9765
- POST_PLAYER_FATAL_DAMAGE = 65,
9820
+ POST_PLAYER_FATAL_DAMAGE = 67,
9766
9821
  /**
9767
9822
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
9768
9823
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -9784,7 +9839,7 @@ export declare enum ModCallbackCustom {
9784
9839
  * function postPlayerInitFirst(player: EntityPlayer): void {}
9785
9840
  * ```
9786
9841
  */
9787
- POST_PLAYER_INIT_FIRST = 66,
9842
+ POST_PLAYER_INIT_FIRST = 68,
9788
9843
  /**
9789
9844
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
9790
9845
  *
@@ -9804,7 +9859,7 @@ export declare enum ModCallbackCustom {
9804
9859
  * function postPlayerInitLate(pickup: EntityPickup): void {}
9805
9860
  * ```
9806
9861
  */
9807
- POST_PLAYER_INIT_LATE = 67,
9862
+ POST_PLAYER_INIT_LATE = 69,
9808
9863
  /**
9809
9864
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
9810
9865
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -9828,7 +9883,7 @@ export declare enum ModCallbackCustom {
9828
9883
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
9829
9884
  * ```
9830
9885
  */
9831
- POST_PLAYER_RENDER_REORDERED = 68,
9886
+ POST_PLAYER_RENDER_REORDERED = 70,
9832
9887
  /**
9833
9888
  * Similar to the vanilla callback of the same name, but fires after the
9834
9889
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -9853,7 +9908,7 @@ export declare enum ModCallbackCustom {
9853
9908
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
9854
9909
  * ```
9855
9910
  */
9856
- POST_PLAYER_UPDATE_REORDERED = 69,
9911
+ POST_PLAYER_UPDATE_REORDERED = 71,
9857
9912
  /**
9858
9913
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
9859
9914
  *
@@ -9865,7 +9920,7 @@ export declare enum ModCallbackCustom {
9865
9920
  * function postPoopRender(poop: GridEntityPoop): void {}
9866
9921
  * ```
9867
9922
  */
9868
- POST_POOP_RENDER = 70,
9923
+ POST_POOP_RENDER = 72,
9869
9924
  /**
9870
9925
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
9871
9926
  *
@@ -9877,7 +9932,7 @@ export declare enum ModCallbackCustom {
9877
9932
  * function postPoopUpdate(poop: GridEntityPoop): void {}
9878
9933
  * ```
9879
9934
  */
9880
- POST_POOP_UPDATE = 71,
9935
+ POST_POOP_UPDATE = 73,
9881
9936
  /**
9882
9937
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
9883
9938
  *
@@ -9889,7 +9944,7 @@ export declare enum ModCallbackCustom {
9889
9944
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
9890
9945
  * ```
9891
9946
  */
9892
- POST_PRESSURE_PLATE_RENDER = 72,
9947
+ POST_PRESSURE_PLATE_RENDER = 74,
9893
9948
  /**
9894
9949
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
9895
9950
  *
@@ -9901,7 +9956,7 @@ export declare enum ModCallbackCustom {
9901
9956
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
9902
9957
  * ```
9903
9958
  */
9904
- POST_PRESSURE_PLATE_UPDATE = 73,
9959
+ POST_PRESSURE_PLATE_UPDATE = 75,
9905
9960
  /**
9906
9961
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
9907
9962
  *
@@ -9918,7 +9973,7 @@ export declare enum ModCallbackCustom {
9918
9973
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
9919
9974
  * ```
9920
9975
  */
9921
- POST_PROJECTILE_INIT_LATE = 74,
9976
+ POST_PROJECTILE_INIT_LATE = 76,
9922
9977
  /**
9923
9978
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
9924
9979
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -9934,7 +9989,7 @@ export declare enum ModCallbackCustom {
9934
9989
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
9935
9990
  * ```
9936
9991
  */
9937
- POST_PURCHASE = 75,
9992
+ POST_PURCHASE = 77,
9938
9993
  /**
9939
9994
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
9940
9995
  *
@@ -9948,7 +10003,7 @@ export declare enum ModCallbackCustom {
9948
10003
  * function postRockRender(rock: GridEntityRock): void {}
9949
10004
  * ```
9950
10005
  */
9951
- POST_ROCK_RENDER = 76,
10006
+ POST_ROCK_RENDER = 78,
9952
10007
  /**
9953
10008
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
9954
10009
  *
@@ -9962,7 +10017,7 @@ export declare enum ModCallbackCustom {
9962
10017
  * function postRockUpdate(rock: GridEntityRock): void {}
9963
10018
  * ```
9964
10019
  */
9965
- POST_ROCK_UPDATE = 77,
10020
+ POST_ROCK_UPDATE = 79,
9966
10021
  /**
9967
10022
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
9968
10023
  * the `Room.IsClear` method).
@@ -9979,7 +10034,7 @@ export declare enum ModCallbackCustom {
9979
10034
  * function postRoomClearChanged(roomClear: boolean): void {}
9980
10035
  * ```
9981
10036
  */
9982
- POST_ROOM_CLEAR_CHANGED = 78,
10037
+ POST_ROOM_CLEAR_CHANGED = 80,
9983
10038
  /**
9984
10039
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
9985
10040
  * Room.
@@ -9994,7 +10049,7 @@ export declare enum ModCallbackCustom {
9994
10049
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
9995
10050
  * ```
9996
10051
  */
9997
- POST_SACRIFICE = 79,
10052
+ POST_SACRIFICE = 81,
9998
10053
  /**
9999
10054
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
10000
10055
  *
@@ -10008,7 +10063,7 @@ export declare enum ModCallbackCustom {
10008
10063
  * function postSlotAnimationChanged(slot: Entity): void {}
10009
10064
  * ```
10010
10065
  */
10011
- POST_SLOT_ANIMATION_CHANGED = 80,
10066
+ POST_SLOT_ANIMATION_CHANGED = 82,
10012
10067
  /**
10013
10068
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
10014
10069
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -10032,7 +10087,7 @@ export declare enum ModCallbackCustom {
10032
10087
  * ): void {}
10033
10088
  * ```
10034
10089
  */
10035
- POST_SLOT_COLLISION = 81,
10090
+ POST_SLOT_COLLISION = 83,
10036
10091
  /**
10037
10092
  * Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
10038
10093
  * has broken.
@@ -10047,7 +10102,7 @@ export declare enum ModCallbackCustom {
10047
10102
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
10048
10103
  * ```
10049
10104
  */
10050
- POST_SLOT_DESTROYED = 82,
10105
+ POST_SLOT_DESTROYED = 84,
10051
10106
  /**
10052
10107
  * Fires when a new slot entity is initialized. Specifically, this is either:
10053
10108
  *
@@ -10066,7 +10121,7 @@ export declare enum ModCallbackCustom {
10066
10121
  * function postSlotInit(slot: Entity): void {}
10067
10122
  * ```
10068
10123
  */
10069
- POST_SLOT_INIT = 83,
10124
+ POST_SLOT_INIT = 85,
10070
10125
  /**
10071
10126
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
10072
10127
  *
@@ -10080,7 +10135,7 @@ export declare enum ModCallbackCustom {
10080
10135
  * function postSlotRender(slot: Entity): void {}
10081
10136
  * ```
10082
10137
  */
10083
- POST_SLOT_RENDER = 84,
10138
+ POST_SLOT_RENDER = 86,
10084
10139
  /**
10085
10140
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
10086
10141
  *
@@ -10094,7 +10149,7 @@ export declare enum ModCallbackCustom {
10094
10149
  * function postSlotUpdate(slot: Entity): void {}
10095
10150
  * ```
10096
10151
  */
10097
- POST_SLOT_UPDATE = 85,
10152
+ POST_SLOT_UPDATE = 87,
10098
10153
  /**
10099
10154
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
10100
10155
  *
@@ -10106,7 +10161,7 @@ export declare enum ModCallbackCustom {
10106
10161
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
10107
10162
  * ```
10108
10163
  */
10109
- POST_SPIKES_RENDER = 86,
10164
+ POST_SPIKES_RENDER = 88,
10110
10165
  /**
10111
10166
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
10112
10167
  *
@@ -10118,7 +10173,7 @@ export declare enum ModCallbackCustom {
10118
10173
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
10119
10174
  * ```
10120
10175
  */
10121
- POST_SPIKES_UPDATE = 87,
10176
+ POST_SPIKES_UPDATE = 89,
10122
10177
  /**
10123
10178
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
10124
10179
  * `EntityTear.FrameCount` is equal to 0).
@@ -10136,7 +10191,7 @@ export declare enum ModCallbackCustom {
10136
10191
  * function postTearInitLate(tear: EntityTear): void {}
10137
10192
  * ```
10138
10193
  */
10139
- POST_TEAR_INIT_LATE = 88,
10194
+ POST_TEAR_INIT_LATE = 90,
10140
10195
  /**
10141
10196
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
10142
10197
  * `EntityTear.FrameCount` is equal to 1).
@@ -10153,7 +10208,7 @@ export declare enum ModCallbackCustom {
10153
10208
  * function postTearInitVeryLate(tear: EntityTear): void {}
10154
10209
  * ```
10155
10210
  */
10156
- POST_TEAR_INIT_VERY_LATE = 89,
10211
+ POST_TEAR_INIT_VERY_LATE = 91,
10157
10212
  /**
10158
10213
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
10159
10214
  *
@@ -10165,7 +10220,7 @@ export declare enum ModCallbackCustom {
10165
10220
  * function postTNTRender(tnt: GridEntityTNT): void {}
10166
10221
  * ```
10167
10222
  */
10168
- POST_TNT_RENDER = 90,
10223
+ POST_TNT_RENDER = 92,
10169
10224
  /**
10170
10225
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
10171
10226
  *
@@ -10177,7 +10232,7 @@ export declare enum ModCallbackCustom {
10177
10232
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
10178
10233
  * ```
10179
10234
  */
10180
- POST_TNT_UPDATE = 91,
10235
+ POST_TNT_UPDATE = 93,
10181
10236
  /**
10182
10237
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
10183
10238
  * transformation.
@@ -10196,7 +10251,7 @@ export declare enum ModCallbackCustom {
10196
10251
  * ): void {}
10197
10252
  * ```
10198
10253
  */
10199
- POST_TRANSFORMATION = 92,
10254
+ POST_TRANSFORMATION = 94,
10200
10255
  /**
10201
10256
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
10202
10257
  *
@@ -10211,7 +10266,7 @@ export declare enum ModCallbackCustom {
10211
10266
  * ): void {}
10212
10267
  * ```
10213
10268
  */
10214
- POST_TRINKET_BREAK = 93,
10269
+ POST_TRINKET_BREAK = 95,
10215
10270
  /**
10216
10271
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
10217
10272
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -10227,7 +10282,7 @@ export declare enum ModCallbackCustom {
10227
10282
  * function preBerserkDeath(player: EntityPlayer): void {}
10228
10283
  * ```
10229
10284
  */
10230
- PRE_BERSERK_DEATH = 94,
10285
+ PRE_BERSERK_DEATH = 96,
10231
10286
  /**
10232
10287
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
10233
10288
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -10246,7 +10301,7 @@ export declare enum ModCallbackCustom {
10246
10301
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
10247
10302
  * ```
10248
10303
  */
10249
- PRE_CUSTOM_REVIVE = 95,
10304
+ PRE_CUSTOM_REVIVE = 97,
10250
10305
  /**
10251
10306
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
10252
10307
  * meets all of the conditions to pick it up.
@@ -10266,7 +10321,7 @@ export declare enum ModCallbackCustom {
10266
10321
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
10267
10322
  * ```
10268
10323
  */
10269
- PRE_GET_PEDESTAL = 96,
10324
+ PRE_GET_PEDESTAL = 98,
10270
10325
  /**
10271
10326
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
10272
10327
  * the player begins to hold the item above their head).
@@ -10286,7 +10341,7 @@ export declare enum ModCallbackCustom {
10286
10341
  * ): void {}
10287
10342
  * ```
10288
10343
  */
10289
- PRE_ITEM_PICKUP = 97,
10344
+ PRE_ITEM_PICKUP = 99,
10290
10345
  /**
10291
10346
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
10292
10347
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -10300,7 +10355,7 @@ export declare enum ModCallbackCustom {
10300
10355
  * function preNewLevel(player: EntityPlayer): void {}
10301
10356
  * ```
10302
10357
  */
10303
- PRE_NEW_LEVEL = 98,
10358
+ PRE_NEW_LEVEL = 100,
10304
10359
  /**
10305
10360
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
10306
10361
  * you to specify extra arguments for additional filtration.
@@ -10321,7 +10376,7 @@ export declare enum ModCallbackCustom {
10321
10376
  * ): boolean | undefined {}
10322
10377
  * ```
10323
10378
  */
10324
- PRE_NPC_COLLISION_FILTER = 99,
10379
+ PRE_NPC_COLLISION_FILTER = 101,
10325
10380
  /**
10326
10381
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
10327
10382
  * to specify extra arguments for additional filtration.
@@ -10338,7 +10393,7 @@ export declare enum ModCallbackCustom {
10338
10393
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
10339
10394
  * ```
10340
10395
  */
10341
- PRE_NPC_UPDATE_FILTER = 100
10396
+ PRE_NPC_UPDATE_FILTER = 102
10342
10397
  }
10343
10398
 
10344
10399
  /**