isaacscript-common 29.3.0 → 29.5.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 (32) hide show
  1. package/dist/index.rollup.d.ts +136 -108
  2. package/dist/isaacscript-common.lua +139 -106
  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 +106 -105
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +1 -0
  9. package/dist/src/classes/callbacks/PostGameEndFilter.d.ts +9 -0
  10. package/dist/src/classes/callbacks/PostGameEndFilter.d.ts.map +1 -0
  11. package/dist/src/classes/callbacks/PostGameEndFilter.lua +23 -0
  12. package/dist/src/enums/ModCallbackCustom.d.ts +118 -105
  13. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  14. package/dist/src/enums/ModCallbackCustom.lua +107 -105
  15. package/dist/src/functions/collectibles.d.ts +6 -2
  16. package/dist/src/functions/collectibles.d.ts.map +1 -1
  17. package/dist/src/functions/collectibles.lua +4 -0
  18. package/dist/src/functions/doors.d.ts +1 -1
  19. package/dist/src/functions/doors.lua +1 -1
  20. package/dist/src/functions/rooms.d.ts +7 -0
  21. package/dist/src/functions/rooms.d.ts.map +1 -1
  22. package/dist/src/functions/rooms.lua +5 -0
  23. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -0
  24. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/callbackClasses.ts +1 -0
  27. package/src/callbacks.ts +1 -0
  28. package/src/classes/callbacks/PostGameEndFilter.ts +22 -0
  29. package/src/enums/ModCallbackCustom.ts +14 -0
  30. package/src/functions/collectibles.ts +9 -3
  31. package/src/functions/rooms.ts +7 -0
  32. package/src/interfaces/private/AddCallbackParametersCustom.ts +5 -0
