isaacscript-common 29.6.2 → 29.7.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 +79 -40
- package/dist/isaacscript-common.lua +152 -40
- package/dist/src/callbackClasses.d.ts +2 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +10 -0
- package/dist/src/callbacks.d.ts +41 -39
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +2 -0
- package/dist/src/classes/callbacks/PostProjectileKill.d.ts +16 -0
- package/dist/src/classes/callbacks/PostProjectileKill.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostProjectileKill.lua +46 -0
- package/dist/src/classes/callbacks/PostTearKill.d.ts +16 -0
- package/dist/src/classes/callbacks/PostTearKill.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostTearKill.lua +46 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +67 -39
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +43 -39
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +12 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +2 -0
- package/src/callbacks.ts +2 -0
- package/src/classes/callbacks/PostProjectileKill.ts +66 -0
- package/src/classes/callbacks/PostTearKill.ts +64 -0
- package/src/enums/ModCallbackCustom.ts +30 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +13 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -555,7 +555,13 @@ declare interface AddCallbackParametersCustom {
|
|
|
555
555
|
];
|
|
556
556
|
[ModCallbackCustom.POST_PROJECTILE_INIT_LATE]: [
|
|
557
557
|
callback: (projectile: EntityProjectile) => void,
|
|
558
|
-
projectileVariant?: ProjectileVariant
|
|
558
|
+
projectileVariant?: ProjectileVariant,
|
|
559
|
+
subType?: int
|
|
560
|
+
];
|
|
561
|
+
[ModCallbackCustom.POST_PROJECTILE_KILL]: [
|
|
562
|
+
callback: (projectile: EntityProjectile) => void,
|
|
563
|
+
projectileVariant?: ProjectileVariant,
|
|
564
|
+
subType?: number
|
|
559
565
|
];
|
|
560
566
|
[ModCallbackCustom.POST_PROJECTILE_UPDATE_FILTER]: [
|
|
561
567
|
callback: (projectile: EntityProjectile) => void,
|
|
@@ -644,6 +650,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
644
650
|
tearVariant?: TearVariant,
|
|
645
651
|
subType?: int
|
|
646
652
|
];
|
|
653
|
+
[ModCallbackCustom.POST_TEAR_KILL]: [
|
|
654
|
+
callback: (tear: EntityTear) => void,
|
|
655
|
+
tearVariant?: TearVariant,
|
|
656
|
+
subType?: int
|
|
657
|
+
];
|
|
647
658
|
[ModCallbackCustom.POST_TEAR_RENDER_FILTER]: [
|
|
648
659
|
callback: (tear: EntityTear, renderOffset: Vector) => void,
|
|
649
660
|
tearVariant?: TearVariant,
|
|
@@ -10978,6 +10989,20 @@ export declare enum ModCallbackCustom {
|
|
|
10978
10989
|
* ```
|
|
10979
10990
|
*/
|
|
10980
10991
|
POST_PROJECTILE_INIT_LATE = 99,
|
|
10992
|
+
/**
|
|
10993
|
+
* Fires when the provided projectile is removed after colliding with an entity or grid entity.
|
|
10994
|
+
*
|
|
10995
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10996
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10997
|
+
* matches the `ProjectileVariant` provided.
|
|
10998
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10999
|
+
* matches the sub-type provided.
|
|
11000
|
+
*
|
|
11001
|
+
* ```ts
|
|
11002
|
+
* function postProjectileKill(projectile: EntityProjectile): void {}
|
|
11003
|
+
* ```
|
|
11004
|
+
*/
|
|
11005
|
+
POST_PROJECTILE_KILL = 100,
|
|
10981
11006
|
/**
|
|
10982
11007
|
* The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
|
|
10983
11008
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10992,7 +11017,7 @@ export declare enum ModCallbackCustom {
|
|
|
10992
11017
|
* function postProjectileRenderFilter(projectile: EntityProjectile, renderOffset: Vector): void {}
|
|
10993
11018
|
* ```
|
|
10994
11019
|
*/
|
|
10995
|
-
POST_PROJECTILE_RENDER_FILTER =
|
|
11020
|
+
POST_PROJECTILE_RENDER_FILTER = 101,
|
|
10996
11021
|
/**
|
|
10997
11022
|
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
10998
11023
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11007,7 +11032,7 @@ export declare enum ModCallbackCustom {
|
|
|
11007
11032
|
* function postProjectileUpdateFilter(projectile: EntityProjectile): void {}
|
|
11008
11033
|
* ```
|
|
11009
11034
|
*/
|
|
11010
|
-
POST_PROJECTILE_UPDATE_FILTER =
|
|
11035
|
+
POST_PROJECTILE_UPDATE_FILTER = 102,
|
|
11011
11036
|
/**
|
|
11012
11037
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
11013
11038
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -11023,7 +11048,7 @@ export declare enum ModCallbackCustom {
|
|
|
11023
11048
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
11024
11049
|
* ```
|
|
11025
11050
|
*/
|
|
11026
|
-
POST_PURCHASE =
|
|
11051
|
+
POST_PURCHASE = 103,
|
|
11027
11052
|
/**
|
|
11028
11053
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
11029
11054
|
*
|
|
@@ -11037,7 +11062,7 @@ export declare enum ModCallbackCustom {
|
|
|
11037
11062
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
11038
11063
|
* ```
|
|
11039
11064
|
*/
|
|
11040
|
-
POST_ROCK_RENDER =
|
|
11065
|
+
POST_ROCK_RENDER = 104,
|
|
11041
11066
|
/**
|
|
11042
11067
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
11043
11068
|
*
|
|
@@ -11051,7 +11076,7 @@ export declare enum ModCallbackCustom {
|
|
|
11051
11076
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
11052
11077
|
* ```
|
|
11053
11078
|
*/
|
|
11054
|
-
POST_ROCK_UPDATE =
|
|
11079
|
+
POST_ROCK_UPDATE = 105,
|
|
11055
11080
|
/**
|
|
11056
11081
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
11057
11082
|
* the `Room.IsClear` method).
|
|
@@ -11068,7 +11093,7 @@ export declare enum ModCallbackCustom {
|
|
|
11068
11093
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
11069
11094
|
* ```
|
|
11070
11095
|
*/
|
|
11071
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
11096
|
+
POST_ROOM_CLEAR_CHANGED = 106,
|
|
11072
11097
|
/**
|
|
11073
11098
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
11074
11099
|
* Room.
|
|
@@ -11083,7 +11108,7 @@ export declare enum ModCallbackCustom {
|
|
|
11083
11108
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
11084
11109
|
* ```
|
|
11085
11110
|
*/
|
|
11086
|
-
POST_SACRIFICE =
|
|
11111
|
+
POST_SACRIFICE = 107,
|
|
11087
11112
|
/**
|
|
11088
11113
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
11089
11114
|
*
|
|
@@ -11101,7 +11126,7 @@ export declare enum ModCallbackCustom {
|
|
|
11101
11126
|
* ): void {}
|
|
11102
11127
|
* ```
|
|
11103
11128
|
*/
|
|
11104
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
11129
|
+
POST_SLOT_ANIMATION_CHANGED = 108,
|
|
11105
11130
|
/**
|
|
11106
11131
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
11107
11132
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -11125,7 +11150,7 @@ export declare enum ModCallbackCustom {
|
|
|
11125
11150
|
* ): void {}
|
|
11126
11151
|
* ```
|
|
11127
11152
|
*/
|
|
11128
|
-
POST_SLOT_COLLISION =
|
|
11153
|
+
POST_SLOT_COLLISION = 109,
|
|
11129
11154
|
/**
|
|
11130
11155
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
11131
11156
|
* destroyed or a beggar is removed.
|
|
@@ -11167,7 +11192,7 @@ export declare enum ModCallbackCustom {
|
|
|
11167
11192
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
11168
11193
|
* ```
|
|
11169
11194
|
*/
|
|
11170
|
-
POST_SLOT_DESTROYED =
|
|
11195
|
+
POST_SLOT_DESTROYED = 110,
|
|
11171
11196
|
/**
|
|
11172
11197
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
11173
11198
|
*
|
|
@@ -11186,7 +11211,7 @@ export declare enum ModCallbackCustom {
|
|
|
11186
11211
|
* function postSlotInit(slot: Entity): void {}
|
|
11187
11212
|
* ```
|
|
11188
11213
|
*/
|
|
11189
|
-
POST_SLOT_INIT =
|
|
11214
|
+
POST_SLOT_INIT = 111,
|
|
11190
11215
|
/**
|
|
11191
11216
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
11192
11217
|
*
|
|
@@ -11200,7 +11225,7 @@ export declare enum ModCallbackCustom {
|
|
|
11200
11225
|
* function postSlotRender(slot: Entity): void {}
|
|
11201
11226
|
* ```
|
|
11202
11227
|
*/
|
|
11203
|
-
POST_SLOT_RENDER =
|
|
11228
|
+
POST_SLOT_RENDER = 112,
|
|
11204
11229
|
/**
|
|
11205
11230
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
11206
11231
|
*
|
|
@@ -11214,7 +11239,7 @@ export declare enum ModCallbackCustom {
|
|
|
11214
11239
|
* function postSlotUpdate(slot: Entity): void {}
|
|
11215
11240
|
* ```
|
|
11216
11241
|
*/
|
|
11217
|
-
POST_SLOT_UPDATE =
|
|
11242
|
+
POST_SLOT_UPDATE = 113,
|
|
11218
11243
|
/**
|
|
11219
11244
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
11220
11245
|
*
|
|
@@ -11226,7 +11251,7 @@ export declare enum ModCallbackCustom {
|
|
|
11226
11251
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
11227
11252
|
* ```
|
|
11228
11253
|
*/
|
|
11229
|
-
POST_SPIKES_RENDER =
|
|
11254
|
+
POST_SPIKES_RENDER = 114,
|
|
11230
11255
|
/**
|
|
11231
11256
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
11232
11257
|
*
|
|
@@ -11238,7 +11263,7 @@ export declare enum ModCallbackCustom {
|
|
|
11238
11263
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
11239
11264
|
* ```
|
|
11240
11265
|
*/
|
|
11241
|
-
POST_SPIKES_UPDATE =
|
|
11266
|
+
POST_SPIKES_UPDATE = 115,
|
|
11242
11267
|
/**
|
|
11243
11268
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11244
11269
|
* to specify extra arguments for additional filtration.
|
|
@@ -11253,7 +11278,7 @@ export declare enum ModCallbackCustom {
|
|
|
11253
11278
|
* function postTearInitFilter(tear: EntityTear): void {}
|
|
11254
11279
|
* ```
|
|
11255
11280
|
*/
|
|
11256
|
-
POST_TEAR_INIT_FILTER =
|
|
11281
|
+
POST_TEAR_INIT_FILTER = 116,
|
|
11257
11282
|
/**
|
|
11258
11283
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11259
11284
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -11271,7 +11296,7 @@ export declare enum ModCallbackCustom {
|
|
|
11271
11296
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
11272
11297
|
* ```
|
|
11273
11298
|
*/
|
|
11274
|
-
POST_TEAR_INIT_LATE =
|
|
11299
|
+
POST_TEAR_INIT_LATE = 117,
|
|
11275
11300
|
/**
|
|
11276
11301
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11277
11302
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11288,7 +11313,21 @@ export declare enum ModCallbackCustom {
|
|
|
11288
11313
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11289
11314
|
* ```
|
|
11290
11315
|
*/
|
|
11291
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11316
|
+
POST_TEAR_INIT_VERY_LATE = 118,
|
|
11317
|
+
/**
|
|
11318
|
+
* Fires when the provided tear is removed after colliding with an entity or grid entity.
|
|
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 `TearVariant` 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 postTearKill(tear: EntityTear): void {}
|
|
11328
|
+
* ```
|
|
11329
|
+
*/
|
|
11330
|
+
POST_TEAR_KILL = 119,
|
|
11292
11331
|
/**
|
|
11293
11332
|
* The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
|
|
11294
11333
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11303,7 +11342,7 @@ export declare enum ModCallbackCustom {
|
|
|
11303
11342
|
* function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
11304
11343
|
* ```
|
|
11305
11344
|
*/
|
|
11306
|
-
POST_TEAR_RENDER_FILTER =
|
|
11345
|
+
POST_TEAR_RENDER_FILTER = 120,
|
|
11307
11346
|
/**
|
|
11308
11347
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11309
11348
|
* to specify extra arguments for additional filtration.
|
|
@@ -11318,7 +11357,7 @@ export declare enum ModCallbackCustom {
|
|
|
11318
11357
|
* function postTearUpdateFilter(tear: EntityTear): void {}
|
|
11319
11358
|
* ```
|
|
11320
11359
|
*/
|
|
11321
|
-
POST_TEAR_UPDATE_FILTER =
|
|
11360
|
+
POST_TEAR_UPDATE_FILTER = 121,
|
|
11322
11361
|
/**
|
|
11323
11362
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11324
11363
|
*
|
|
@@ -11330,7 +11369,7 @@ export declare enum ModCallbackCustom {
|
|
|
11330
11369
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11331
11370
|
* ```
|
|
11332
11371
|
*/
|
|
11333
|
-
POST_TNT_RENDER =
|
|
11372
|
+
POST_TNT_RENDER = 122,
|
|
11334
11373
|
/**
|
|
11335
11374
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11336
11375
|
*
|
|
@@ -11342,7 +11381,7 @@ export declare enum ModCallbackCustom {
|
|
|
11342
11381
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11343
11382
|
* ```
|
|
11344
11383
|
*/
|
|
11345
|
-
POST_TNT_UPDATE =
|
|
11384
|
+
POST_TNT_UPDATE = 123,
|
|
11346
11385
|
/**
|
|
11347
11386
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11348
11387
|
* transformation.
|
|
@@ -11361,7 +11400,7 @@ export declare enum ModCallbackCustom {
|
|
|
11361
11400
|
* ): void {}
|
|
11362
11401
|
* ```
|
|
11363
11402
|
*/
|
|
11364
|
-
POST_TRANSFORMATION =
|
|
11403
|
+
POST_TRANSFORMATION = 124,
|
|
11365
11404
|
/**
|
|
11366
11405
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11367
11406
|
*
|
|
@@ -11376,7 +11415,7 @@ export declare enum ModCallbackCustom {
|
|
|
11376
11415
|
* ): void {}
|
|
11377
11416
|
* ```
|
|
11378
11417
|
*/
|
|
11379
|
-
POST_TRINKET_BREAK =
|
|
11418
|
+
POST_TRINKET_BREAK = 125,
|
|
11380
11419
|
/**
|
|
11381
11420
|
* The same thing as the vanilla `POST_USE_PILL` callback, except this callback passes the
|
|
11382
11421
|
* `PillColor` of the used pill as the final argument. It allows you to filter by the `PillColor`.
|
|
@@ -11399,7 +11438,7 @@ export declare enum ModCallbackCustom {
|
|
|
11399
11438
|
* ): void {}
|
|
11400
11439
|
* ```
|
|
11401
11440
|
*/
|
|
11402
|
-
POST_USE_PILL_FILTER =
|
|
11441
|
+
POST_USE_PILL_FILTER = 126,
|
|
11403
11442
|
/**
|
|
11404
11443
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11405
11444
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11415,7 +11454,7 @@ export declare enum ModCallbackCustom {
|
|
|
11415
11454
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11416
11455
|
* ```
|
|
11417
11456
|
*/
|
|
11418
|
-
PRE_BERSERK_DEATH =
|
|
11457
|
+
PRE_BERSERK_DEATH = 127,
|
|
11419
11458
|
/**
|
|
11420
11459
|
* The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
|
|
11421
11460
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11434,7 +11473,7 @@ export declare enum ModCallbackCustom {
|
|
|
11434
11473
|
* ): void {}
|
|
11435
11474
|
* ```
|
|
11436
11475
|
*/
|
|
11437
|
-
PRE_BOMB_COLLISION_FILTER =
|
|
11476
|
+
PRE_BOMB_COLLISION_FILTER = 128,
|
|
11438
11477
|
/**
|
|
11439
11478
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11440
11479
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11453,7 +11492,7 @@ export declare enum ModCallbackCustom {
|
|
|
11453
11492
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11454
11493
|
* ```
|
|
11455
11494
|
*/
|
|
11456
|
-
PRE_CUSTOM_REVIVE =
|
|
11495
|
+
PRE_CUSTOM_REVIVE = 129,
|
|
11457
11496
|
/**
|
|
11458
11497
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11459
11498
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11478,7 +11517,7 @@ export declare enum ModCallbackCustom {
|
|
|
11478
11517
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11479
11518
|
* ```
|
|
11480
11519
|
*/
|
|
11481
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11520
|
+
PRE_ENTITY_SPAWN_FILTER = 130,
|
|
11482
11521
|
/**
|
|
11483
11522
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11484
11523
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11497,7 +11536,7 @@ export declare enum ModCallbackCustom {
|
|
|
11497
11536
|
* ): void {}
|
|
11498
11537
|
* ```
|
|
11499
11538
|
*/
|
|
11500
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11539
|
+
PRE_FAMILIAR_COLLISION_FILTER = 131,
|
|
11501
11540
|
/**
|
|
11502
11541
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11503
11542
|
* meets all of the conditions to pick it up.
|
|
@@ -11517,7 +11556,7 @@ export declare enum ModCallbackCustom {
|
|
|
11517
11556
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11518
11557
|
* ```
|
|
11519
11558
|
*/
|
|
11520
|
-
PRE_GET_PEDESTAL =
|
|
11559
|
+
PRE_GET_PEDESTAL = 132,
|
|
11521
11560
|
/**
|
|
11522
11561
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11523
11562
|
* the player begins to hold the item above their head).
|
|
@@ -11537,7 +11576,7 @@ export declare enum ModCallbackCustom {
|
|
|
11537
11576
|
* ): void {}
|
|
11538
11577
|
* ```
|
|
11539
11578
|
*/
|
|
11540
|
-
PRE_ITEM_PICKUP =
|
|
11579
|
+
PRE_ITEM_PICKUP = 133,
|
|
11541
11580
|
/**
|
|
11542
11581
|
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11543
11582
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11556,7 +11595,7 @@ export declare enum ModCallbackCustom {
|
|
|
11556
11595
|
* ): void {}
|
|
11557
11596
|
* ```
|
|
11558
11597
|
*/
|
|
11559
|
-
PRE_KNIFE_COLLISION_FILTER =
|
|
11598
|
+
PRE_KNIFE_COLLISION_FILTER = 134,
|
|
11560
11599
|
/**
|
|
11561
11600
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11562
11601
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11570,7 +11609,7 @@ export declare enum ModCallbackCustom {
|
|
|
11570
11609
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11571
11610
|
* ```
|
|
11572
11611
|
*/
|
|
11573
|
-
PRE_NEW_LEVEL =
|
|
11612
|
+
PRE_NEW_LEVEL = 135,
|
|
11574
11613
|
/**
|
|
11575
11614
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11576
11615
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11591,7 +11630,7 @@ export declare enum ModCallbackCustom {
|
|
|
11591
11630
|
* ): boolean | undefined {}
|
|
11592
11631
|
* ```
|
|
11593
11632
|
*/
|
|
11594
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11633
|
+
PRE_NPC_COLLISION_FILTER = 136,
|
|
11595
11634
|
/**
|
|
11596
11635
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11597
11636
|
* to specify extra arguments for additional filtration.
|
|
@@ -11608,7 +11647,7 @@ export declare enum ModCallbackCustom {
|
|
|
11608
11647
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11609
11648
|
* ```
|
|
11610
11649
|
*/
|
|
11611
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11650
|
+
PRE_NPC_UPDATE_FILTER = 137,
|
|
11612
11651
|
/**
|
|
11613
11652
|
* The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
|
|
11614
11653
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11627,7 +11666,7 @@ export declare enum ModCallbackCustom {
|
|
|
11627
11666
|
* ): void {}
|
|
11628
11667
|
* ```
|
|
11629
11668
|
*/
|
|
11630
|
-
PRE_PROJECTILE_COLLISION_FILTER =
|
|
11669
|
+
PRE_PROJECTILE_COLLISION_FILTER = 138,
|
|
11631
11670
|
/**
|
|
11632
11671
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11633
11672
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11650,7 +11689,7 @@ export declare enum ModCallbackCustom {
|
|
|
11650
11689
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11651
11690
|
* ```
|
|
11652
11691
|
*/
|
|
11653
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11692
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 139,
|
|
11654
11693
|
/**
|
|
11655
11694
|
* The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
|
|
11656
11695
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11669,7 +11708,7 @@ export declare enum ModCallbackCustom {
|
|
|
11669
11708
|
* ): void {}
|
|
11670
11709
|
* ```
|
|
11671
11710
|
*/
|
|
11672
|
-
PRE_TEAR_COLLISION_FILTER =
|
|
11711
|
+
PRE_TEAR_COLLISION_FILTER = 140
|
|
11673
11712
|
}
|
|
11674
11713
|
|
|
11675
11714
|
/**
|