isaacscript-common 27.12.0 → 27.13.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.rollup.d.ts +154 -70
- package/dist/isaacscript-common.lua +201 -71
- package/dist/src/callbackClasses.d.ts +4 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +20 -0
- package/dist/src/callbacks.d.ts +74 -70
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +4 -0
- package/dist/src/classes/callbacks/PostKnifeInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostKnifeInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostKnifeRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostKnifeRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostKnifeUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostKnifeUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreKnifeCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreKnifeCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreKnifeCollisionFilter.lua +21 -0
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.d.ts +134 -70
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +78 -70
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +20 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +1 -1
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/callbackClasses.ts +4 -0
- package/src/callbacks.ts +4 -0
- package/src/classes/callbacks/PostKnifeInitFilter.ts +22 -0
- package/src/classes/callbacks/PostKnifeRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostKnifeUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreKnifeCollisionFilter.ts +24 -0
- package/src/classes/private/CustomCallback.ts +4 -0
- package/src/enums/ModCallbackCustom.ts +68 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +28 -0
- package/src/shouldFire.ts +4 -1
package/dist/index.rollup.d.ts
CHANGED
|
@@ -323,11 +323,26 @@ declare interface AddCallbackParametersCustom {
|
|
|
323
323
|
keyboard?: Keyboard,
|
|
324
324
|
pressed?: boolean
|
|
325
325
|
];
|
|
326
|
+
[ModCallbackCustom.POST_KNIFE_INIT_FILTER]: [
|
|
327
|
+
callback: (knife: EntityKnife) => void,
|
|
328
|
+
knifeVariant?: KnifeVariant,
|
|
329
|
+
subType?: int
|
|
330
|
+
];
|
|
326
331
|
[ModCallbackCustom.POST_KNIFE_INIT_LATE]: [
|
|
327
332
|
callback: (knife: EntityKnife) => void,
|
|
328
333
|
knifeVariant?: KnifeVariant,
|
|
329
334
|
subType?: int
|
|
330
335
|
];
|
|
336
|
+
[ModCallbackCustom.POST_KNIFE_RENDER_FILTER]: [
|
|
337
|
+
callback: (knife: EntityKnife, renderOffset: Vector) => void,
|
|
338
|
+
knifeVariant?: KnifeVariant,
|
|
339
|
+
subType?: int
|
|
340
|
+
];
|
|
341
|
+
[ModCallbackCustom.POST_KNIFE_UPDATE_FILTER]: [
|
|
342
|
+
callback: (knife: EntityKnife) => void,
|
|
343
|
+
knifeVariant?: KnifeVariant,
|
|
344
|
+
subType?: int
|
|
345
|
+
];
|
|
331
346
|
[ModCallbackCustom.POST_LASER_INIT_FILTER]: [
|
|
332
347
|
callback: (laser: EntityLaser) => void,
|
|
333
348
|
laserVariant?: LaserVariant,
|
|
@@ -645,6 +660,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
645
660
|
itemType: ItemType.TRINKET,
|
|
646
661
|
trinketType?: TrinketType
|
|
647
662
|
];
|
|
663
|
+
[ModCallbackCustom.PRE_KNIFE_COLLISION_FILTER]: [
|
|
664
|
+
callback: (knife: EntityKnife, collider: Entity, low: boolean) => boolean | undefined,
|
|
665
|
+
knifeVariant?: KnifeVariant,
|
|
666
|
+
subtype?: int
|
|
667
|
+
];
|
|
648
668
|
[ModCallbackCustom.PRE_NEW_LEVEL]: [callback: (player: EntityPlayer) => void];
|
|
649
669
|
[ModCallbackCustom.PRE_NPC_COLLISION_FILTER]: [
|
|
650
670
|
callback: (npc: EntityNPC, collider: Entity, low: boolean) => undefined | boolean,
|
|
@@ -10062,6 +10082,21 @@ export declare enum ModCallbackCustom {
|
|
|
10062
10082
|
* ```
|
|
10063
10083
|
*/
|
|
10064
10084
|
POST_KEYBOARD_CHANGED = 51,
|
|
10085
|
+
/**
|
|
10086
|
+
* The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
|
|
10087
|
+
* to specify extra arguments for additional filtration.
|
|
10088
|
+
*
|
|
10089
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10090
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10091
|
+
* matches the `KnifeVariant` provided.
|
|
10092
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10093
|
+
* matches the sub-type provided.
|
|
10094
|
+
*
|
|
10095
|
+
* ```ts
|
|
10096
|
+
* function postKnifeInitFilter(knife: EntityKnife): void {}
|
|
10097
|
+
* ```
|
|
10098
|
+
*/
|
|
10099
|
+
POST_KNIFE_INIT_FILTER = 52,
|
|
10065
10100
|
/**
|
|
10066
10101
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
10067
10102
|
*
|
|
@@ -10078,7 +10113,37 @@ export declare enum ModCallbackCustom {
|
|
|
10078
10113
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
10079
10114
|
* ```
|
|
10080
10115
|
*/
|
|
10081
|
-
POST_KNIFE_INIT_LATE =
|
|
10116
|
+
POST_KNIFE_INIT_LATE = 53,
|
|
10117
|
+
/**
|
|
10118
|
+
* The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
|
|
10119
|
+
* you to specify extra arguments for additional filtration.
|
|
10120
|
+
*
|
|
10121
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10122
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10123
|
+
* matches the `KnifeVariant` provided.
|
|
10124
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10125
|
+
* matches the sub-type provided.
|
|
10126
|
+
*
|
|
10127
|
+
* ```ts
|
|
10128
|
+
* function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
|
|
10129
|
+
* ```
|
|
10130
|
+
*/
|
|
10131
|
+
POST_KNIFE_RENDER_FILTER = 54,
|
|
10132
|
+
/**
|
|
10133
|
+
* The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
|
|
10134
|
+
* you to specify extra arguments for additional filtration.
|
|
10135
|
+
*
|
|
10136
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10137
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10138
|
+
* matches the `KnifeVariant` provided.
|
|
10139
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10140
|
+
* matches the sub-type provided.
|
|
10141
|
+
*
|
|
10142
|
+
* ```ts
|
|
10143
|
+
* function postKnifeUpdateFilter(knife: EntityKnife): void {}
|
|
10144
|
+
* ```
|
|
10145
|
+
*/
|
|
10146
|
+
POST_KNIFE_UPDATE_FILTER = 55,
|
|
10082
10147
|
/**
|
|
10083
10148
|
* The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
|
|
10084
10149
|
* to specify extra arguments for additional filtration.
|
|
@@ -10093,7 +10158,7 @@ export declare enum ModCallbackCustom {
|
|
|
10093
10158
|
* function postLaserInitFilter(laser: EntityLaser): void {}
|
|
10094
10159
|
* ```
|
|
10095
10160
|
*/
|
|
10096
|
-
POST_LASER_INIT_FILTER =
|
|
10161
|
+
POST_LASER_INIT_FILTER = 56,
|
|
10097
10162
|
/**
|
|
10098
10163
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
10099
10164
|
*
|
|
@@ -10110,7 +10175,7 @@ export declare enum ModCallbackCustom {
|
|
|
10110
10175
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
10111
10176
|
* ```
|
|
10112
10177
|
*/
|
|
10113
|
-
POST_LASER_INIT_LATE =
|
|
10178
|
+
POST_LASER_INIT_LATE = 57,
|
|
10114
10179
|
/**
|
|
10115
10180
|
* The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
|
|
10116
10181
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10125,7 +10190,7 @@ export declare enum ModCallbackCustom {
|
|
|
10125
10190
|
* function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
|
|
10126
10191
|
* ```
|
|
10127
10192
|
*/
|
|
10128
|
-
POST_LASER_RENDER_FILTER =
|
|
10193
|
+
POST_LASER_RENDER_FILTER = 58,
|
|
10129
10194
|
/**
|
|
10130
10195
|
* The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
|
|
10131
10196
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10140,7 +10205,7 @@ export declare enum ModCallbackCustom {
|
|
|
10140
10205
|
* function postLaserUpdateFilter(laser: EntityLaser): void {}
|
|
10141
10206
|
* ```
|
|
10142
10207
|
*/
|
|
10143
|
-
POST_LASER_UPDATE_FILTER =
|
|
10208
|
+
POST_LASER_UPDATE_FILTER = 59,
|
|
10144
10209
|
/**
|
|
10145
10210
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10146
10211
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -10166,7 +10231,7 @@ export declare enum ModCallbackCustom {
|
|
|
10166
10231
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
10167
10232
|
* ```
|
|
10168
10233
|
*/
|
|
10169
|
-
POST_NEW_LEVEL_REORDERED =
|
|
10234
|
+
POST_NEW_LEVEL_REORDERED = 60,
|
|
10170
10235
|
/**
|
|
10171
10236
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
10172
10237
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -10183,7 +10248,7 @@ export declare enum ModCallbackCustom {
|
|
|
10183
10248
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
10184
10249
|
* ```
|
|
10185
10250
|
*/
|
|
10186
|
-
POST_NEW_ROOM_EARLY =
|
|
10251
|
+
POST_NEW_ROOM_EARLY = 61,
|
|
10187
10252
|
/**
|
|
10188
10253
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10189
10254
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -10206,7 +10271,7 @@ export declare enum ModCallbackCustom {
|
|
|
10206
10271
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
10207
10272
|
* ```
|
|
10208
10273
|
*/
|
|
10209
|
-
POST_NEW_ROOM_REORDERED =
|
|
10274
|
+
POST_NEW_ROOM_REORDERED = 62,
|
|
10210
10275
|
/**
|
|
10211
10276
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
10212
10277
|
* to specify extra arguments for additional filtration.
|
|
@@ -10223,7 +10288,7 @@ export declare enum ModCallbackCustom {
|
|
|
10223
10288
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
10224
10289
|
* ```
|
|
10225
10290
|
*/
|
|
10226
|
-
POST_NPC_DEATH_FILTER =
|
|
10291
|
+
POST_NPC_DEATH_FILTER = 63,
|
|
10227
10292
|
/**
|
|
10228
10293
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
10229
10294
|
* to specify extra arguments for additional filtration.
|
|
@@ -10240,7 +10305,7 @@ export declare enum ModCallbackCustom {
|
|
|
10240
10305
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
10241
10306
|
* ```
|
|
10242
10307
|
*/
|
|
10243
|
-
POST_NPC_INIT_FILTER =
|
|
10308
|
+
POST_NPC_INIT_FILTER = 64,
|
|
10244
10309
|
/**
|
|
10245
10310
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
10246
10311
|
*
|
|
@@ -10259,7 +10324,7 @@ export declare enum ModCallbackCustom {
|
|
|
10259
10324
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
10260
10325
|
* ```
|
|
10261
10326
|
*/
|
|
10262
|
-
POST_NPC_INIT_LATE =
|
|
10327
|
+
POST_NPC_INIT_LATE = 65,
|
|
10263
10328
|
/**
|
|
10264
10329
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
10265
10330
|
* to specify extra arguments for additional filtration.
|
|
@@ -10276,7 +10341,7 @@ export declare enum ModCallbackCustom {
|
|
|
10276
10341
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
10277
10342
|
* ```
|
|
10278
10343
|
*/
|
|
10279
|
-
POST_NPC_RENDER_FILTER =
|
|
10344
|
+
POST_NPC_RENDER_FILTER = 66,
|
|
10280
10345
|
/**
|
|
10281
10346
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10282
10347
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10297,7 +10362,7 @@ export declare enum ModCallbackCustom {
|
|
|
10297
10362
|
* ): void {}
|
|
10298
10363
|
* ```
|
|
10299
10364
|
*/
|
|
10300
|
-
POST_NPC_STATE_CHANGED =
|
|
10365
|
+
POST_NPC_STATE_CHANGED = 67,
|
|
10301
10366
|
/**
|
|
10302
10367
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10303
10368
|
* to specify extra arguments for additional filtration.
|
|
@@ -10314,7 +10379,7 @@ export declare enum ModCallbackCustom {
|
|
|
10314
10379
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10315
10380
|
* ```
|
|
10316
10381
|
*/
|
|
10317
|
-
POST_NPC_UPDATE_FILTER =
|
|
10382
|
+
POST_NPC_UPDATE_FILTER = 68,
|
|
10318
10383
|
/**
|
|
10319
10384
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10320
10385
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10339,7 +10404,7 @@ export declare enum ModCallbackCustom {
|
|
|
10339
10404
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10340
10405
|
* ```
|
|
10341
10406
|
*/
|
|
10342
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10407
|
+
POST_PEFFECT_UPDATE_REORDERED = 69,
|
|
10343
10408
|
/**
|
|
10344
10409
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10345
10410
|
* than what it was on the previous frame.
|
|
@@ -10360,7 +10425,7 @@ export declare enum ModCallbackCustom {
|
|
|
10360
10425
|
* ): void {}
|
|
10361
10426
|
* ```
|
|
10362
10427
|
*/
|
|
10363
|
-
POST_PICKUP_CHANGED =
|
|
10428
|
+
POST_PICKUP_CHANGED = 70,
|
|
10364
10429
|
/**
|
|
10365
10430
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10366
10431
|
*
|
|
@@ -10379,7 +10444,7 @@ export declare enum ModCallbackCustom {
|
|
|
10379
10444
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10380
10445
|
* ```
|
|
10381
10446
|
*/
|
|
10382
|
-
POST_PICKUP_COLLECT =
|
|
10447
|
+
POST_PICKUP_COLLECT = 71,
|
|
10383
10448
|
/**
|
|
10384
10449
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10385
10450
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10394,7 +10459,7 @@ export declare enum ModCallbackCustom {
|
|
|
10394
10459
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10395
10460
|
* ```
|
|
10396
10461
|
*/
|
|
10397
|
-
POST_PICKUP_INIT_FILTER =
|
|
10462
|
+
POST_PICKUP_INIT_FILTER = 72,
|
|
10398
10463
|
/**
|
|
10399
10464
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10400
10465
|
* respective pickup on the run.
|
|
@@ -10412,7 +10477,7 @@ export declare enum ModCallbackCustom {
|
|
|
10412
10477
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10413
10478
|
* ```
|
|
10414
10479
|
*/
|
|
10415
|
-
POST_PICKUP_INIT_FIRST =
|
|
10480
|
+
POST_PICKUP_INIT_FIRST = 73,
|
|
10416
10481
|
/**
|
|
10417
10482
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10418
10483
|
*
|
|
@@ -10429,7 +10494,7 @@ export declare enum ModCallbackCustom {
|
|
|
10429
10494
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10430
10495
|
* ```
|
|
10431
10496
|
*/
|
|
10432
|
-
POST_PICKUP_INIT_LATE =
|
|
10497
|
+
POST_PICKUP_INIT_LATE = 74,
|
|
10433
10498
|
/**
|
|
10434
10499
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10435
10500
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10444,7 +10509,7 @@ export declare enum ModCallbackCustom {
|
|
|
10444
10509
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10445
10510
|
* ```
|
|
10446
10511
|
*/
|
|
10447
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10512
|
+
POST_PICKUP_RENDER_FILTER = 75,
|
|
10448
10513
|
/**
|
|
10449
10514
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10450
10515
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10463,7 +10528,7 @@ export declare enum ModCallbackCustom {
|
|
|
10463
10528
|
* ): [PickupVariant, int] | undefined {}
|
|
10464
10529
|
* ```
|
|
10465
10530
|
*/
|
|
10466
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10531
|
+
POST_PICKUP_SELECTION_FILTER = 76,
|
|
10467
10532
|
/**
|
|
10468
10533
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10469
10534
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10482,7 +10547,7 @@ export declare enum ModCallbackCustom {
|
|
|
10482
10547
|
* ): void {}
|
|
10483
10548
|
* ```
|
|
10484
10549
|
*/
|
|
10485
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10550
|
+
POST_PICKUP_STATE_CHANGED = 77,
|
|
10486
10551
|
/**
|
|
10487
10552
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10488
10553
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10497,7 +10562,7 @@ export declare enum ModCallbackCustom {
|
|
|
10497
10562
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10498
10563
|
* ```
|
|
10499
10564
|
*/
|
|
10500
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10565
|
+
POST_PICKUP_UPDATE_FILTER = 78,
|
|
10501
10566
|
/**
|
|
10502
10567
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10503
10568
|
*
|
|
@@ -10509,7 +10574,7 @@ export declare enum ModCallbackCustom {
|
|
|
10509
10574
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10510
10575
|
* ```
|
|
10511
10576
|
*/
|
|
10512
|
-
POST_PIT_RENDER =
|
|
10577
|
+
POST_PIT_RENDER = 79,
|
|
10513
10578
|
/**
|
|
10514
10579
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10515
10580
|
*
|
|
@@ -10521,7 +10586,7 @@ export declare enum ModCallbackCustom {
|
|
|
10521
10586
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10522
10587
|
* ```
|
|
10523
10588
|
*/
|
|
10524
|
-
POST_PIT_UPDATE =
|
|
10589
|
+
POST_PIT_UPDATE = 80,
|
|
10525
10590
|
/**
|
|
10526
10591
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10527
10592
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10543,7 +10608,7 @@ export declare enum ModCallbackCustom {
|
|
|
10543
10608
|
* ): void {}
|
|
10544
10609
|
* ```
|
|
10545
10610
|
*/
|
|
10546
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10611
|
+
POST_PLAYER_CHANGE_HEALTH = 81,
|
|
10547
10612
|
/**
|
|
10548
10613
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10549
10614
|
* from what they were on the previous frame.
|
|
@@ -10573,7 +10638,7 @@ export declare enum ModCallbackCustom {
|
|
|
10573
10638
|
* ) => void {}
|
|
10574
10639
|
* ```
|
|
10575
10640
|
*/
|
|
10576
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10641
|
+
POST_PLAYER_CHANGE_STAT = 82,
|
|
10577
10642
|
/**
|
|
10578
10643
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10579
10644
|
* type
|
|
@@ -10596,7 +10661,7 @@ export declare enum ModCallbackCustom {
|
|
|
10596
10661
|
* ): void {}
|
|
10597
10662
|
* ```
|
|
10598
10663
|
*/
|
|
10599
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10664
|
+
POST_PLAYER_CHANGE_TYPE = 83,
|
|
10600
10665
|
/**
|
|
10601
10666
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10602
10667
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10613,7 +10678,7 @@ export declare enum ModCallbackCustom {
|
|
|
10613
10678
|
* ): void {}
|
|
10614
10679
|
* ```
|
|
10615
10680
|
*/
|
|
10616
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10681
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 84,
|
|
10617
10682
|
/**
|
|
10618
10683
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10619
10684
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10630,7 +10695,7 @@ export declare enum ModCallbackCustom {
|
|
|
10630
10695
|
* ): void {}
|
|
10631
10696
|
* ```
|
|
10632
10697
|
*/
|
|
10633
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10698
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 85,
|
|
10634
10699
|
/**
|
|
10635
10700
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10636
10701
|
* prevent the fatal damage.
|
|
@@ -10648,7 +10713,7 @@ export declare enum ModCallbackCustom {
|
|
|
10648
10713
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10649
10714
|
* ```
|
|
10650
10715
|
*/
|
|
10651
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10716
|
+
POST_PLAYER_FATAL_DAMAGE = 86,
|
|
10652
10717
|
/**
|
|
10653
10718
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10654
10719
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10670,7 +10735,7 @@ export declare enum ModCallbackCustom {
|
|
|
10670
10735
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10671
10736
|
* ```
|
|
10672
10737
|
*/
|
|
10673
|
-
POST_PLAYER_INIT_FIRST =
|
|
10738
|
+
POST_PLAYER_INIT_FIRST = 87,
|
|
10674
10739
|
/**
|
|
10675
10740
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10676
10741
|
*
|
|
@@ -10690,7 +10755,7 @@ export declare enum ModCallbackCustom {
|
|
|
10690
10755
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10691
10756
|
* ```
|
|
10692
10757
|
*/
|
|
10693
|
-
POST_PLAYER_INIT_LATE =
|
|
10758
|
+
POST_PLAYER_INIT_LATE = 88,
|
|
10694
10759
|
/**
|
|
10695
10760
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10696
10761
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10714,7 +10779,7 @@ export declare enum ModCallbackCustom {
|
|
|
10714
10779
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10715
10780
|
* ```
|
|
10716
10781
|
*/
|
|
10717
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10782
|
+
POST_PLAYER_RENDER_REORDERED = 89,
|
|
10718
10783
|
/**
|
|
10719
10784
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10720
10785
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10739,7 +10804,7 @@ export declare enum ModCallbackCustom {
|
|
|
10739
10804
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10740
10805
|
* ```
|
|
10741
10806
|
*/
|
|
10742
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10807
|
+
POST_PLAYER_UPDATE_REORDERED = 90,
|
|
10743
10808
|
/**
|
|
10744
10809
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10745
10810
|
*
|
|
@@ -10751,7 +10816,7 @@ export declare enum ModCallbackCustom {
|
|
|
10751
10816
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10752
10817
|
* ```
|
|
10753
10818
|
*/
|
|
10754
|
-
POST_POOP_RENDER =
|
|
10819
|
+
POST_POOP_RENDER = 91,
|
|
10755
10820
|
/**
|
|
10756
10821
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10757
10822
|
*
|
|
@@ -10763,7 +10828,7 @@ export declare enum ModCallbackCustom {
|
|
|
10763
10828
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10764
10829
|
* ```
|
|
10765
10830
|
*/
|
|
10766
|
-
POST_POOP_UPDATE =
|
|
10831
|
+
POST_POOP_UPDATE = 92,
|
|
10767
10832
|
/**
|
|
10768
10833
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10769
10834
|
*
|
|
@@ -10775,7 +10840,7 @@ export declare enum ModCallbackCustom {
|
|
|
10775
10840
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10776
10841
|
* ```
|
|
10777
10842
|
*/
|
|
10778
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10843
|
+
POST_PRESSURE_PLATE_RENDER = 93,
|
|
10779
10844
|
/**
|
|
10780
10845
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10781
10846
|
*
|
|
@@ -10787,7 +10852,7 @@ export declare enum ModCallbackCustom {
|
|
|
10787
10852
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10788
10853
|
* ```
|
|
10789
10854
|
*/
|
|
10790
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10855
|
+
POST_PRESSURE_PLATE_UPDATE = 94,
|
|
10791
10856
|
/**
|
|
10792
10857
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10793
10858
|
*
|
|
@@ -10804,7 +10869,7 @@ export declare enum ModCallbackCustom {
|
|
|
10804
10869
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10805
10870
|
* ```
|
|
10806
10871
|
*/
|
|
10807
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10872
|
+
POST_PROJECTILE_INIT_LATE = 95,
|
|
10808
10873
|
/**
|
|
10809
10874
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10810
10875
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10820,7 +10885,7 @@ export declare enum ModCallbackCustom {
|
|
|
10820
10885
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10821
10886
|
* ```
|
|
10822
10887
|
*/
|
|
10823
|
-
POST_PURCHASE =
|
|
10888
|
+
POST_PURCHASE = 96,
|
|
10824
10889
|
/**
|
|
10825
10890
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10826
10891
|
*
|
|
@@ -10834,7 +10899,7 @@ export declare enum ModCallbackCustom {
|
|
|
10834
10899
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10835
10900
|
* ```
|
|
10836
10901
|
*/
|
|
10837
|
-
POST_ROCK_RENDER =
|
|
10902
|
+
POST_ROCK_RENDER = 97,
|
|
10838
10903
|
/**
|
|
10839
10904
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10840
10905
|
*
|
|
@@ -10848,7 +10913,7 @@ export declare enum ModCallbackCustom {
|
|
|
10848
10913
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10849
10914
|
* ```
|
|
10850
10915
|
*/
|
|
10851
|
-
POST_ROCK_UPDATE =
|
|
10916
|
+
POST_ROCK_UPDATE = 98,
|
|
10852
10917
|
/**
|
|
10853
10918
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10854
10919
|
* the `Room.IsClear` method).
|
|
@@ -10865,7 +10930,7 @@ export declare enum ModCallbackCustom {
|
|
|
10865
10930
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10866
10931
|
* ```
|
|
10867
10932
|
*/
|
|
10868
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10933
|
+
POST_ROOM_CLEAR_CHANGED = 99,
|
|
10869
10934
|
/**
|
|
10870
10935
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10871
10936
|
* Room.
|
|
@@ -10880,7 +10945,7 @@ export declare enum ModCallbackCustom {
|
|
|
10880
10945
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10881
10946
|
* ```
|
|
10882
10947
|
*/
|
|
10883
|
-
POST_SACRIFICE =
|
|
10948
|
+
POST_SACRIFICE = 100,
|
|
10884
10949
|
/**
|
|
10885
10950
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10886
10951
|
*
|
|
@@ -10898,7 +10963,7 @@ export declare enum ModCallbackCustom {
|
|
|
10898
10963
|
* ): void {}
|
|
10899
10964
|
* ```
|
|
10900
10965
|
*/
|
|
10901
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10966
|
+
POST_SLOT_ANIMATION_CHANGED = 101,
|
|
10902
10967
|
/**
|
|
10903
10968
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10904
10969
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -10922,7 +10987,7 @@ export declare enum ModCallbackCustom {
|
|
|
10922
10987
|
* ): void {}
|
|
10923
10988
|
* ```
|
|
10924
10989
|
*/
|
|
10925
|
-
POST_SLOT_COLLISION =
|
|
10990
|
+
POST_SLOT_COLLISION = 102,
|
|
10926
10991
|
/**
|
|
10927
10992
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
10928
10993
|
* destroyed or a beggar is removed.
|
|
@@ -10964,7 +11029,7 @@ export declare enum ModCallbackCustom {
|
|
|
10964
11029
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10965
11030
|
* ```
|
|
10966
11031
|
*/
|
|
10967
|
-
POST_SLOT_DESTROYED =
|
|
11032
|
+
POST_SLOT_DESTROYED = 103,
|
|
10968
11033
|
/**
|
|
10969
11034
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10970
11035
|
*
|
|
@@ -10983,7 +11048,7 @@ export declare enum ModCallbackCustom {
|
|
|
10983
11048
|
* function postSlotInit(slot: Entity): void {}
|
|
10984
11049
|
* ```
|
|
10985
11050
|
*/
|
|
10986
|
-
POST_SLOT_INIT =
|
|
11051
|
+
POST_SLOT_INIT = 104,
|
|
10987
11052
|
/**
|
|
10988
11053
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10989
11054
|
*
|
|
@@ -10997,7 +11062,7 @@ export declare enum ModCallbackCustom {
|
|
|
10997
11062
|
* function postSlotRender(slot: Entity): void {}
|
|
10998
11063
|
* ```
|
|
10999
11064
|
*/
|
|
11000
|
-
POST_SLOT_RENDER =
|
|
11065
|
+
POST_SLOT_RENDER = 105,
|
|
11001
11066
|
/**
|
|
11002
11067
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
11003
11068
|
*
|
|
@@ -11011,7 +11076,7 @@ export declare enum ModCallbackCustom {
|
|
|
11011
11076
|
* function postSlotUpdate(slot: Entity): void {}
|
|
11012
11077
|
* ```
|
|
11013
11078
|
*/
|
|
11014
|
-
POST_SLOT_UPDATE =
|
|
11079
|
+
POST_SLOT_UPDATE = 106,
|
|
11015
11080
|
/**
|
|
11016
11081
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
11017
11082
|
*
|
|
@@ -11023,7 +11088,7 @@ export declare enum ModCallbackCustom {
|
|
|
11023
11088
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
11024
11089
|
* ```
|
|
11025
11090
|
*/
|
|
11026
|
-
POST_SPIKES_RENDER =
|
|
11091
|
+
POST_SPIKES_RENDER = 107,
|
|
11027
11092
|
/**
|
|
11028
11093
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
11029
11094
|
*
|
|
@@ -11035,7 +11100,7 @@ export declare enum ModCallbackCustom {
|
|
|
11035
11100
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
11036
11101
|
* ```
|
|
11037
11102
|
*/
|
|
11038
|
-
POST_SPIKES_UPDATE =
|
|
11103
|
+
POST_SPIKES_UPDATE = 108,
|
|
11039
11104
|
/**
|
|
11040
11105
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11041
11106
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -11053,7 +11118,7 @@ export declare enum ModCallbackCustom {
|
|
|
11053
11118
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
11054
11119
|
* ```
|
|
11055
11120
|
*/
|
|
11056
|
-
POST_TEAR_INIT_LATE =
|
|
11121
|
+
POST_TEAR_INIT_LATE = 109,
|
|
11057
11122
|
/**
|
|
11058
11123
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11059
11124
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11070,7 +11135,7 @@ export declare enum ModCallbackCustom {
|
|
|
11070
11135
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11071
11136
|
* ```
|
|
11072
11137
|
*/
|
|
11073
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11138
|
+
POST_TEAR_INIT_VERY_LATE = 110,
|
|
11074
11139
|
/**
|
|
11075
11140
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11076
11141
|
*
|
|
@@ -11082,7 +11147,7 @@ export declare enum ModCallbackCustom {
|
|
|
11082
11147
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11083
11148
|
* ```
|
|
11084
11149
|
*/
|
|
11085
|
-
POST_TNT_RENDER =
|
|
11150
|
+
POST_TNT_RENDER = 111,
|
|
11086
11151
|
/**
|
|
11087
11152
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11088
11153
|
*
|
|
@@ -11094,7 +11159,7 @@ export declare enum ModCallbackCustom {
|
|
|
11094
11159
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11095
11160
|
* ```
|
|
11096
11161
|
*/
|
|
11097
|
-
POST_TNT_UPDATE =
|
|
11162
|
+
POST_TNT_UPDATE = 112,
|
|
11098
11163
|
/**
|
|
11099
11164
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11100
11165
|
* transformation.
|
|
@@ -11113,7 +11178,7 @@ export declare enum ModCallbackCustom {
|
|
|
11113
11178
|
* ): void {}
|
|
11114
11179
|
* ```
|
|
11115
11180
|
*/
|
|
11116
|
-
POST_TRANSFORMATION =
|
|
11181
|
+
POST_TRANSFORMATION = 113,
|
|
11117
11182
|
/**
|
|
11118
11183
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11119
11184
|
*
|
|
@@ -11128,7 +11193,7 @@ export declare enum ModCallbackCustom {
|
|
|
11128
11193
|
* ): void {}
|
|
11129
11194
|
* ```
|
|
11130
11195
|
*/
|
|
11131
|
-
POST_TRINKET_BREAK =
|
|
11196
|
+
POST_TRINKET_BREAK = 114,
|
|
11132
11197
|
/**
|
|
11133
11198
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11134
11199
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11144,7 +11209,7 @@ export declare enum ModCallbackCustom {
|
|
|
11144
11209
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11145
11210
|
* ```
|
|
11146
11211
|
*/
|
|
11147
|
-
PRE_BERSERK_DEATH =
|
|
11212
|
+
PRE_BERSERK_DEATH = 115,
|
|
11148
11213
|
/**
|
|
11149
11214
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11150
11215
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11163,7 +11228,7 @@ export declare enum ModCallbackCustom {
|
|
|
11163
11228
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11164
11229
|
* ```
|
|
11165
11230
|
*/
|
|
11166
|
-
PRE_CUSTOM_REVIVE =
|
|
11231
|
+
PRE_CUSTOM_REVIVE = 116,
|
|
11167
11232
|
/**
|
|
11168
11233
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11169
11234
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11188,7 +11253,7 @@ export declare enum ModCallbackCustom {
|
|
|
11188
11253
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11189
11254
|
* ```
|
|
11190
11255
|
*/
|
|
11191
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11256
|
+
PRE_ENTITY_SPAWN_FILTER = 117,
|
|
11192
11257
|
/**
|
|
11193
11258
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11194
11259
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11207,7 +11272,7 @@ export declare enum ModCallbackCustom {
|
|
|
11207
11272
|
* ): void {}
|
|
11208
11273
|
* ```
|
|
11209
11274
|
*/
|
|
11210
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11275
|
+
PRE_FAMILIAR_COLLISION_FILTER = 118,
|
|
11211
11276
|
/**
|
|
11212
11277
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11213
11278
|
* meets all of the conditions to pick it up.
|
|
@@ -11227,7 +11292,7 @@ export declare enum ModCallbackCustom {
|
|
|
11227
11292
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11228
11293
|
* ```
|
|
11229
11294
|
*/
|
|
11230
|
-
PRE_GET_PEDESTAL =
|
|
11295
|
+
PRE_GET_PEDESTAL = 119,
|
|
11231
11296
|
/**
|
|
11232
11297
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11233
11298
|
* the player begins to hold the item above their head).
|
|
@@ -11247,7 +11312,26 @@ export declare enum ModCallbackCustom {
|
|
|
11247
11312
|
* ): void {}
|
|
11248
11313
|
* ```
|
|
11249
11314
|
*/
|
|
11250
|
-
PRE_ITEM_PICKUP =
|
|
11315
|
+
PRE_ITEM_PICKUP = 120,
|
|
11316
|
+
/**
|
|
11317
|
+
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11318
|
+
* you to specify extra arguments for additional filtration.
|
|
11319
|
+
*
|
|
11320
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11321
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11322
|
+
* matches the `KnifeVariant` provided.
|
|
11323
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11324
|
+
* matches the sub-type provided.
|
|
11325
|
+
*
|
|
11326
|
+
* ```ts
|
|
11327
|
+
* function preKnifeCollisionFilter(
|
|
11328
|
+
* knife: EntityKnife,
|
|
11329
|
+
* collider: Entity,
|
|
11330
|
+
* low: boolean,
|
|
11331
|
+
* ): void {}
|
|
11332
|
+
* ```
|
|
11333
|
+
*/
|
|
11334
|
+
PRE_KNIFE_COLLISION_FILTER = 121,
|
|
11251
11335
|
/**
|
|
11252
11336
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11253
11337
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11261,7 +11345,7 @@ export declare enum ModCallbackCustom {
|
|
|
11261
11345
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11262
11346
|
* ```
|
|
11263
11347
|
*/
|
|
11264
|
-
PRE_NEW_LEVEL =
|
|
11348
|
+
PRE_NEW_LEVEL = 122,
|
|
11265
11349
|
/**
|
|
11266
11350
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11267
11351
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11282,7 +11366,7 @@ export declare enum ModCallbackCustom {
|
|
|
11282
11366
|
* ): boolean | undefined {}
|
|
11283
11367
|
* ```
|
|
11284
11368
|
*/
|
|
11285
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11369
|
+
PRE_NPC_COLLISION_FILTER = 123,
|
|
11286
11370
|
/**
|
|
11287
11371
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11288
11372
|
* to specify extra arguments for additional filtration.
|
|
@@ -11299,7 +11383,7 @@ export declare enum ModCallbackCustom {
|
|
|
11299
11383
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11300
11384
|
* ```
|
|
11301
11385
|
*/
|
|
11302
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11386
|
+
PRE_NPC_UPDATE_FILTER = 124,
|
|
11303
11387
|
/**
|
|
11304
11388
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11305
11389
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11322,7 +11406,7 @@ export declare enum ModCallbackCustom {
|
|
|
11322
11406
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11323
11407
|
* ```
|
|
11324
11408
|
*/
|
|
11325
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11409
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 125
|
|
11326
11410
|
}
|
|
11327
11411
|
|
|
11328
11412
|
/**
|