@@ -235,6 +235,10 @@ declare interface AddCallbackParametersCustom {
235
235
  [ModCallbackCustom.POST_FLIP]: [
236
236
  callback: (newLazarus: EntityPlayer, oldLazarus: EntityPlayer) => void
237
237
  ];
238
+ [ModCallbackCustom.POST_GAME_END_FILTER]: [
239
+ callback: (isGameOver: boolean) => void,
240
+ isGameOver?: boolean
241
+ ];
238
242
  [ModCallbackCustom.POST_GAME_STARTED_REORDERED]: [
239
243
  callback: (isContinued: boolean) => void,
240
244
  isContinued: boolean | undefined
@@ -4669,11 +4673,13 @@ export declare function getCollectibleDevilHeartPrice(collectibleOrCollectibleTy
4669
4673
  * Helper function to get the path to a collectible PNG file. Returns the path to the question mark
4670
4674
  * sprite (i.e. from Curse of the Blind) if the provided collectible type was not valid.
4671
4675
  *
4676
+ * If you intentionally want the path to the question mark sprite, pass -1 as the collectible type.
4677
+ *
4672
4678
  * Note that this does not return the file name, but the full path to the collectible's PNG file.
4673
4679
  * The function is named "GfxFilename" to correspond to the associated `ItemConfigItem.GfxFileName`
4674
4680
  * field.
4675
4681
  */
4676
- export declare function getCollectibleGfxFilename(collectibleOrCollectibleType: EntityPickup | CollectibleType): string;
4682
+ export declare function getCollectibleGfxFilename(collectibleOrCollectibleType: EntityPickup | CollectibleType | -1): string;
4677
4683
 
4678
4684
  /**
4679
4685
  * Mods may have to keep track of data relating to a collectible. Finding an index for these kinds
@@ -7159,7 +7165,7 @@ export declare function hasCurse(curse: LevelCurse): boolean;
7159
7165
 
7160
7166
  /**
7161
7167
  * Helper function to check if the current room has one or more doors that lead to the given room
7162
- * types.
7168
+ * type.
7163
7169
  *
7164
7170
  * This function is variadic, meaning that you can supply as many door types as you want to check
7165
7171
  * for. This function will return true if one or more room types match.
@@ -7358,6 +7364,13 @@ export declare function inDevilsCrownTreasureRoom(): boolean;
7358
7364
 
7359
7365
  export declare function inDimension(dimension: Dimension): boolean;
7360
7366
 
7367
+ /**
7368
+ * Helper function to detect if the current room is a Double Trouble Boss Room.
7369
+ *
7370
+ * This is performed by checking for the string "Double Trouble" inside of the room name. The
7371
+ * vanilla game uses this convention for every Double Trouble Boss Room. Note that this method might
7372
+ * fail for mods that add extra Double Trouble rooms but do not follow the convention.
7373
+ */
7361
7374
  export declare function inDoubleTrouble(): boolean;
7362
7375
 
7363
7376
  export declare function inGenesisRoom(): boolean;
@@ -9829,6 +9842,19 @@ export declare enum ModCallbackCustom {
9829
9842
  * ```
9830
9843
  */
9831
9844
  POST_FLIP = 33,
9845
+ /**
9846
+ * The exact same thing as the vanilla `POST_GAME_END` callback, except this callback allows you
9847
+ * to specify extra arguments for additional filtration.
9848
+ *
9849
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
9850
+ * - You can provide an optional third argument that will make the callback only fire if it
9851
+ * matches the `isGameOver` value provided.
9852
+ *
9853
+ * ```ts
9854
+ * function postGameEndFilter(isGameOver: boolean): void {}
9855
+ * ```
9856
+ */
9857
+ POST_GAME_END_FILTER = 34,
9832
9858
  /**
9833
9859
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
9834
9860
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -9847,7 +9873,7 @@ export declare enum ModCallbackCustom {
9847
9873
  * function postGameStartedReordered(isContinued: boolean): void {}
9848
9874
  * ```
9849
9875
  */
9850
- POST_GAME_STARTED_REORDERED = 34,
9876
+ POST_GAME_STARTED_REORDERED = 35,
9851
9877
  /**
9852
9878
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
9853
9879
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -9866,7 +9892,7 @@ export declare enum ModCallbackCustom {
9866
9892
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
9867
9893
  * ```
9868
9894
  */
9869
- POST_GAME_STARTED_REORDERED_LAST = 35,
9895
+ POST_GAME_STARTED_REORDERED_LAST = 36,
9870
9896
  /**
9871
9897
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
9872
9898
  *
@@ -9874,7 +9900,7 @@ export declare enum ModCallbackCustom {
9874
9900
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
9875
9901
  * ```
9876
9902
  */
9877
- POST_GREED_MODE_WAVE = 36,
9903
+ POST_GREED_MODE_WAVE = 37,
9878
9904
  /**
9879
9905
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
9880
9906
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -9893,7 +9919,7 @@ export declare enum ModCallbackCustom {
9893
9919
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
9894
9920
  * ```
9895
9921
  */
9896
- POST_GRID_ENTITY_BROKEN = 37,
9922
+ POST_GRID_ENTITY_BROKEN = 38,
9897
9923
  /**
9898
9924
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
9899
9925
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -9921,7 +9947,7 @@ export declare enum ModCallbackCustom {
9921
9947
  * ): void {}
9922
9948
  * ```
9923
9949
  */
9924
- POST_GRID_ENTITY_COLLISION = 38,
9950
+ POST_GRID_ENTITY_COLLISION = 39,
9925
9951
  /**
9926
9952
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
9927
9953
  * with the `spawnCustomGridEntity` helper function.
@@ -9938,7 +9964,7 @@ export declare enum ModCallbackCustom {
9938
9964
  * ): void {}
9939
9965
  * ```
9940
9966
  */
9941
- POST_GRID_ENTITY_CUSTOM_BROKEN = 39,
9967
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 40,
9942
9968
  /**
9943
9969
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
9944
9970
  * with the `spawnCustomGridEntity` helper function.
@@ -9962,7 +9988,7 @@ export declare enum ModCallbackCustom {
9962
9988
  * ): void {}
9963
9989
  * ```
9964
9990
  */
9965
- POST_GRID_ENTITY_CUSTOM_COLLISION = 40,
9991
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 41,
9966
9992
  /**
9967
9993
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
9968
9994
  * the `spawnCustomGridEntity` helper function.
@@ -9979,7 +10005,7 @@ export declare enum ModCallbackCustom {
9979
10005
  * ): void {}
9980
10006
  * ```
9981
10007
  */
9982
- POST_GRID_ENTITY_CUSTOM_INIT = 41,
10008
+ POST_GRID_ENTITY_CUSTOM_INIT = 42,
9983
10009
  /**
9984
10010
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
9985
10011
  * with the `spawnCustomGridEntity` helper function.
@@ -9996,7 +10022,7 @@ export declare enum ModCallbackCustom {
9996
10022
  * ): void {}
9997
10023
  * ```
9998
10024
  */
9999
- POST_GRID_ENTITY_CUSTOM_REMOVE = 42,
10025
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 43,
10000
10026
  /**
10001
10027
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
10002
10028
  * with the `spawnCustomGridEntity` helper function.
@@ -10013,7 +10039,7 @@ export declare enum ModCallbackCustom {
10013
10039
  * ): void {}
10014
10040
  * ```
10015
10041
  */
10016
- POST_GRID_ENTITY_CUSTOM_RENDER = 43,
10042
+ POST_GRID_ENTITY_CUSTOM_RENDER = 44,
10017
10043
  /**
10018
10044
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
10019
10045
  * created with the `spawnCustomGridEntity` helper function.
@@ -10032,7 +10058,7 @@ export declare enum ModCallbackCustom {
10032
10058
  * ): void {}
10033
10059
  * ```
10034
10060
  */
10035
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 44,
10061
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 45,
10036
10062
  /**
10037
10063
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
10038
10064
  * with the `spawnCustomGridEntity` helper function.
@@ -10049,7 +10075,7 @@ export declare enum ModCallbackCustom {
10049
10075
  * ): void {}
10050
10076
  * ```
10051
10077
  */
10052
- POST_GRID_ENTITY_CUSTOM_UPDATE = 45,
10078
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 46,
10053
10079
  /**
10054
10080
  * Fires when a new grid entity is initialized. Specifically, this is either:
10055
10081
  *
@@ -10071,7 +10097,7 @@ export declare enum ModCallbackCustom {
10071
10097
  * function postGridEntityInit(gridEntity: GridEntity): void {}
10072
10098
  * ```
10073
10099
  */
10074
- POST_GRID_ENTITY_INIT = 46,
10100
+ POST_GRID_ENTITY_INIT = 47,
10075
10101
  /**
10076
10102
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
10077
10103
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -10096,7 +10122,7 @@ export declare enum ModCallbackCustom {
10096
10122
  * ): void {}
10097
10123
  * ```
10098
10124
  */
10099
- POST_GRID_ENTITY_REMOVE = 47,
10125
+ POST_GRID_ENTITY_REMOVE = 48,
10100
10126
  /**
10101
10127
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
10102
10128
  *
@@ -10113,7 +10139,7 @@ export declare enum ModCallbackCustom {
10113
10139
  * function postGridEntityRender(gridEntity: GridEntity): void {}
10114
10140
  * ```
10115
10141
  */
10116
- POST_GRID_ENTITY_RENDER = 48,
10142
+ POST_GRID_ENTITY_RENDER = 49,
10117
10143
  /**
10118
10144
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
10119
10145
  * "state" refers to the `GridEntity.State` field.)
@@ -10135,7 +10161,7 @@ export declare enum ModCallbackCustom {
10135
10161
  * ): void {}
10136
10162
  * ```
10137
10163
  */
10138
- POST_GRID_ENTITY_STATE_CHANGED = 49,
10164
+ POST_GRID_ENTITY_STATE_CHANGED = 50,
10139
10165
  /**
10140
10166
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
10141
10167
  *
@@ -10152,7 +10178,7 @@ export declare enum ModCallbackCustom {
10152
10178
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
10153
10179
  * ```
10154
10180
  */
10155
- POST_GRID_ENTITY_UPDATE = 50,
10181
+ POST_GRID_ENTITY_UPDATE = 51,
10156
10182
  /**
10157
10183
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
10158
10184
  * temporary collectible effect.
@@ -10175,7 +10201,7 @@ export declare enum ModCallbackCustom {
10175
10201
  * ): void {}
10176
10202
  * ```
10177
10203
  */
10178
- POST_HOLY_MANTLE_REMOVED = 51,
10204
+ POST_HOLY_MANTLE_REMOVED = 52,
10179
10205
  /**
10180
10206
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
10181
10207
  * active collectible item, implying that the item was just used.
@@ -10198,7 +10224,7 @@ export declare enum ModCallbackCustom {
10198
10224
  * ): void {}
10199
10225
  * ```
10200
10226
  */
10201
- POST_ITEM_DISCHARGE = 52,
10227
+ POST_ITEM_DISCHARGE = 53,
10202
10228
  /**
10203
10229
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
10204
10230
  * when the animation of the player holding the item above their head is finished and the item is
@@ -10219,7 +10245,7 @@ export declare enum ModCallbackCustom {
10219
10245
  * ): void {}
10220
10246
  * ```
10221
10247
  */
10222
- POST_ITEM_PICKUP = 53,
10248
+ POST_ITEM_PICKUP = 54,
10223
10249
  /**
10224
10250
  * Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
10225
10251
  * released. (In other words, the callback only fires when the "pressed" status is different than
@@ -10235,7 +10261,7 @@ export declare enum ModCallbackCustom {
10235
10261
  * function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
10236
10262
  * ```
10237
10263
  */
10238
- POST_KEYBOARD_CHANGED = 54,
10264
+ POST_KEYBOARD_CHANGED = 55,
10239
10265
  /**
10240
10266
  * The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
10241
10267
  * to specify extra arguments for additional filtration.
@@ -10250,7 +10276,7 @@ export declare enum ModCallbackCustom {
10250
10276
  * function postKnifeInitFilter(knife: EntityKnife): void {}
10251
10277
  * ```
10252
10278
  */
10253
- POST_KNIFE_INIT_FILTER = 55,
10279
+ POST_KNIFE_INIT_FILTER = 56,
10254
10280
  /**
10255
10281
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
10256
10282
  *
@@ -10267,7 +10293,7 @@ export declare enum ModCallbackCustom {
10267
10293
  * function postKnifeInitLate(knife: EntityKnife): void {}
10268
10294
  * ```
10269
10295
  */
10270
- POST_KNIFE_INIT_LATE = 56,
10296
+ POST_KNIFE_INIT_LATE = 57,
10271
10297
  /**
10272
10298
  * The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
10273
10299
  * you to specify extra arguments for additional filtration.
@@ -10282,7 +10308,7 @@ export declare enum ModCallbackCustom {
10282
10308
  * function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
10283
10309
  * ```
10284
10310
  */
10285
- POST_KNIFE_RENDER_FILTER = 57,
10311
+ POST_KNIFE_RENDER_FILTER = 58,
10286
10312
  /**
10287
10313
  * The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
10288
10314
  * you to specify extra arguments for additional filtration.
@@ -10297,7 +10323,7 @@ export declare enum ModCallbackCustom {
10297
10323
  * function postKnifeUpdateFilter(knife: EntityKnife): void {}
10298
10324
  * ```
10299
10325
  */
10300
- POST_KNIFE_UPDATE_FILTER = 58,
10326
+ POST_KNIFE_UPDATE_FILTER = 59,
10301
10327
  /**
10302
10328
  * The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
10303
10329
  * to specify extra arguments for additional filtration.
@@ -10312,7 +10338,7 @@ export declare enum ModCallbackCustom {
10312
10338
  * function postLaserInitFilter(laser: EntityLaser): void {}
10313
10339
  * ```
10314
10340
  */
10315
- POST_LASER_INIT_FILTER = 59,
10341
+ POST_LASER_INIT_FILTER = 60,
10316
10342
  /**
10317
10343
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
10318
10344
  *
@@ -10329,7 +10355,7 @@ export declare enum ModCallbackCustom {
10329
10355
  * function postLaserInitLate(laser: EntityLaser): void {}
10330
10356
  * ```
10331
10357
  */
10332
- POST_LASER_INIT_LATE = 60,
10358
+ POST_LASER_INIT_LATE = 61,
10333
10359
  /**
10334
10360
  * The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
10335
10361
  * you to specify extra arguments for additional filtration.
@@ -10344,7 +10370,7 @@ export declare enum ModCallbackCustom {
10344
10370
  * function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
10345
10371
  * ```
10346
10372
  */
10347
- POST_LASER_RENDER_FILTER = 61,
10373
+ POST_LASER_RENDER_FILTER = 62,
10348
10374
  /**
10349
10375
  * The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
10350
10376
  * you to specify extra arguments for additional filtration.
@@ -10359,7 +10385,7 @@ export declare enum ModCallbackCustom {
10359
10385
  * function postLaserUpdateFilter(laser: EntityLaser): void {}
10360
10386
  * ```
10361
10387
  */
10362
- POST_LASER_UPDATE_FILTER = 62,
10388
+ POST_LASER_UPDATE_FILTER = 63,
10363
10389
  /**
10364
10390
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
10365
10391
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -10385,7 +10411,7 @@ export declare enum ModCallbackCustom {
10385
10411
  * function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
10386
10412
  * ```
10387
10413
  */
10388
- POST_NEW_LEVEL_REORDERED = 63,
10414
+ POST_NEW_LEVEL_REORDERED = 64,
10389
10415
  /**
10390
10416
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
10391
10417
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -10402,7 +10428,7 @@ export declare enum ModCallbackCustom {
10402
10428
  * function postNewRoomEarly(roomType: RoomType): void {}
10403
10429
  * ```
10404
10430
  */
10405
- POST_NEW_ROOM_EARLY = 64,
10431
+ POST_NEW_ROOM_EARLY = 65,
10406
10432
  /**
10407
10433
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
10408
10434
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -10425,7 +10451,7 @@ export declare enum ModCallbackCustom {
10425
10451
  * function postNewRoomReordered(roomType: RoomType): void {}
10426
10452
  * ```
10427
10453
  */
10428
- POST_NEW_ROOM_REORDERED = 65,
10454
+ POST_NEW_ROOM_REORDERED = 66,
10429
10455
  /**
10430
10456
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
10431
10457
  * to specify extra arguments for additional filtration.
@@ -10442,7 +10468,7 @@ export declare enum ModCallbackCustom {
10442
10468
  * function postNPCDeathFilter(npc: EntityNPC): void {}
10443
10469
  * ```
10444
10470
  */
10445
- POST_NPC_DEATH_FILTER = 66,
10471
+ POST_NPC_DEATH_FILTER = 67,
10446
10472
  /**
10447
10473
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
10448
10474
  * to specify extra arguments for additional filtration.
@@ -10459,7 +10485,7 @@ export declare enum ModCallbackCustom {
10459
10485
  * function postNPCInitFilter(npc: EntityNPC): void {}
10460
10486
  * ```
10461
10487
  */
10462
- POST_NPC_INIT_FILTER = 67,
10488
+ POST_NPC_INIT_FILTER = 68,
10463
10489
  /**
10464
10490
  * Fires on the first `NPC_UPDATE` frame for each NPC.
10465
10491
  *
@@ -10478,7 +10504,7 @@ export declare enum ModCallbackCustom {
10478
10504
  * function postNPCInitLate(npc: EntityNPC): void {}
10479
10505
  * ```
10480
10506
  */
10481
- POST_NPC_INIT_LATE = 68,
10507
+ POST_NPC_INIT_LATE = 69,
10482
10508
  /**
10483
10509
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
10484
10510
  * to specify extra arguments for additional filtration.
@@ -10495,7 +10521,7 @@ export declare enum ModCallbackCustom {
10495
10521
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
10496
10522
  * ```
10497
10523
  */
10498
- POST_NPC_RENDER_FILTER = 69,
10524
+ POST_NPC_RENDER_FILTER = 70,
10499
10525
  /**
10500
10526
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
10501
10527
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -10516,7 +10542,7 @@ export declare enum ModCallbackCustom {
10516
10542
  * ): void {}
10517
10543
  * ```
10518
10544
  */
10519
- POST_NPC_STATE_CHANGED = 70,
10545
+ POST_NPC_STATE_CHANGED = 71,
10520
10546
  /**
10521
10547
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
10522
10548
  * to specify extra arguments for additional filtration.
@@ -10533,7 +10559,7 @@ export declare enum ModCallbackCustom {
10533
10559
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
10534
10560
  * ```
10535
10561
  */
10536
- POST_NPC_UPDATE_FILTER = 71,
10562
+ POST_NPC_UPDATE_FILTER = 72,
10537
10563
  /**
10538
10564
  * Similar to the vanilla callback of the same name, but fires after the
10539
10565
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10558,7 +10584,7 @@ export declare enum ModCallbackCustom {
10558
10584
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
10559
10585
  * ```
10560
10586
  */
10561
- POST_PEFFECT_UPDATE_REORDERED = 72,
10587
+ POST_PEFFECT_UPDATE_REORDERED = 73,
10562
10588
  /**
10563
10589
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
10564
10590
  * than what it was on the previous frame.
@@ -10579,7 +10605,7 @@ export declare enum ModCallbackCustom {
10579
10605
  * ): void {}
10580
10606
  * ```
10581
10607
  */
10582
- POST_PICKUP_CHANGED = 73,
10608
+ POST_PICKUP_CHANGED = 74,
10583
10609
  /**
10584
10610
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
10585
10611
  *
@@ -10598,7 +10624,7 @@ export declare enum ModCallbackCustom {
10598
10624
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
10599
10625
  * ```
10600
10626
  */
10601
- POST_PICKUP_COLLECT = 74,
10627
+ POST_PICKUP_COLLECT = 75,
10602
10628
  /**
10603
10629
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
10604
10630
  * you to specify extra arguments for additional filtration.
@@ -10613,7 +10639,7 @@ export declare enum ModCallbackCustom {
10613
10639
  * function postPickupInitFilter(pickup: EntityPickup): void {}
10614
10640
  * ```
10615
10641
  */
10616
- POST_PICKUP_INIT_FILTER = 75,
10642
+ POST_PICKUP_INIT_FILTER = 76,
10617
10643
  /**
10618
10644
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
10619
10645
  * respective pickup on the run.
@@ -10631,7 +10657,7 @@ export declare enum ModCallbackCustom {
10631
10657
  * function postPickupInitFirst(pickup: EntityPickup): void {}
10632
10658
  * ```
10633
10659
  */
10634
- POST_PICKUP_INIT_FIRST = 76,
10660
+ POST_PICKUP_INIT_FIRST = 77,
10635
10661
  /**
10636
10662
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
10637
10663
  *
@@ -10648,7 +10674,7 @@ export declare enum ModCallbackCustom {
10648
10674
  * function postPickupInitLate(pickup: EntityPickup): void {}
10649
10675
  * ```
10650
10676
  */
10651
- POST_PICKUP_INIT_LATE = 77,
10677
+ POST_PICKUP_INIT_LATE = 78,
10652
10678
  /**
10653
10679
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
10654
10680
  * you to specify extra arguments for additional filtration.
@@ -10663,7 +10689,7 @@ export declare enum ModCallbackCustom {
10663
10689
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
10664
10690
  * ```
10665
10691
  */
10666
- POST_PICKUP_RENDER_FILTER = 78,
10692
+ POST_PICKUP_RENDER_FILTER = 79,
10667
10693
  /**
10668
10694
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
10669
10695
  * allows you to specify extra arguments for additional filtration.
@@ -10682,7 +10708,7 @@ export declare enum ModCallbackCustom {
10682
10708
  * ): [PickupVariant, int] | undefined {}
10683
10709
  * ```
10684
10710
  */
10685
- POST_PICKUP_SELECTION_FILTER = 79,
10711
+ POST_PICKUP_SELECTION_FILTER = 80,
10686
10712
  /**
10687
10713
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
10688
10714
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -10701,7 +10727,7 @@ export declare enum ModCallbackCustom {
10701
10727
  * ): void {}
10702
10728
  * ```
10703
10729
  */
10704
- POST_PICKUP_STATE_CHANGED = 80,
10730
+ POST_PICKUP_STATE_CHANGED = 81,
10705
10731
  /**
10706
10732
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
10707
10733
  * you to specify extra arguments for additional filtration.
@@ -10716,7 +10742,7 @@ export declare enum ModCallbackCustom {
10716
10742
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
10717
10743
  * ```
10718
10744
  */
10719
- POST_PICKUP_UPDATE_FILTER = 81,
10745
+ POST_PICKUP_UPDATE_FILTER = 82,
10720
10746
  /**
10721
10747
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
10722
10748
  *
@@ -10728,7 +10754,7 @@ export declare enum ModCallbackCustom {
10728
10754
  * function postPitRender(pit: GridEntityPit): void {}
10729
10755
  * ```
10730
10756
  */
10731
- POST_PIT_RENDER = 82,
10757
+ POST_PIT_RENDER = 83,
10732
10758
  /**
10733
10759
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
10734
10760
  *
@@ -10740,7 +10766,7 @@ export declare enum ModCallbackCustom {
10740
10766
  * function postPitUpdate(pit: GridEntityPit): void {}
10741
10767
  * ```
10742
10768
  */
10743
- POST_PIT_UPDATE = 83,
10769
+ POST_PIT_UPDATE = 84,
10744
10770
  /**
10745
10771
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
10746
10772
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -10762,7 +10788,7 @@ export declare enum ModCallbackCustom {
10762
10788
  * ): void {}
10763
10789
  * ```
10764
10790
  */
10765
- POST_PLAYER_CHANGE_HEALTH = 84,
10791
+ POST_PLAYER_CHANGE_HEALTH = 85,
10766
10792
  /**
10767
10793
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
10768
10794
  * from what they were on the previous frame.
@@ -10792,7 +10818,7 @@ export declare enum ModCallbackCustom {
10792
10818
  * ) => void {}
10793
10819
  * ```
10794
10820
  */
10795
- POST_PLAYER_CHANGE_STAT = 85,
10821
+ POST_PLAYER_CHANGE_STAT = 86,
10796
10822
  /**
10797
10823
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
10798
10824
  * type
@@ -10815,7 +10841,7 @@ export declare enum ModCallbackCustom {
10815
10841
  * ): void {}
10816
10842
  * ```
10817
10843
  */
10818
- POST_PLAYER_CHANGE_TYPE = 86,
10844
+ POST_PLAYER_CHANGE_TYPE = 87,
10819
10845
  /**
10820
10846
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10821
10847
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -10832,7 +10858,7 @@ export declare enum ModCallbackCustom {
10832
10858
  * ): void {}
10833
10859
  * ```
10834
10860
  */
10835
- POST_PLAYER_COLLECTIBLE_ADDED = 87,
10861
+ POST_PLAYER_COLLECTIBLE_ADDED = 88,
10836
10862
  /**
10837
10863
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
10838
10864
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -10849,7 +10875,7 @@ export declare enum ModCallbackCustom {
10849
10875
  * ): void {}
10850
10876
  * ```
10851
10877
  */
10852
- POST_PLAYER_COLLECTIBLE_REMOVED = 88,
10878
+ POST_PLAYER_COLLECTIBLE_REMOVED = 89,
10853
10879
  /**
10854
10880
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
10855
10881
  * prevent the fatal damage.
@@ -10867,7 +10893,7 @@ export declare enum ModCallbackCustom {
10867
10893
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
10868
10894
  * ```
10869
10895
  */
10870
- POST_PLAYER_FATAL_DAMAGE = 89,
10896
+ POST_PLAYER_FATAL_DAMAGE = 90,
10871
10897
  /**
10872
10898
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
10873
10899
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -10889,7 +10915,7 @@ export declare enum ModCallbackCustom {
10889
10915
  * function postPlayerInitFirst(player: EntityPlayer): void {}
10890
10916
  * ```
10891
10917
  */
10892
- POST_PLAYER_INIT_FIRST = 90,
10918
+ POST_PLAYER_INIT_FIRST = 91,
10893
10919
  /**
10894
10920
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
10895
10921
  *
@@ -10909,7 +10935,7 @@ export declare enum ModCallbackCustom {
10909
10935
  * function postPlayerInitLate(pickup: EntityPickup): void {}
10910
10936
  * ```
10911
10937
  */
10912
- POST_PLAYER_INIT_LATE = 91,
10938
+ POST_PLAYER_INIT_LATE = 92,
10913
10939
  /**
10914
10940
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
10915
10941
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -10933,7 +10959,7 @@ export declare enum ModCallbackCustom {
10933
10959
  * function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
10934
10960
  * ```
10935
10961
  */
10936
- POST_PLAYER_RENDER_REORDERED = 92,
10962
+ POST_PLAYER_RENDER_REORDERED = 93,
10937
10963
  /**
10938
10964
  * Similar to the vanilla callback of the same name, but fires after the
10939
10965
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -10958,7 +10984,7 @@ export declare enum ModCallbackCustom {
10958
10984
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
10959
10985
  * ```
10960
10986
  */
10961
- POST_PLAYER_UPDATE_REORDERED = 93,
10987
+ POST_PLAYER_UPDATE_REORDERED = 94,
10962
10988
  /**
10963
10989
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
10964
10990
  *
@@ -10970,7 +10996,7 @@ export declare enum ModCallbackCustom {
10970
10996
  * function postPoopRender(poop: GridEntityPoop): void {}
10971
10997
  * ```
10972
10998
  */
10973
- POST_POOP_RENDER = 94,
10999
+ POST_POOP_RENDER = 95,
10974
11000
  /**
10975
11001
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
10976
11002
  *
@@ -10982,7 +11008,7 @@ export declare enum ModCallbackCustom {
10982
11008
  * function postPoopUpdate(poop: GridEntityPoop): void {}
10983
11009
  * ```
10984
11010
  */
10985
- POST_POOP_UPDATE = 95,
11011
+ POST_POOP_UPDATE = 96,
10986
11012
  /**
10987
11013
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
10988
11014
  *
@@ -10994,7 +11020,7 @@ export declare enum ModCallbackCustom {
10994
11020
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
10995
11021
  * ```
10996
11022
  */
10997
- POST_PRESSURE_PLATE_RENDER = 96,
11023
+ POST_PRESSURE_PLATE_RENDER = 97,
10998
11024
  /**
10999
11025
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
11000
11026
  *
@@ -11006,7 +11032,7 @@ export declare enum ModCallbackCustom {
11006
11032
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
11007
11033
  * ```
11008
11034
  */
11009
- POST_PRESSURE_PLATE_UPDATE = 97,
11035
+ POST_PRESSURE_PLATE_UPDATE = 98,
11010
11036
  /**
11011
11037
  * The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
11012
11038
  * allows you to specify extra arguments for additional filtration.
@@ -11021,7 +11047,7 @@ export declare enum ModCallbackCustom {
11021
11047
  * function postProjectileInitFilter(tear: EntityTear): void {}
11022
11048
  * ```
11023
11049
  */
11024
- POST_PROJECTILE_INIT_FILTER = 98,
11050
+ POST_PROJECTILE_INIT_FILTER = 99,
11025
11051
  /**
11026
11052
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
11027
11053
  *
@@ -11038,7 +11064,7 @@ export declare enum ModCallbackCustom {
11038
11064
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
11039
11065
  * ```
11040
11066
  */
11041
- POST_PROJECTILE_INIT_LATE = 99,
11067
+ POST_PROJECTILE_INIT_LATE = 100,
11042
11068
  /**
11043
11069
  * The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
11044
11070
  * allows you to specify extra arguments for additional filtration.
@@ -11053,7 +11079,7 @@ export declare enum ModCallbackCustom {
11053
11079
  * function postProjectileRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
11054
11080
  * ```
11055
11081
  */
11056
- POST_PROJECTILE_RENDER_FILTER = 100,
11082
+ POST_PROJECTILE_RENDER_FILTER = 101,
11057
11083
  /**
11058
11084
  * The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
11059
11085
  * allows you to specify extra arguments for additional filtration.
@@ -11068,7 +11094,7 @@ export declare enum ModCallbackCustom {
11068
11094
  * function postProjectileUpdateFilter(tear: EntityTear): void {}
11069
11095
  * ```
11070
11096
  */
11071
- POST_PROJECTILE_UPDATE_FILTER = 101,
11097
+ POST_PROJECTILE_UPDATE_FILTER = 102,
11072
11098
  /**
11073
11099
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
11074
11100
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -11084,7 +11110,7 @@ export declare enum ModCallbackCustom {
11084
11110
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
11085
11111
  * ```
11086
11112
  */
11087
- POST_PURCHASE = 102,
11113
+ POST_PURCHASE = 103,
11088
11114
  /**
11089
11115
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
11090
11116
  *
@@ -11098,7 +11124,7 @@ export declare enum ModCallbackCustom {
11098
11124
  * function postRockRender(rock: GridEntityRock): void {}
11099
11125
  * ```
11100
11126
  */
11101
- POST_ROCK_RENDER = 103,
11127
+ POST_ROCK_RENDER = 104,
11102
11128
  /**
11103
11129
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
11104
11130
  *
@@ -11112,7 +11138,7 @@ export declare enum ModCallbackCustom {
11112
11138
  * function postRockUpdate(rock: GridEntityRock): void {}
11113
11139
  * ```
11114
11140
  */
11115
- POST_ROCK_UPDATE = 104,
11141
+ POST_ROCK_UPDATE = 105,
11116
11142
  /**
11117
11143
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
11118
11144
  * the `Room.IsClear` method).
@@ -11129,7 +11155,7 @@ export declare enum ModCallbackCustom {
11129
11155
  * function postRoomClearChanged(roomClear: boolean): void {}
11130
11156
  * ```
11131
11157
  */
11132
- POST_ROOM_CLEAR_CHANGED = 105,
11158
+ POST_ROOM_CLEAR_CHANGED = 106,
11133
11159
  /**
11134
11160
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
11135
11161
  * Room.
@@ -11144,7 +11170,7 @@ export declare enum ModCallbackCustom {
11144
11170
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
11145
11171
  * ```
11146
11172
  */
11147
- POST_SACRIFICE = 106,
11173
+ POST_SACRIFICE = 107,
11148
11174
  /**
11149
11175
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
11150
11176
  *
@@ -11162,7 +11188,7 @@ export declare enum ModCallbackCustom {
11162
11188
  * ): void {}
11163
11189
  * ```
11164
11190
  */
11165
- POST_SLOT_ANIMATION_CHANGED = 107,
11191
+ POST_SLOT_ANIMATION_CHANGED = 108,
11166
11192
  /**
11167
11193
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
11168
11194
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -11186,7 +11212,7 @@ export declare enum ModCallbackCustom {
11186
11212
  * ): void {}
11187
11213
  * ```
11188
11214
  */
11189
- POST_SLOT_COLLISION = 108,
11215
+ POST_SLOT_COLLISION = 109,
11190
11216
  /**
11191
11217
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
11192
11218
  * destroyed or a beggar is removed.
@@ -11228,7 +11254,7 @@ export declare enum ModCallbackCustom {
11228
11254
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
11229
11255
  * ```
11230
11256
  */
11231
- POST_SLOT_DESTROYED = 109,
11257
+ POST_SLOT_DESTROYED = 110,
11232
11258
  /**
11233
11259
  * Fires when a new slot entity is initialized. Specifically, this is either:
11234
11260
  *
@@ -11247,7 +11273,7 @@ export declare enum ModCallbackCustom {
11247
11273
  * function postSlotInit(slot: Entity): void {}
11248
11274
  * ```
11249
11275
  */
11250
- POST_SLOT_INIT = 110,
11276
+ POST_SLOT_INIT = 111,
11251
11277
  /**
11252
11278
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
11253
11279
  *
@@ -11261,7 +11287,7 @@ export declare enum ModCallbackCustom {
11261
11287
  * function postSlotRender(slot: Entity): void {}
11262
11288
  * ```
11263
11289
  */
11264
- POST_SLOT_RENDER = 111,
11290
+ POST_SLOT_RENDER = 112,
11265
11291
  /**
11266
11292
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
11267
11293
  *
@@ -11275,7 +11301,7 @@ export declare enum ModCallbackCustom {
11275
11301
  * function postSlotUpdate(slot: Entity): void {}
11276
11302
  * ```
11277
11303
  */
11278
- POST_SLOT_UPDATE = 112,
11304
+ POST_SLOT_UPDATE = 113,
11279
11305
  /**
11280
11306
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
11281
11307
  *
@@ -11287,7 +11313,7 @@ export declare enum ModCallbackCustom {
11287
11313
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
11288
11314
  * ```
11289
11315
  */
11290
- POST_SPIKES_RENDER = 113,
11316
+ POST_SPIKES_RENDER = 114,
11291
11317
  /**
11292
11318
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
11293
11319
  *
@@ -11299,7 +11325,7 @@ export declare enum ModCallbackCustom {
11299
11325
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
11300
11326
  * ```
11301
11327
  */
11302
- POST_SPIKES_UPDATE = 114,
11328
+ POST_SPIKES_UPDATE = 115,
11303
11329
  /**
11304
11330
  * The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
11305
11331
  * to specify extra arguments for additional filtration.
@@ -11314,7 +11340,7 @@ export declare enum ModCallbackCustom {
11314
11340
  * function postTearInitFilter(tear: EntityTear): void {}
11315
11341
  * ```
11316
11342
  */
11317
- POST_TEAR_INIT_FILTER = 115,
11343
+ POST_TEAR_INIT_FILTER = 116,
11318
11344
  /**
11319
11345
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
11320
11346
  * `EntityTear.FrameCount` is equal to 0).
@@ -11332,7 +11358,7 @@ export declare enum ModCallbackCustom {
11332
11358
  * function postTearInitLate(tear: EntityTear): void {}
11333
11359
  * ```
11334
11360
  */
11335
- POST_TEAR_INIT_LATE = 116,
11361
+ POST_TEAR_INIT_LATE = 117,
11336
11362
  /**
11337
11363
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
11338
11364
  * `EntityTear.FrameCount` is equal to 1).
@@ -11349,7 +11375,7 @@ export declare enum ModCallbackCustom {
11349
11375
  * function postTearInitVeryLate(tear: EntityTear): void {}
11350
11376
  * ```
11351
11377
  */
11352
- POST_TEAR_INIT_VERY_LATE = 117,
11378
+ POST_TEAR_INIT_VERY_LATE = 118,
11353
11379
  /**
11354
11380
  * The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
11355
11381
  * you to specify extra arguments for additional filtration.
@@ -11364,7 +11390,7 @@ export declare enum ModCallbackCustom {
11364
11390
  * function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
11365
11391
  * ```
11366
11392
  */
11367
- POST_TEAR_RENDER_FILTER = 118,
11393
+ POST_TEAR_RENDER_FILTER = 119,
11368
11394
  /**
11369
11395
  * The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
11370
11396
  * to specify extra arguments for additional filtration.
@@ -11379,7 +11405,7 @@ export declare enum ModCallbackCustom {
11379
11405
  * function postTearUpdateFilter(tear: EntityTear): void {}
11380
11406
  * ```
11381
11407
  */
11382
- POST_TEAR_UPDATE_FILTER = 119,
11408
+ POST_TEAR_UPDATE_FILTER = 120,
11383
11409
  /**
11384
11410
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
11385
11411
  *
@@ -11391,7 +11417,7 @@ export declare enum ModCallbackCustom {
11391
11417
  * function postTNTRender(tnt: GridEntityTNT): void {}
11392
11418
  * ```
11393
11419
  */
11394
- POST_TNT_RENDER = 120,
11420
+ POST_TNT_RENDER = 121,
11395
11421
  /**
11396
11422
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
11397
11423
  *
@@ -11403,7 +11429,7 @@ export declare enum ModCallbackCustom {
11403
11429
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
11404
11430
  * ```
11405
11431
  */
11406
- POST_TNT_UPDATE = 121,
11432
+ POST_TNT_UPDATE = 122,
11407
11433
  /**
11408
11434
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
11409
11435
  * transformation.
@@ -11422,7 +11448,7 @@ export declare enum ModCallbackCustom {
11422
11448
  * ): void {}
11423
11449
  * ```
11424
11450
  */
11425
- POST_TRANSFORMATION = 122,
11451
+ POST_TRANSFORMATION = 123,
11426
11452
  /**
11427
11453
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
11428
11454
  *
@@ -11437,7 +11463,7 @@ export declare enum ModCallbackCustom {
11437
11463
  * ): void {}
11438
11464
  * ```
11439
11465
  */
11440
- POST_TRINKET_BREAK = 123,
11466
+ POST_TRINKET_BREAK = 124,
11441
11467
  /**
11442
11468
  * The same thing as the vanilla `POST_USE_PILL` callback, except this callback passes the
11443
11469
  * `PillColor` of the used pill as the final argument. It allows you to filter by the `PillColor`.
@@ -11460,7 +11486,7 @@ export declare enum ModCallbackCustom {
11460
11486
  * ): void {}
11461
11487
  * ```
11462
11488
  */
11463
- POST_USE_PILL_FILTER = 124,
11489
+ POST_USE_PILL_FILTER = 125,
11464
11490
  /**
11465
11491
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
11466
11492
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -11476,7 +11502,7 @@ export declare enum ModCallbackCustom {
11476
11502
  * function preBerserkDeath(player: EntityPlayer): void {}
11477
11503
  * ```
11478
11504
  */
11479
- PRE_BERSERK_DEATH = 125,
11505
+ PRE_BERSERK_DEATH = 126,
11480
11506
  /**
11481
11507
  * The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
11482
11508
  * you to specify extra arguments for additional filtration.
@@ -11495,7 +11521,7 @@ export declare enum ModCallbackCustom {
11495
11521
  * ): void {}
11496
11522
  * ```
11497
11523
  */
11498
- PRE_BOMB_COLLISION_FILTER = 126,
11524
+ PRE_BOMB_COLLISION_FILTER = 127,
11499
11525
  /**
11500
11526
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
11501
11527
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -11514,7 +11540,7 @@ export declare enum ModCallbackCustom {
11514
11540
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
11515
11541
  * ```
11516
11542
  */
11517
- PRE_CUSTOM_REVIVE = 127,
11543
+ PRE_CUSTOM_REVIVE = 128,
11518
11544
  /**
11519
11545
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
11520
11546
  * you to specify extra arguments for additional filtration.
@@ -11539,7 +11565,7 @@ export declare enum ModCallbackCustom {
11539
11565
  * ): [EntityType, int, int, int] | undefined {}
11540
11566
  * ```
11541
11567
  */
11542
- PRE_ENTITY_SPAWN_FILTER = 128,
11568
+ PRE_ENTITY_SPAWN_FILTER = 129,
11543
11569
  /**
11544
11570
  * The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
11545
11571
  * allows you to specify extra arguments for additional filtration.
@@ -11558,7 +11584,7 @@ export declare enum ModCallbackCustom {
11558
11584
  * ): void {}
11559
11585
  * ```
11560
11586
  */
11561
- PRE_FAMILIAR_COLLISION_FILTER = 129,
11587
+ PRE_FAMILIAR_COLLISION_FILTER = 130,
11562
11588
  /**
11563
11589
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
11564
11590
  * meets all of the conditions to pick it up.
@@ -11578,7 +11604,7 @@ export declare enum ModCallbackCustom {
11578
11604
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
11579
11605
  * ```
11580
11606
  */
11581
- PRE_GET_PEDESTAL = 130,
11607
+ PRE_GET_PEDESTAL = 131,
11582
11608
  /**
11583
11609
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
11584
11610
  * the player begins to hold the item above their head).
@@ -11598,7 +11624,7 @@ export declare enum ModCallbackCustom {
11598
11624
  * ): void {}
11599
11625
  * ```
11600
11626
  */
11601
- PRE_ITEM_PICKUP = 131,
11627
+ PRE_ITEM_PICKUP = 132,
11602
11628
  /**
11603
11629
  * The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
11604
11630
  * you to specify extra arguments for additional filtration.
@@ -11617,7 +11643,7 @@ export declare enum ModCallbackCustom {
11617
11643
  * ): void {}
11618
11644
  * ```
11619
11645
  */
11620
- PRE_KNIFE_COLLISION_FILTER = 132,
11646
+ PRE_KNIFE_COLLISION_FILTER = 133,
11621
11647
  /**
11622
11648
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
11623
11649
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -11631,7 +11657,7 @@ export declare enum ModCallbackCustom {
11631
11657
  * function preNewLevel(player: EntityPlayer): void {}
11632
11658
  * ```
11633
11659
  */
11634
- PRE_NEW_LEVEL = 133,
11660
+ PRE_NEW_LEVEL = 134,
11635
11661
  /**
11636
11662
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
11637
11663
  * you to specify extra arguments for additional filtration.
@@ -11652,7 +11678,7 @@ export declare enum ModCallbackCustom {
11652
11678
  * ): boolean | undefined {}
11653
11679
  * ```
11654
11680
  */
11655
- PRE_NPC_COLLISION_FILTER = 134,
11681
+ PRE_NPC_COLLISION_FILTER = 135,
11656
11682
  /**
11657
11683
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
11658
11684
  * to specify extra arguments for additional filtration.
@@ -11669,7 +11695,7 @@ export declare enum ModCallbackCustom {
11669
11695
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
11670
11696
  * ```
11671
11697
  */
11672
- PRE_NPC_UPDATE_FILTER = 135,
11698
+ PRE_NPC_UPDATE_FILTER = 136,
11673
11699
  /**
11674
11700
  * The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
11675
11701
  * allows you to specify extra arguments for additional filtration.
@@ -11688,7 +11714,7 @@ export declare enum ModCallbackCustom {
11688
11714
  * ): void {}
11689
11715
  * ```
11690
11716
  */
11691
- PRE_PROJECTILE_COLLISION_FILTER = 136,
11717
+ PRE_PROJECTILE_COLLISION_FILTER = 137,
11692
11718
  /**
11693
11719
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
11694
11720
  * allows you to specify extra arguments for additional filtration.
@@ -11711,7 +11737,7 @@ export declare enum ModCallbackCustom {
11711
11737
  * ): [EntityType | GridEntityXMLType, int, int] | undefined {}
11712
11738
  * ```
11713
11739
  */
11714
- PRE_ROOM_ENTITY_SPAWN_FILTER = 137,
11740
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 138,
11715
11741
  /**
11716
11742
  * The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
11717
11743
  * you to specify extra arguments for additional filtration.
@@ -11730,7 +11756,7 @@ export declare enum ModCallbackCustom {
11730
11756
  * ): void {}
11731
11757
  * ```
11732
11758
  */
11733
- PRE_TEAR_COLLISION_FILTER = 138
11759
+ PRE_TEAR_COLLISION_FILTER = 139
11734
11760
  }
11735
11761
 
11736
11762
  /**
@@ -12766,8 +12792,10 @@ export declare function newChargeBarSprites(maxCharges: int): ChargeBarSprites;
12766
12792
  /**
12767
12793
  * Helper function to generate a new sprite based on a collectible. If the provided collectible type
12768
12794
  * is invalid, a sprite with a Curse of the Blind question mark will be returned.
12795
+ *
12796
+ * If you intentionally want a question mark sprite, pass -1 as the collectible type.
12769
12797
  */
12770
- export declare function newCollectibleSprite(collectibleType: CollectibleType): Sprite;
12798
+ export declare function newCollectibleSprite(collectibleType: CollectibleType | -1): Sprite;
12771
12799
 
12772
12800
  export declare function newPickingUpItem(): PickingUpItem;
12773
12801