isaacscript-common 27.11.0 → 27.12.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 (33) hide show
  1. package/dist/index.rollup.d.ts +126 -66
  2. package/dist/isaacscript-common.lua +166 -67
  3. package/dist/src/callbackClasses.d.ts +3 -0
  4. package/dist/src/callbackClasses.d.ts.map +1 -1
  5. package/dist/src/callbackClasses.lua +15 -0
  6. package/dist/src/callbacks.d.ts +69 -66
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +3 -0
  9. package/dist/src/classes/callbacks/PostLaserInitFilter.d.ts +9 -0
  10. package/dist/src/classes/callbacks/PostLaserInitFilter.d.ts.map +1 -0
  11. package/dist/src/classes/callbacks/PostLaserInitFilter.lua +23 -0
  12. package/dist/src/classes/callbacks/PostLaserRenderFilter.d.ts +9 -0
  13. package/dist/src/classes/callbacks/PostLaserRenderFilter.d.ts.map +1 -0
  14. package/dist/src/classes/callbacks/PostLaserRenderFilter.lua +23 -0
  15. package/dist/src/classes/callbacks/PostLaserUpdateFilter.d.ts +9 -0
  16. package/dist/src/classes/callbacks/PostLaserUpdateFilter.d.ts.map +1 -0
  17. package/dist/src/classes/callbacks/PostLaserUpdateFilter.lua +23 -0
  18. package/dist/src/enums/ModCallbackCustom.d.ts +111 -66
  19. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  20. package/dist/src/enums/ModCallbackCustom.lua +72 -66
  21. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +15 -0
  22. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  23. package/dist/src/shouldFire.d.ts +1 -1
  24. package/dist/src/shouldFire.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/callbackClasses.ts +3 -0
  27. package/src/callbacks.ts +3 -0
  28. package/src/classes/callbacks/PostLaserInitFilter.ts +22 -0
  29. package/src/classes/callbacks/PostLaserRenderFilter.ts +22 -0
  30. package/src/classes/callbacks/PostLaserUpdateFilter.ts +22 -0
  31. package/src/enums/ModCallbackCustom.ts +48 -0
  32. package/src/interfaces/private/AddCallbackParametersCustom.ts +18 -0
  33. package/src/shouldFire.ts +1 -1
@@ -328,11 +328,26 @@ declare interface AddCallbackParametersCustom {
328
328
  knifeVariant?: KnifeVariant,
329
329
  subType?: int
330
330
  ];
331
+ [ModCallbackCustom.POST_LASER_INIT_FILTER]: [
332
+ callback: (laser: EntityLaser) => void,
333
+ laserVariant?: LaserVariant,
334
+ subType?: int
335
+ ];
331
336
  [ModCallbackCustom.POST_LASER_INIT_LATE]: [
332
337
  callback: (laser: EntityLaser) => void,
333
338
  laserVariant?: LaserVariant,
334
339
  subType?: int
335
340
  ];
341
+ [ModCallbackCustom.POST_LASER_RENDER_FILTER]: [
342
+ callback: (laser: EntityLaser, renderOffset: Vector) => void,
343
+ laserVariant?: LaserVariant,
344
+ subType?: int
345
+ ];
346
+ [ModCallbackCustom.POST_LASER_UPDATE_FILTER]: [
347
+ callback: (laser: EntityLaser) => void,
348
+ laserVariant?: LaserVariant,
349
+ subType?: int
350
+ ];
336
351
  [ModCallbackCustom.POST_NEW_LEVEL_REORDERED]: [
337
352
  callback: (stage: LevelStage, stageType: StageType) => void,
338
353
  stage?: LevelStage,
@@ -10064,6 +10079,21 @@ export declare enum ModCallbackCustom {
10064
10079
  * ```
10065
10080
  */
10066
10081
  POST_KNIFE_INIT_LATE = 52,
10082
+ /**
10083
+ * The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
10084
+ * to specify extra arguments for additional filtration.
10085
+ *
10086
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
10087
+ * - You can provide an optional third argument that will make the callback only fire if it
10088
+ * matches the `LaserVariant` provided.
10089
+ * - You can provide an optional fourth argument that will make the callback only fire if it
10090
+ * matches the sub-type provided.
10091
+ *
10092
+ * ```ts
10093
+ * function postLaserInitFilter(laser: EntityLaser): void {}
10094
+ * ```
10095
+ */
10096
+ POST_LASER_INIT_FILTER = 53,
10067
10097
  /**
10068
10098
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
10069
10099
  *
@@ -10080,7 +10110,37 @@ export declare enum ModCallbackCustom {
10080
10110
  * function postLaserInitLate(laser: EntityLaser): void {}
10081
10111
  * ```
10082
10112
  */
10083
- POST_LASER_INIT_LATE = 53,
10113
+ POST_LASER_INIT_LATE = 54,
10114
+ /**
10115
+ * The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
10116
+ * you to specify extra arguments for additional filtration.
10117
+ *
10118
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
10119
+ * - You can provide an optional third argument that will make the callback only fire if it
10120
+ * matches the `LaserVariant` provided.
10121
+ * - You can provide an optional fourth argument that will make the callback only fire if it
10122
+ * matches the sub-type provided.
10123
+ *
10124
+ * ```ts
10125
+ * function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
10126
+ * ```
10127
+ */
10128
+ POST_LASER_RENDER_FILTER = 55,
10129
+ /**
10130
+ * The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
10131
+ * you to specify extra arguments for additional filtration.
10132
+ *
10133
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
10134
+ * - You can provide an optional third argument that will make the callback only fire if it
10135
+ * matches the `LaserVariant` provided.
10136
+ * - You can provide an optional fourth argument that will make the callback only fire if it
10137
+ * matches the sub-type provided.
10138
+ *
10139
+ * ```ts
10140
+ * function postLaserUpdateFilter(laser: EntityLaser): void {}
10141
+ * ```
10142
+ */
10143
+ POST_LASER_UPDATE_FILTER = 56,
10084
10144
  /**
10085
10145
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
10086
10146
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -10106,7 +10166,7 @@ export declare enum ModCallbackCustom {
10106
10166
  * function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
10107
10167
  * ```
10108
10168
  */
10109
- POST_NEW_LEVEL_REORDERED = 54,
10169
+ POST_NEW_LEVEL_REORDERED = 57,
10110
10170
  /**
10111
10171
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
10112
10172
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -10123,7 +10183,7 @@ export declare enum ModCallbackCustom {
10123
10183
  * function postNewRoomEarly(roomType: RoomType): void {}
10124
10184
  * ```
10125
10185
  */
10126
- POST_NEW_ROOM_EARLY = 55,
10186
+ POST_NEW_ROOM_EARLY = 58,
10127
10187
  /**
10128
10188
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
10129
10189
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -10146,7 +10206,7 @@ export declare enum ModCallbackCustom {
10146
10206
  * function postNewRoomReordered(roomType: RoomType): void {}
10147
10207
  * ```
10148
10208
  */
10149
- POST_NEW_ROOM_REORDERED = 56,
10209
+ POST_NEW_ROOM_REORDERED = 59,
10150
10210
  /**
10151
10211
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
10152
10212
  * to specify extra arguments for additional filtration.
@@ -10163,7 +10223,7 @@ export declare enum ModCallbackCustom {
10163
10223
  * function postNPCDeathFilter(npc: EntityNPC): void {}
10164
10224
  * ```
10165
10225
  */
10166
- POST_NPC_DEATH_FILTER = 57,
10226
+ POST_NPC_DEATH_FILTER = 60,
10167
10227
  /**
10168
10228
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
10169
10229
  * to specify extra arguments for additional filtration.
@@ -10180,7 +10240,7 @@ export declare enum ModCallbackCustom {
10180
10240
  * function postNPCInitFilter(npc: EntityNPC): void {}
10181
10241
  * ```
10182
10242
  */
10183
- POST_NPC_INIT_FILTER = 58,
10243
+ POST_NPC_INIT_FILTER = 61,
10184
10244
  /**
10185
10245
  * Fires on the first `NPC_UPDATE` frame for each NPC.
10186
10246
  *
@@ -10199,7 +10259,7 @@ export declare enum ModCallbackCustom {
10199
10259
  * function postNPCInitLate(npc: EntityNPC): void {}
10200
10260
  * ```
10201
10261
  */
10202
- POST_NPC_INIT_LATE = 59,
10262
+ POST_NPC_INIT_LATE = 62,
10203
10263
  /**
10204
10264
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
10205
10265
  * to specify extra arguments for additional filtration.
@@ -10216,7 +10276,7 @@ export declare enum ModCallbackCustom {
10216
10276
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
10217
10277
  * ```
10218
10278
  */
10219
- POST_NPC_RENDER_FILTER = 60,
10279
+ POST_NPC_RENDER_FILTER = 63,
10220
10280
  /**
10221
10281
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
10222
10282
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -10237,7 +10297,7 @@ export declare enum ModCallbackCustom {
10237
10297
  * ): void {}
10238
10298
  * ```
10239
10299
  */
10240
- POST_NPC_STATE_CHANGED = 61,
10300
+ POST_NPC_STATE_CHANGED = 64,
10241
10301
  /**
10242
10302
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
10243
10303
  * to specify extra arguments for additional filtration.
@@ -10254,7 +10314,7 @@ export declare enum ModCallbackCustom {
10254
10314
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
10255
10315
  * ```
10256
10316
  */
10257
- POST_NPC_UPDATE_FILTER = 62,
10317
+ POST_NPC_UPDATE_FILTER = 65,
10258
10318
  /**
10259
10319
  * Similar to the vanilla callback of the same name, but fires after the
10260
10320
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10279,7 +10339,7 @@ export declare enum ModCallbackCustom {
10279
10339
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
10280
10340
  * ```
10281
10341
  */
10282
- POST_PEFFECT_UPDATE_REORDERED = 63,
10342
+ POST_PEFFECT_UPDATE_REORDERED = 66,
10283
10343
  /**
10284
10344
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
10285
10345
  * than what it was on the previous frame.
@@ -10300,7 +10360,7 @@ export declare enum ModCallbackCustom {
10300
10360
  * ): void {}
10301
10361
  * ```
10302
10362
  */
10303
- POST_PICKUP_CHANGED = 64,
10363
+ POST_PICKUP_CHANGED = 67,
10304
10364
  /**
10305
10365
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
10306
10366
  *
@@ -10319,7 +10379,7 @@ export declare enum ModCallbackCustom {
10319
10379
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
10320
10380
  * ```
10321
10381
  */
10322
- POST_PICKUP_COLLECT = 65,
10382
+ POST_PICKUP_COLLECT = 68,
10323
10383
  /**
10324
10384
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
10325
10385
  * you to specify extra arguments for additional filtration.
@@ -10334,7 +10394,7 @@ export declare enum ModCallbackCustom {
10334
10394
  * function postPickupInitFilter(pickup: EntityPickup): void {}
10335
10395
  * ```
10336
10396
  */
10337
- POST_PICKUP_INIT_FILTER = 66,
10397
+ POST_PICKUP_INIT_FILTER = 69,
10338
10398
  /**
10339
10399
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
10340
10400
  * respective pickup on the run.
@@ -10352,7 +10412,7 @@ export declare enum ModCallbackCustom {
10352
10412
  * function postPickupInitFirst(pickup: EntityPickup): void {}
10353
10413
  * ```
10354
10414
  */
10355
- POST_PICKUP_INIT_FIRST = 67,
10415
+ POST_PICKUP_INIT_FIRST = 70,
10356
10416
  /**
10357
10417
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
10358
10418
  *
@@ -10369,7 +10429,7 @@ export declare enum ModCallbackCustom {
10369
10429
  * function postPickupInitLate(pickup: EntityPickup): void {}
10370
10430
  * ```
10371
10431
  */
10372
- POST_PICKUP_INIT_LATE = 68,
10432
+ POST_PICKUP_INIT_LATE = 71,
10373
10433
  /**
10374
10434
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
10375
10435
  * you to specify extra arguments for additional filtration.
@@ -10384,7 +10444,7 @@ export declare enum ModCallbackCustom {
10384
10444
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
10385
10445
  * ```
10386
10446
  */
10387
- POST_PICKUP_RENDER_FILTER = 69,
10447
+ POST_PICKUP_RENDER_FILTER = 72,
10388
10448
  /**
10389
10449
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
10390
10450
  * allows you to specify extra arguments for additional filtration.
@@ -10403,7 +10463,7 @@ export declare enum ModCallbackCustom {
10403
10463
  * ): [PickupVariant, int] | undefined {}
10404
10464
  * ```
10405
10465
  */
10406
- POST_PICKUP_SELECTION_FILTER = 70,
10466
+ POST_PICKUP_SELECTION_FILTER = 73,
10407
10467
  /**
10408
10468
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
10409
10469
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -10422,7 +10482,7 @@ export declare enum ModCallbackCustom {
10422
10482
  * ): void {}
10423
10483
  * ```
10424
10484
  */
10425
- POST_PICKUP_STATE_CHANGED = 71,
10485
+ POST_PICKUP_STATE_CHANGED = 74,
10426
10486
  /**
10427
10487
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
10428
10488
  * you to specify extra arguments for additional filtration.
@@ -10437,7 +10497,7 @@ export declare enum ModCallbackCustom {
10437
10497
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
10438
10498
  * ```
10439
10499
  */
10440
- POST_PICKUP_UPDATE_FILTER = 72,
10500
+ POST_PICKUP_UPDATE_FILTER = 75,
10441
10501
  /**
10442
10502
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
10443
10503
  *
@@ -10449,7 +10509,7 @@ export declare enum ModCallbackCustom {
10449
10509
  * function postPitRender(pit: GridEntityPit): void {}
10450
10510
  * ```
10451
10511
  */
10452
- POST_PIT_RENDER = 73,
10512
+ POST_PIT_RENDER = 76,
10453
10513
  /**
10454
10514
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
10455
10515
  *
@@ -10461,7 +10521,7 @@ export declare enum ModCallbackCustom {
10461
10521
  * function postPitUpdate(pit: GridEntityPit): void {}
10462
10522
  * ```
10463
10523
  */
10464
- POST_PIT_UPDATE = 74,
10524
+ POST_PIT_UPDATE = 77,
10465
10525
  /**
10466
10526
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
10467
10527
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -10483,7 +10543,7 @@ export declare enum ModCallbackCustom {
10483
10543
  * ): void {}
10484
10544
  * ```
10485
10545
  */
10486
- POST_PLAYER_CHANGE_HEALTH = 75,
10546
+ POST_PLAYER_CHANGE_HEALTH = 78,
10487
10547
  /**
10488
10548
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
10489
10549
  * from what they were on the previous frame.
@@ -10513,7 +10573,7 @@ export declare enum ModCallbackCustom {
10513
10573
  * ) => void {}
10514
10574
  * ```
10515
10575
  */
10516
- POST_PLAYER_CHANGE_STAT = 76,
10576
+ POST_PLAYER_CHANGE_STAT = 79,
10517
10577
  /**
10518
10578
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
10519
10579
  * type
@@ -10536,7 +10596,7 @@ export declare enum ModCallbackCustom {
10536
10596
  * ): void {}
10537
10597
  * ```
10538
10598
  */
10539
- POST_PLAYER_CHANGE_TYPE = 77,
10599
+ POST_PLAYER_CHANGE_TYPE = 80,
10540
10600
  /**
10541
10601
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10542
10602
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -10553,7 +10613,7 @@ export declare enum ModCallbackCustom {
10553
10613
  * ): void {}
10554
10614
  * ```
10555
10615
  */
10556
- POST_PLAYER_COLLECTIBLE_ADDED = 78,
10616
+ POST_PLAYER_COLLECTIBLE_ADDED = 81,
10557
10617
  /**
10558
10618
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10559
10619
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -10570,7 +10630,7 @@ export declare enum ModCallbackCustom {
10570
10630
  * ): void {}
10571
10631
  * ```
10572
10632
  */
10573
- POST_PLAYER_COLLECTIBLE_REMOVED = 79,
10633
+ POST_PLAYER_COLLECTIBLE_REMOVED = 82,
10574
10634
  /**
10575
10635
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
10576
10636
  * prevent the fatal damage.
@@ -10588,7 +10648,7 @@ export declare enum ModCallbackCustom {
10588
10648
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
10589
10649
  * ```
10590
10650
  */
10591
- POST_PLAYER_FATAL_DAMAGE = 80,
10651
+ POST_PLAYER_FATAL_DAMAGE = 83,
10592
10652
  /**
10593
10653
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
10594
10654
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -10610,7 +10670,7 @@ export declare enum ModCallbackCustom {
10610
10670
  * function postPlayerInitFirst(player: EntityPlayer): void {}
10611
10671
  * ```
10612
10672
  */
10613
- POST_PLAYER_INIT_FIRST = 81,
10673
+ POST_PLAYER_INIT_FIRST = 84,
10614
10674
  /**
10615
10675
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
10616
10676
  *
@@ -10630,7 +10690,7 @@ export declare enum ModCallbackCustom {
10630
10690
  * function postPlayerInitLate(pickup: EntityPickup): void {}
10631
10691
  * ```
10632
10692
  */
10633
- POST_PLAYER_INIT_LATE = 82,
10693
+ POST_PLAYER_INIT_LATE = 85,
10634
10694
  /**
10635
10695
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
10636
10696
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -10654,7 +10714,7 @@ export declare enum ModCallbackCustom {
10654
10714
  * function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
10655
10715
  * ```
10656
10716
  */
10657
- POST_PLAYER_RENDER_REORDERED = 83,
10717
+ POST_PLAYER_RENDER_REORDERED = 86,
10658
10718
  /**
10659
10719
  * Similar to the vanilla callback of the same name, but fires after the
10660
10720
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10679,7 +10739,7 @@ export declare enum ModCallbackCustom {
10679
10739
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
10680
10740
  * ```
10681
10741
  */
10682
- POST_PLAYER_UPDATE_REORDERED = 84,
10742
+ POST_PLAYER_UPDATE_REORDERED = 87,
10683
10743
  /**
10684
10744
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
10685
10745
  *
@@ -10691,7 +10751,7 @@ export declare enum ModCallbackCustom {
10691
10751
  * function postPoopRender(poop: GridEntityPoop): void {}
10692
10752
  * ```
10693
10753
  */
10694
- POST_POOP_RENDER = 85,
10754
+ POST_POOP_RENDER = 88,
10695
10755
  /**
10696
10756
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
10697
10757
  *
@@ -10703,7 +10763,7 @@ export declare enum ModCallbackCustom {
10703
10763
  * function postPoopUpdate(poop: GridEntityPoop): void {}
10704
10764
  * ```
10705
10765
  */
10706
- POST_POOP_UPDATE = 86,
10766
+ POST_POOP_UPDATE = 89,
10707
10767
  /**
10708
10768
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
10709
10769
  *
@@ -10715,7 +10775,7 @@ export declare enum ModCallbackCustom {
10715
10775
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
10716
10776
  * ```
10717
10777
  */
10718
- POST_PRESSURE_PLATE_RENDER = 87,
10778
+ POST_PRESSURE_PLATE_RENDER = 90,
10719
10779
  /**
10720
10780
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
10721
10781
  *
@@ -10727,7 +10787,7 @@ export declare enum ModCallbackCustom {
10727
10787
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
10728
10788
  * ```
10729
10789
  */
10730
- POST_PRESSURE_PLATE_UPDATE = 88,
10790
+ POST_PRESSURE_PLATE_UPDATE = 91,
10731
10791
  /**
10732
10792
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
10733
10793
  *
@@ -10744,7 +10804,7 @@ export declare enum ModCallbackCustom {
10744
10804
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
10745
10805
  * ```
10746
10806
  */
10747
- POST_PROJECTILE_INIT_LATE = 89,
10807
+ POST_PROJECTILE_INIT_LATE = 92,
10748
10808
  /**
10749
10809
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
10750
10810
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -10760,7 +10820,7 @@ export declare enum ModCallbackCustom {
10760
10820
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
10761
10821
  * ```
10762
10822
  */
10763
- POST_PURCHASE = 90,
10823
+ POST_PURCHASE = 93,
10764
10824
  /**
10765
10825
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
10766
10826
  *
@@ -10774,7 +10834,7 @@ export declare enum ModCallbackCustom {
10774
10834
  * function postRockRender(rock: GridEntityRock): void {}
10775
10835
  * ```
10776
10836
  */
10777
- POST_ROCK_RENDER = 91,
10837
+ POST_ROCK_RENDER = 94,
10778
10838
  /**
10779
10839
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
10780
10840
  *
@@ -10788,7 +10848,7 @@ export declare enum ModCallbackCustom {
10788
10848
  * function postRockUpdate(rock: GridEntityRock): void {}
10789
10849
  * ```
10790
10850
  */
10791
- POST_ROCK_UPDATE = 92,
10851
+ POST_ROCK_UPDATE = 95,
10792
10852
  /**
10793
10853
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
10794
10854
  * the `Room.IsClear` method).
@@ -10805,7 +10865,7 @@ export declare enum ModCallbackCustom {
10805
10865
  * function postRoomClearChanged(roomClear: boolean): void {}
10806
10866
  * ```
10807
10867
  */
10808
- POST_ROOM_CLEAR_CHANGED = 93,
10868
+ POST_ROOM_CLEAR_CHANGED = 96,
10809
10869
  /**
10810
10870
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
10811
10871
  * Room.
@@ -10820,7 +10880,7 @@ export declare enum ModCallbackCustom {
10820
10880
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
10821
10881
  * ```
10822
10882
  */
10823
- POST_SACRIFICE = 94,
10883
+ POST_SACRIFICE = 97,
10824
10884
  /**
10825
10885
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
10826
10886
  *
@@ -10838,7 +10898,7 @@ export declare enum ModCallbackCustom {
10838
10898
  * ): void {}
10839
10899
  * ```
10840
10900
  */
10841
- POST_SLOT_ANIMATION_CHANGED = 95,
10901
+ POST_SLOT_ANIMATION_CHANGED = 98,
10842
10902
  /**
10843
10903
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
10844
10904
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -10862,7 +10922,7 @@ export declare enum ModCallbackCustom {
10862
10922
  * ): void {}
10863
10923
  * ```
10864
10924
  */
10865
- POST_SLOT_COLLISION = 96,
10925
+ POST_SLOT_COLLISION = 99,
10866
10926
  /**
10867
10927
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
10868
10928
  * destroyed or a beggar is removed.
@@ -10904,7 +10964,7 @@ export declare enum ModCallbackCustom {
10904
10964
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
10905
10965
  * ```
10906
10966
  */
10907
- POST_SLOT_DESTROYED = 97,
10967
+ POST_SLOT_DESTROYED = 100,
10908
10968
  /**
10909
10969
  * Fires when a new slot entity is initialized. Specifically, this is either:
10910
10970
  *
@@ -10923,7 +10983,7 @@ export declare enum ModCallbackCustom {
10923
10983
  * function postSlotInit(slot: Entity): void {}
10924
10984
  * ```
10925
10985
  */
10926
- POST_SLOT_INIT = 98,
10986
+ POST_SLOT_INIT = 101,
10927
10987
  /**
10928
10988
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
10929
10989
  *
@@ -10937,7 +10997,7 @@ export declare enum ModCallbackCustom {
10937
10997
  * function postSlotRender(slot: Entity): void {}
10938
10998
  * ```
10939
10999
  */
10940
- POST_SLOT_RENDER = 99,
11000
+ POST_SLOT_RENDER = 102,
10941
11001
  /**
10942
11002
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
10943
11003
  *
@@ -10951,7 +11011,7 @@ export declare enum ModCallbackCustom {
10951
11011
  * function postSlotUpdate(slot: Entity): void {}
10952
11012
  * ```
10953
11013
  */
10954
- POST_SLOT_UPDATE = 100,
11014
+ POST_SLOT_UPDATE = 103,
10955
11015
  /**
10956
11016
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
10957
11017
  *
@@ -10963,7 +11023,7 @@ export declare enum ModCallbackCustom {
10963
11023
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
10964
11024
  * ```
10965
11025
  */
10966
- POST_SPIKES_RENDER = 101,
11026
+ POST_SPIKES_RENDER = 104,
10967
11027
  /**
10968
11028
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
10969
11029
  *
@@ -10975,7 +11035,7 @@ export declare enum ModCallbackCustom {
10975
11035
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
10976
11036
  * ```
10977
11037
  */
10978
- POST_SPIKES_UPDATE = 102,
11038
+ POST_SPIKES_UPDATE = 105,
10979
11039
  /**
10980
11040
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
10981
11041
  * `EntityTear.FrameCount` is equal to 0).
@@ -10993,7 +11053,7 @@ export declare enum ModCallbackCustom {
10993
11053
  * function postTearInitLate(tear: EntityTear): void {}
10994
11054
  * ```
10995
11055
  */
10996
- POST_TEAR_INIT_LATE = 103,
11056
+ POST_TEAR_INIT_LATE = 106,
10997
11057
  /**
10998
11058
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
10999
11059
  * `EntityTear.FrameCount` is equal to 1).
@@ -11010,7 +11070,7 @@ export declare enum ModCallbackCustom {
11010
11070
  * function postTearInitVeryLate(tear: EntityTear): void {}
11011
11071
  * ```
11012
11072
  */
11013
- POST_TEAR_INIT_VERY_LATE = 104,
11073
+ POST_TEAR_INIT_VERY_LATE = 107,
11014
11074
  /**
11015
11075
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
11016
11076
  *
@@ -11022,7 +11082,7 @@ export declare enum ModCallbackCustom {
11022
11082
  * function postTNTRender(tnt: GridEntityTNT): void {}
11023
11083
  * ```
11024
11084
  */
11025
- POST_TNT_RENDER = 105,
11085
+ POST_TNT_RENDER = 108,
11026
11086
  /**
11027
11087
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
11028
11088
  *
@@ -11034,7 +11094,7 @@ export declare enum ModCallbackCustom {
11034
11094
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
11035
11095
  * ```
11036
11096
  */
11037
- POST_TNT_UPDATE = 106,
11097
+ POST_TNT_UPDATE = 109,
11038
11098
  /**
11039
11099
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
11040
11100
  * transformation.
@@ -11053,7 +11113,7 @@ export declare enum ModCallbackCustom {
11053
11113
  * ): void {}
11054
11114
  * ```
11055
11115
  */
11056
- POST_TRANSFORMATION = 107,
11116
+ POST_TRANSFORMATION = 110,
11057
11117
  /**
11058
11118
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
11059
11119
  *
@@ -11068,7 +11128,7 @@ export declare enum ModCallbackCustom {
11068
11128
  * ): void {}
11069
11129
  * ```
11070
11130
  */
11071
- POST_TRINKET_BREAK = 108,
11131
+ POST_TRINKET_BREAK = 111,
11072
11132
  /**
11073
11133
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
11074
11134
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -11084,7 +11144,7 @@ export declare enum ModCallbackCustom {
11084
11144
  * function preBerserkDeath(player: EntityPlayer): void {}
11085
11145
  * ```
11086
11146
  */
11087
- PRE_BERSERK_DEATH = 109,
11147
+ PRE_BERSERK_DEATH = 112,
11088
11148
  /**
11089
11149
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
11090
11150
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -11103,7 +11163,7 @@ export declare enum ModCallbackCustom {
11103
11163
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
11104
11164
  * ```
11105
11165
  */
11106
- PRE_CUSTOM_REVIVE = 110,
11166
+ PRE_CUSTOM_REVIVE = 113,
11107
11167
  /**
11108
11168
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
11109
11169
  * you to specify extra arguments for additional filtration.
@@ -11128,7 +11188,7 @@ export declare enum ModCallbackCustom {
11128
11188
  * ): [EntityType, int, int, int] | undefined {}
11129
11189
  * ```
11130
11190
  */
11131
- PRE_ENTITY_SPAWN_FILTER = 111,
11191
+ PRE_ENTITY_SPAWN_FILTER = 114,
11132
11192
  /**
11133
11193
  * The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
11134
11194
  * allows you to specify extra arguments for additional filtration.
@@ -11147,7 +11207,7 @@ export declare enum ModCallbackCustom {
11147
11207
  * ): void {}
11148
11208
  * ```
11149
11209
  */
11150
- PRE_FAMILIAR_COLLISION_FILTER = 112,
11210
+ PRE_FAMILIAR_COLLISION_FILTER = 115,
11151
11211
  /**
11152
11212
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
11153
11213
  * meets all of the conditions to pick it up.
@@ -11167,7 +11227,7 @@ export declare enum ModCallbackCustom {
11167
11227
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
11168
11228
  * ```
11169
11229
  */
11170
- PRE_GET_PEDESTAL = 113,
11230
+ PRE_GET_PEDESTAL = 116,
11171
11231
  /**
11172
11232
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
11173
11233
  * the player begins to hold the item above their head).
@@ -11187,7 +11247,7 @@ export declare enum ModCallbackCustom {
11187
11247
  * ): void {}
11188
11248
  * ```
11189
11249
  */
11190
- PRE_ITEM_PICKUP = 114,
11250
+ PRE_ITEM_PICKUP = 117,
11191
11251
  /**
11192
11252
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
11193
11253
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -11201,7 +11261,7 @@ export declare enum ModCallbackCustom {
11201
11261
  * function preNewLevel(player: EntityPlayer): void {}
11202
11262
  * ```
11203
11263
  */
11204
- PRE_NEW_LEVEL = 115,
11264
+ PRE_NEW_LEVEL = 118,
11205
11265
  /**
11206
11266
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
11207
11267
  * you to specify extra arguments for additional filtration.
@@ -11222,7 +11282,7 @@ export declare enum ModCallbackCustom {
11222
11282
  * ): boolean | undefined {}
11223
11283
  * ```
11224
11284
  */
11225
- PRE_NPC_COLLISION_FILTER = 116,
11285
+ PRE_NPC_COLLISION_FILTER = 119,
11226
11286
  /**
11227
11287
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
11228
11288
  * to specify extra arguments for additional filtration.
@@ -11239,7 +11299,7 @@ export declare enum ModCallbackCustom {
11239
11299
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
11240
11300
  * ```
11241
11301
  */
11242
- PRE_NPC_UPDATE_FILTER = 117,
11302
+ PRE_NPC_UPDATE_FILTER = 120,
11243
11303
  /**
11244
11304
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
11245
11305
  * allows you to specify extra arguments for additional filtration.
@@ -11262,7 +11322,7 @@ export declare enum ModCallbackCustom {
11262
11322
  * ): [EntityType | GridEntityXMLType, int, int] | undefined {}
11263
11323
  * ```
11264
11324
  */
11265
- PRE_ROOM_ENTITY_SPAWN_FILTER = 118
11325
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 121
11266
11326
  }
11267
11327
 
11268
11328
  /**