isaacscript-common 27.10.0 → 27.11.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 +244 -98
- package/dist/isaacscript-common.lua +326 -97
- package/dist/src/callbackClasses.d.ts +7 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +35 -0
- package/dist/src/callbacks.d.ts +103 -96
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +7 -0
- package/dist/src/classes/callbacks/PostEffectInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEffectInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEffectInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostEffectRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEffectRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEffectRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostEffectUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEffectUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEffectUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostFamiliarInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostFamiliarInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostFamiliarInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostFamiliarRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostFamiliarRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostFamiliarRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostFamiliarUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostFamiliarUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostFamiliarUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreFamiliarCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreFamiliarCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreFamiliarCollisionFilter.lua +21 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +205 -96
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +110 -96
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +39 -2
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +2 -2
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +7 -0
- package/src/callbacks.ts +8 -0
- package/src/classes/callbacks/PostEffectInitFilter.ts +22 -0
- package/src/classes/callbacks/PostEffectRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostEffectUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PostFamiliarInitFilter.ts +22 -0
- package/src/classes/callbacks/PostFamiliarRenderFilter.ts +25 -0
- package/src/classes/callbacks/PostFamiliarUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreFamiliarCollisionFilter.ts +24 -0
- package/src/enums/ModCallbackCustom.ts +116 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +48 -0
- package/src/shouldFire.ts +3 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -154,16 +154,31 @@ declare interface AddCallbackParametersCustom {
|
|
|
154
154
|
callback: (door: GridEntityDoor) => void,
|
|
155
155
|
doorVariant?: DoorVariant
|
|
156
156
|
];
|
|
157
|
+
[ModCallbackCustom.POST_EFFECT_INIT_FILTER]: [
|
|
158
|
+
callback: (effect: EntityEffect) => void,
|
|
159
|
+
effectVariant?: EffectVariant,
|
|
160
|
+
subType?: int
|
|
161
|
+
];
|
|
157
162
|
[ModCallbackCustom.POST_EFFECT_INIT_LATE]: [
|
|
158
163
|
callback: (effect: EntityEffect) => void,
|
|
159
164
|
effectVariant?: EffectVariant,
|
|
160
165
|
subType?: int
|
|
161
166
|
];
|
|
167
|
+
[ModCallbackCustom.POST_EFFECT_RENDER_FILTER]: [
|
|
168
|
+
callback: (effect: EntityEffect, renderOffset: Vector) => void,
|
|
169
|
+
effectVariant?: EffectVariant,
|
|
170
|
+
subType?: int
|
|
171
|
+
];
|
|
162
172
|
[ModCallbackCustom.POST_EFFECT_STATE_CHANGED]: [
|
|
163
173
|
callback: (effect: EntityEffect, previousState: int, currentState: int) => void,
|
|
164
174
|
effectVariant?: EffectVariant,
|
|
165
175
|
subType?: int
|
|
166
176
|
];
|
|
177
|
+
[ModCallbackCustom.POST_EFFECT_UPDATE_FILTER]: [
|
|
178
|
+
callback: (effect: EntityEffect) => void,
|
|
179
|
+
effectVariant?: EffectVariant,
|
|
180
|
+
subType?: int
|
|
181
|
+
];
|
|
167
182
|
[ModCallbackCustom.POST_ENTITY_KILL_FILTER]: [
|
|
168
183
|
callback: (entity: Entity) => void,
|
|
169
184
|
entityType?: EntityType,
|
|
@@ -171,16 +186,31 @@ declare interface AddCallbackParametersCustom {
|
|
|
171
186
|
subType?: int
|
|
172
187
|
];
|
|
173
188
|
[ModCallbackCustom.POST_ESAU_JR]: [callback: (player: EntityPlayer) => void];
|
|
189
|
+
[ModCallbackCustom.POST_FAMILIAR_INIT_FILTER]: [
|
|
190
|
+
callback: (familiar: EntityFamiliar) => void,
|
|
191
|
+
familiarVariant?: FamiliarVariant,
|
|
192
|
+
subType?: int
|
|
193
|
+
];
|
|
174
194
|
[ModCallbackCustom.POST_FAMILIAR_INIT_LATE]: [
|
|
175
195
|
callback: (familiar: EntityFamiliar) => void,
|
|
176
196
|
familiarVariant?: FamiliarVariant,
|
|
177
197
|
subType?: int
|
|
178
198
|
];
|
|
199
|
+
[ModCallbackCustom.POST_FAMILIAR_RENDER_FILTER]: [
|
|
200
|
+
callback: (familiar: EntityFamiliar, renderOffset: Vector) => void,
|
|
201
|
+
familiarVariant?: FamiliarVariant,
|
|
202
|
+
subType?: int
|
|
203
|
+
];
|
|
179
204
|
[ModCallbackCustom.POST_FAMILIAR_STATE_CHANGED]: [
|
|
180
205
|
callback: (familiar: EntityFamiliar, previousState: int, currentState: int) => void,
|
|
181
206
|
familiarVariant?: FamiliarVariant,
|
|
182
207
|
subType?: int
|
|
183
208
|
];
|
|
209
|
+
[ModCallbackCustom.POST_FAMILIAR_UPDATE_FILTER]: [
|
|
210
|
+
callback: (familiar: EntityFamiliar) => void,
|
|
211
|
+
familiarVariant?: FamiliarVariant,
|
|
212
|
+
subType?: int
|
|
213
|
+
];
|
|
184
214
|
[ModCallbackCustom.POST_FIRST_ESAU_JR]: [
|
|
185
215
|
callback: (player: EntityPlayer) => void
|
|
186
216
|
];
|
|
@@ -309,10 +339,12 @@ declare interface AddCallbackParametersCustom {
|
|
|
309
339
|
stageType?: StageType
|
|
310
340
|
];
|
|
311
341
|
[ModCallbackCustom.POST_NEW_ROOM_EARLY]: [
|
|
312
|
-
callback: (roomType: RoomType) => void
|
|
342
|
+
callback: (roomType: RoomType) => void,
|
|
343
|
+
roomType?: RoomType
|
|
313
344
|
];
|
|
314
345
|
[ModCallbackCustom.POST_NEW_ROOM_REORDERED]: [
|
|
315
|
-
callback: (roomType: RoomType) => void
|
|
346
|
+
callback: (roomType: RoomType) => void,
|
|
347
|
+
roomType?: RoomType
|
|
316
348
|
];
|
|
317
349
|
[ModCallbackCustom.POST_NPC_DEATH_FILTER]: [
|
|
318
350
|
callback: (npc: EntityNPC) => void,
|
|
@@ -579,6 +611,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
579
611
|
variant?: int,
|
|
580
612
|
subtype?: int
|
|
581
613
|
];
|
|
614
|
+
[ModCallbackCustom.PRE_FAMILIAR_COLLISION_FILTER]: [
|
|
615
|
+
callback: (familiar: EntityFamiliar, collider: Entity, low: boolean) => boolean | undefined,
|
|
616
|
+
familiarVariant?: FamiliarVariant,
|
|
617
|
+
subtype?: int
|
|
618
|
+
];
|
|
582
619
|
[ModCallbackCustom.PRE_GET_PEDESTAL]: [
|
|
583
620
|
callback: (player: EntityPlayer, collectible: EntityPickupCollectible) => boolean | undefined,
|
|
584
621
|
playerVariant?: PlayerVariant,
|
|
@@ -9376,6 +9413,21 @@ export declare enum ModCallbackCustom {
|
|
|
9376
9413
|
* ```
|
|
9377
9414
|
*/
|
|
9378
9415
|
POST_DOOR_UPDATE = 15,
|
|
9416
|
+
/**
|
|
9417
|
+
* The exact same thing as the vanilla `POST_EFFECT_INIT` callback, except this callback allows
|
|
9418
|
+
* you to specify extra arguments for additional filtration.
|
|
9419
|
+
*
|
|
9420
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9421
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9422
|
+
* matches the `EffectVariant` provided.
|
|
9423
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9424
|
+
* matches the sub-type provided.
|
|
9425
|
+
*
|
|
9426
|
+
* ```ts
|
|
9427
|
+
* function postEffectInitFilter(effect: EntityEffect): void {}
|
|
9428
|
+
* ```
|
|
9429
|
+
*/
|
|
9430
|
+
POST_EFFECT_INIT_FILTER = 16,
|
|
9379
9431
|
/**
|
|
9380
9432
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
9381
9433
|
*
|
|
@@ -9392,7 +9444,22 @@ export declare enum ModCallbackCustom {
|
|
|
9392
9444
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
9393
9445
|
* ```
|
|
9394
9446
|
*/
|
|
9395
|
-
POST_EFFECT_INIT_LATE =
|
|
9447
|
+
POST_EFFECT_INIT_LATE = 17,
|
|
9448
|
+
/**
|
|
9449
|
+
* The exact same thing as the vanilla `POST_EFFECT_RENDER` callback, except this callback allows
|
|
9450
|
+
* you to specify extra arguments for additional filtration.
|
|
9451
|
+
*
|
|
9452
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9453
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9454
|
+
* matches the `EffectVariant` provided.
|
|
9455
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9456
|
+
* matches the sub-type provided.
|
|
9457
|
+
*
|
|
9458
|
+
* ```ts
|
|
9459
|
+
* function postEffectRenderFilter(effect: EntityEffect, renderOffset: Vector): void {}
|
|
9460
|
+
* ```
|
|
9461
|
+
*/
|
|
9462
|
+
POST_EFFECT_RENDER_FILTER = 18,
|
|
9396
9463
|
/**
|
|
9397
9464
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
9398
9465
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -9411,7 +9478,22 @@ export declare enum ModCallbackCustom {
|
|
|
9411
9478
|
* ): void {}
|
|
9412
9479
|
* ```
|
|
9413
9480
|
*/
|
|
9414
|
-
POST_EFFECT_STATE_CHANGED =
|
|
9481
|
+
POST_EFFECT_STATE_CHANGED = 19,
|
|
9482
|
+
/**
|
|
9483
|
+
* The exact same thing as the vanilla `POST_EFFECT_UPDATE` callback, except this callback allows
|
|
9484
|
+
* you to specify extra arguments for additional filtration.
|
|
9485
|
+
*
|
|
9486
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9487
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9488
|
+
* matches the `EffectVariant` provided.
|
|
9489
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9490
|
+
* matches the sub-type provided.
|
|
9491
|
+
*
|
|
9492
|
+
* ```ts
|
|
9493
|
+
* function postEffectUpdateFilter(effect: EntityEffect): void {}
|
|
9494
|
+
* ```
|
|
9495
|
+
*/
|
|
9496
|
+
POST_EFFECT_UPDATE_FILTER = 20,
|
|
9415
9497
|
/**
|
|
9416
9498
|
* The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
|
|
9417
9499
|
* you to specify extra arguments for additional filtration.
|
|
@@ -9428,7 +9510,7 @@ export declare enum ModCallbackCustom {
|
|
|
9428
9510
|
* function postEntityKillFilter(entity: Entity): void {}
|
|
9429
9511
|
* ```
|
|
9430
9512
|
*/
|
|
9431
|
-
POST_ENTITY_KILL_FILTER =
|
|
9513
|
+
POST_ENTITY_KILL_FILTER = 21,
|
|
9432
9514
|
/**
|
|
9433
9515
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
9434
9516
|
* updated to the new character until a game frame has passed.)
|
|
@@ -9437,7 +9519,22 @@ export declare enum ModCallbackCustom {
|
|
|
9437
9519
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
9438
9520
|
* ```
|
|
9439
9521
|
*/
|
|
9440
|
-
POST_ESAU_JR =
|
|
9522
|
+
POST_ESAU_JR = 22,
|
|
9523
|
+
/**
|
|
9524
|
+
* The exact same thing as the vanilla `POST_FAMILIAR_INIT` callback, except this callback allows
|
|
9525
|
+
* you to specify extra arguments for additional filtration.
|
|
9526
|
+
*
|
|
9527
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9528
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9529
|
+
* matches the `FamiliarVariant` provided.
|
|
9530
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9531
|
+
* matches the sub-type provided.
|
|
9532
|
+
*
|
|
9533
|
+
* ```ts
|
|
9534
|
+
* function postFamiliarInitFilter(familiar: EntityFamiliar): void {}
|
|
9535
|
+
* ```
|
|
9536
|
+
*/
|
|
9537
|
+
POST_FAMILIAR_INIT_FILTER = 23,
|
|
9441
9538
|
/**
|
|
9442
9539
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
9443
9540
|
*
|
|
@@ -9454,7 +9551,22 @@ export declare enum ModCallbackCustom {
|
|
|
9454
9551
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
9455
9552
|
* ```
|
|
9456
9553
|
*/
|
|
9457
|
-
POST_FAMILIAR_INIT_LATE =
|
|
9554
|
+
POST_FAMILIAR_INIT_LATE = 24,
|
|
9555
|
+
/**
|
|
9556
|
+
* The exact same thing as the vanilla `POST_FAMILIAR_RENDER` callback, except this callback
|
|
9557
|
+
* allows you to specify extra arguments for additional filtration.
|
|
9558
|
+
*
|
|
9559
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9560
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9561
|
+
* matches the `FamiliarVariant` provided.
|
|
9562
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9563
|
+
* matches the sub-type provided.
|
|
9564
|
+
*
|
|
9565
|
+
* ```ts
|
|
9566
|
+
* function postFamiliarRenderFilter(familiar: EntityFamiliar, renderOffset: Vector): void {}
|
|
9567
|
+
* ```
|
|
9568
|
+
*/
|
|
9569
|
+
POST_FAMILIAR_RENDER_FILTER = 25,
|
|
9458
9570
|
/**
|
|
9459
9571
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
9460
9572
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -9474,7 +9586,22 @@ export declare enum ModCallbackCustom {
|
|
|
9474
9586
|
* ): void {}
|
|
9475
9587
|
* ```
|
|
9476
9588
|
*/
|
|
9477
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
9589
|
+
POST_FAMILIAR_STATE_CHANGED = 26,
|
|
9590
|
+
/**
|
|
9591
|
+
* The exact same thing as the vanilla `POST_FAMILIAR_UPDATE` callback, except this callback
|
|
9592
|
+
* allows you to specify extra arguments for additional filtration.
|
|
9593
|
+
*
|
|
9594
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9595
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9596
|
+
* matches the `FamiliarVariant` provided.
|
|
9597
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9598
|
+
* matches the sub-type provided.
|
|
9599
|
+
*
|
|
9600
|
+
* ```ts
|
|
9601
|
+
* function postFamiliarUpdateFilter(familiar: EntityFamiliar): void {}
|
|
9602
|
+
* ```
|
|
9603
|
+
*/
|
|
9604
|
+
POST_FAMILIAR_UPDATE_FILTER = 27,
|
|
9478
9605
|
/**
|
|
9479
9606
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
9480
9607
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -9486,7 +9613,7 @@ export declare enum ModCallbackCustom {
|
|
|
9486
9613
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
9487
9614
|
* ```
|
|
9488
9615
|
*/
|
|
9489
|
-
POST_FIRST_ESAU_JR =
|
|
9616
|
+
POST_FIRST_ESAU_JR = 28,
|
|
9490
9617
|
/**
|
|
9491
9618
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
9492
9619
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -9499,7 +9626,7 @@ export declare enum ModCallbackCustom {
|
|
|
9499
9626
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9500
9627
|
* ```
|
|
9501
9628
|
*/
|
|
9502
|
-
POST_FIRST_FLIP =
|
|
9629
|
+
POST_FIRST_FLIP = 29,
|
|
9503
9630
|
/**
|
|
9504
9631
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
9505
9632
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -9512,7 +9639,7 @@ export declare enum ModCallbackCustom {
|
|
|
9512
9639
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9513
9640
|
* ```
|
|
9514
9641
|
*/
|
|
9515
|
-
POST_FLIP =
|
|
9642
|
+
POST_FLIP = 30,
|
|
9516
9643
|
/**
|
|
9517
9644
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
9518
9645
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9531,7 +9658,7 @@ export declare enum ModCallbackCustom {
|
|
|
9531
9658
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
9532
9659
|
* ```
|
|
9533
9660
|
*/
|
|
9534
|
-
POST_GAME_STARTED_REORDERED =
|
|
9661
|
+
POST_GAME_STARTED_REORDERED = 31,
|
|
9535
9662
|
/**
|
|
9536
9663
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
9537
9664
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -9550,7 +9677,7 @@ export declare enum ModCallbackCustom {
|
|
|
9550
9677
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
9551
9678
|
* ```
|
|
9552
9679
|
*/
|
|
9553
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
9680
|
+
POST_GAME_STARTED_REORDERED_LAST = 32,
|
|
9554
9681
|
/**
|
|
9555
9682
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
9556
9683
|
*
|
|
@@ -9558,7 +9685,7 @@ export declare enum ModCallbackCustom {
|
|
|
9558
9685
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
9559
9686
|
* ```
|
|
9560
9687
|
*/
|
|
9561
|
-
POST_GREED_MODE_WAVE =
|
|
9688
|
+
POST_GREED_MODE_WAVE = 33,
|
|
9562
9689
|
/**
|
|
9563
9690
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
9564
9691
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -9577,7 +9704,7 @@ export declare enum ModCallbackCustom {
|
|
|
9577
9704
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
9578
9705
|
* ```
|
|
9579
9706
|
*/
|
|
9580
|
-
POST_GRID_ENTITY_BROKEN =
|
|
9707
|
+
POST_GRID_ENTITY_BROKEN = 34,
|
|
9581
9708
|
/**
|
|
9582
9709
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
9583
9710
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -9605,7 +9732,7 @@ export declare enum ModCallbackCustom {
|
|
|
9605
9732
|
* ): void {}
|
|
9606
9733
|
* ```
|
|
9607
9734
|
*/
|
|
9608
|
-
POST_GRID_ENTITY_COLLISION =
|
|
9735
|
+
POST_GRID_ENTITY_COLLISION = 35,
|
|
9609
9736
|
/**
|
|
9610
9737
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
9611
9738
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9622,7 +9749,7 @@ export declare enum ModCallbackCustom {
|
|
|
9622
9749
|
* ): void {}
|
|
9623
9750
|
* ```
|
|
9624
9751
|
*/
|
|
9625
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
9752
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 36,
|
|
9626
9753
|
/**
|
|
9627
9754
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
9628
9755
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9646,7 +9773,7 @@ export declare enum ModCallbackCustom {
|
|
|
9646
9773
|
* ): void {}
|
|
9647
9774
|
* ```
|
|
9648
9775
|
*/
|
|
9649
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
9776
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 37,
|
|
9650
9777
|
/**
|
|
9651
9778
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
9652
9779
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -9663,7 +9790,7 @@ export declare enum ModCallbackCustom {
|
|
|
9663
9790
|
* ): void {}
|
|
9664
9791
|
* ```
|
|
9665
9792
|
*/
|
|
9666
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
9793
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 38,
|
|
9667
9794
|
/**
|
|
9668
9795
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
9669
9796
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9680,7 +9807,7 @@ export declare enum ModCallbackCustom {
|
|
|
9680
9807
|
* ): void {}
|
|
9681
9808
|
* ```
|
|
9682
9809
|
*/
|
|
9683
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
9810
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 39,
|
|
9684
9811
|
/**
|
|
9685
9812
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
9686
9813
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9697,7 +9824,7 @@ export declare enum ModCallbackCustom {
|
|
|
9697
9824
|
* ): void {}
|
|
9698
9825
|
* ```
|
|
9699
9826
|
*/
|
|
9700
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
9827
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 40,
|
|
9701
9828
|
/**
|
|
9702
9829
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
9703
9830
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -9716,7 +9843,7 @@ export declare enum ModCallbackCustom {
|
|
|
9716
9843
|
* ): void {}
|
|
9717
9844
|
* ```
|
|
9718
9845
|
*/
|
|
9719
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
9846
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 41,
|
|
9720
9847
|
/**
|
|
9721
9848
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
9722
9849
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9733,7 +9860,7 @@ export declare enum ModCallbackCustom {
|
|
|
9733
9860
|
* ): void {}
|
|
9734
9861
|
* ```
|
|
9735
9862
|
*/
|
|
9736
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
9863
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 42,
|
|
9737
9864
|
/**
|
|
9738
9865
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
9739
9866
|
*
|
|
@@ -9755,7 +9882,7 @@ export declare enum ModCallbackCustom {
|
|
|
9755
9882
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
9756
9883
|
* ```
|
|
9757
9884
|
*/
|
|
9758
|
-
POST_GRID_ENTITY_INIT =
|
|
9885
|
+
POST_GRID_ENTITY_INIT = 43,
|
|
9759
9886
|
/**
|
|
9760
9887
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
9761
9888
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -9780,7 +9907,7 @@ export declare enum ModCallbackCustom {
|
|
|
9780
9907
|
* ): void {}
|
|
9781
9908
|
* ```
|
|
9782
9909
|
*/
|
|
9783
|
-
POST_GRID_ENTITY_REMOVE =
|
|
9910
|
+
POST_GRID_ENTITY_REMOVE = 44,
|
|
9784
9911
|
/**
|
|
9785
9912
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
9786
9913
|
*
|
|
@@ -9797,7 +9924,7 @@ export declare enum ModCallbackCustom {
|
|
|
9797
9924
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
9798
9925
|
* ```
|
|
9799
9926
|
*/
|
|
9800
|
-
POST_GRID_ENTITY_RENDER =
|
|
9927
|
+
POST_GRID_ENTITY_RENDER = 45,
|
|
9801
9928
|
/**
|
|
9802
9929
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
9803
9930
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -9819,7 +9946,7 @@ export declare enum ModCallbackCustom {
|
|
|
9819
9946
|
* ): void {}
|
|
9820
9947
|
* ```
|
|
9821
9948
|
*/
|
|
9822
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
9949
|
+
POST_GRID_ENTITY_STATE_CHANGED = 46,
|
|
9823
9950
|
/**
|
|
9824
9951
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
9825
9952
|
*
|
|
@@ -9836,7 +9963,7 @@ export declare enum ModCallbackCustom {
|
|
|
9836
9963
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
9837
9964
|
* ```
|
|
9838
9965
|
*/
|
|
9839
|
-
POST_GRID_ENTITY_UPDATE =
|
|
9966
|
+
POST_GRID_ENTITY_UPDATE = 47,
|
|
9840
9967
|
/**
|
|
9841
9968
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
9842
9969
|
* temporary collectible effect.
|
|
@@ -9859,7 +9986,7 @@ export declare enum ModCallbackCustom {
|
|
|
9859
9986
|
* ): void {}
|
|
9860
9987
|
* ```
|
|
9861
9988
|
*/
|
|
9862
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
9989
|
+
POST_HOLY_MANTLE_REMOVED = 48,
|
|
9863
9990
|
/**
|
|
9864
9991
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
9865
9992
|
* active collectible item, implying that the item was just used.
|
|
@@ -9882,7 +10009,7 @@ export declare enum ModCallbackCustom {
|
|
|
9882
10009
|
* ): void {}
|
|
9883
10010
|
* ```
|
|
9884
10011
|
*/
|
|
9885
|
-
POST_ITEM_DISCHARGE =
|
|
10012
|
+
POST_ITEM_DISCHARGE = 49,
|
|
9886
10013
|
/**
|
|
9887
10014
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
9888
10015
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -9903,7 +10030,7 @@ export declare enum ModCallbackCustom {
|
|
|
9903
10030
|
* ): void {}
|
|
9904
10031
|
* ```
|
|
9905
10032
|
*/
|
|
9906
|
-
POST_ITEM_PICKUP =
|
|
10033
|
+
POST_ITEM_PICKUP = 50,
|
|
9907
10034
|
/**
|
|
9908
10035
|
* Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
|
|
9909
10036
|
* released. (In other words, the callback only fires when the "pressed" status is different than
|
|
@@ -9919,7 +10046,7 @@ export declare enum ModCallbackCustom {
|
|
|
9919
10046
|
* function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
|
|
9920
10047
|
* ```
|
|
9921
10048
|
*/
|
|
9922
|
-
POST_KEYBOARD_CHANGED =
|
|
10049
|
+
POST_KEYBOARD_CHANGED = 51,
|
|
9923
10050
|
/**
|
|
9924
10051
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
9925
10052
|
*
|
|
@@ -9936,7 +10063,7 @@ export declare enum ModCallbackCustom {
|
|
|
9936
10063
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
9937
10064
|
* ```
|
|
9938
10065
|
*/
|
|
9939
|
-
POST_KNIFE_INIT_LATE =
|
|
10066
|
+
POST_KNIFE_INIT_LATE = 52,
|
|
9940
10067
|
/**
|
|
9941
10068
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
9942
10069
|
*
|
|
@@ -9953,7 +10080,7 @@ export declare enum ModCallbackCustom {
|
|
|
9953
10080
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
9954
10081
|
* ```
|
|
9955
10082
|
*/
|
|
9956
|
-
POST_LASER_INIT_LATE =
|
|
10083
|
+
POST_LASER_INIT_LATE = 53,
|
|
9957
10084
|
/**
|
|
9958
10085
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9959
10086
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9979,7 +10106,7 @@ export declare enum ModCallbackCustom {
|
|
|
9979
10106
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
9980
10107
|
* ```
|
|
9981
10108
|
*/
|
|
9982
|
-
POST_NEW_LEVEL_REORDERED =
|
|
10109
|
+
POST_NEW_LEVEL_REORDERED = 54,
|
|
9983
10110
|
/**
|
|
9984
10111
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
9985
10112
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -9996,7 +10123,7 @@ export declare enum ModCallbackCustom {
|
|
|
9996
10123
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
9997
10124
|
* ```
|
|
9998
10125
|
*/
|
|
9999
|
-
POST_NEW_ROOM_EARLY =
|
|
10126
|
+
POST_NEW_ROOM_EARLY = 55,
|
|
10000
10127
|
/**
|
|
10001
10128
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10002
10129
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -10019,7 +10146,7 @@ export declare enum ModCallbackCustom {
|
|
|
10019
10146
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
10020
10147
|
* ```
|
|
10021
10148
|
*/
|
|
10022
|
-
POST_NEW_ROOM_REORDERED =
|
|
10149
|
+
POST_NEW_ROOM_REORDERED = 56,
|
|
10023
10150
|
/**
|
|
10024
10151
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
10025
10152
|
* to specify extra arguments for additional filtration.
|
|
@@ -10036,7 +10163,7 @@ export declare enum ModCallbackCustom {
|
|
|
10036
10163
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
10037
10164
|
* ```
|
|
10038
10165
|
*/
|
|
10039
|
-
POST_NPC_DEATH_FILTER =
|
|
10166
|
+
POST_NPC_DEATH_FILTER = 57,
|
|
10040
10167
|
/**
|
|
10041
10168
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
10042
10169
|
* to specify extra arguments for additional filtration.
|
|
@@ -10053,7 +10180,7 @@ export declare enum ModCallbackCustom {
|
|
|
10053
10180
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
10054
10181
|
* ```
|
|
10055
10182
|
*/
|
|
10056
|
-
POST_NPC_INIT_FILTER =
|
|
10183
|
+
POST_NPC_INIT_FILTER = 58,
|
|
10057
10184
|
/**
|
|
10058
10185
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
10059
10186
|
*
|
|
@@ -10072,7 +10199,7 @@ export declare enum ModCallbackCustom {
|
|
|
10072
10199
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
10073
10200
|
* ```
|
|
10074
10201
|
*/
|
|
10075
|
-
POST_NPC_INIT_LATE =
|
|
10202
|
+
POST_NPC_INIT_LATE = 59,
|
|
10076
10203
|
/**
|
|
10077
10204
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
10078
10205
|
* to specify extra arguments for additional filtration.
|
|
@@ -10089,7 +10216,7 @@ export declare enum ModCallbackCustom {
|
|
|
10089
10216
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
10090
10217
|
* ```
|
|
10091
10218
|
*/
|
|
10092
|
-
POST_NPC_RENDER_FILTER =
|
|
10219
|
+
POST_NPC_RENDER_FILTER = 60,
|
|
10093
10220
|
/**
|
|
10094
10221
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10095
10222
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10110,7 +10237,7 @@ export declare enum ModCallbackCustom {
|
|
|
10110
10237
|
* ): void {}
|
|
10111
10238
|
* ```
|
|
10112
10239
|
*/
|
|
10113
|
-
POST_NPC_STATE_CHANGED =
|
|
10240
|
+
POST_NPC_STATE_CHANGED = 61,
|
|
10114
10241
|
/**
|
|
10115
10242
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10116
10243
|
* to specify extra arguments for additional filtration.
|
|
@@ -10127,7 +10254,7 @@ export declare enum ModCallbackCustom {
|
|
|
10127
10254
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10128
10255
|
* ```
|
|
10129
10256
|
*/
|
|
10130
|
-
POST_NPC_UPDATE_FILTER =
|
|
10257
|
+
POST_NPC_UPDATE_FILTER = 62,
|
|
10131
10258
|
/**
|
|
10132
10259
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10133
10260
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10152,7 +10279,7 @@ export declare enum ModCallbackCustom {
|
|
|
10152
10279
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10153
10280
|
* ```
|
|
10154
10281
|
*/
|
|
10155
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10282
|
+
POST_PEFFECT_UPDATE_REORDERED = 63,
|
|
10156
10283
|
/**
|
|
10157
10284
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10158
10285
|
* than what it was on the previous frame.
|
|
@@ -10173,7 +10300,7 @@ export declare enum ModCallbackCustom {
|
|
|
10173
10300
|
* ): void {}
|
|
10174
10301
|
* ```
|
|
10175
10302
|
*/
|
|
10176
|
-
POST_PICKUP_CHANGED =
|
|
10303
|
+
POST_PICKUP_CHANGED = 64,
|
|
10177
10304
|
/**
|
|
10178
10305
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10179
10306
|
*
|
|
@@ -10192,7 +10319,7 @@ export declare enum ModCallbackCustom {
|
|
|
10192
10319
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10193
10320
|
* ```
|
|
10194
10321
|
*/
|
|
10195
|
-
POST_PICKUP_COLLECT =
|
|
10322
|
+
POST_PICKUP_COLLECT = 65,
|
|
10196
10323
|
/**
|
|
10197
10324
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10198
10325
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10207,7 +10334,7 @@ export declare enum ModCallbackCustom {
|
|
|
10207
10334
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10208
10335
|
* ```
|
|
10209
10336
|
*/
|
|
10210
|
-
POST_PICKUP_INIT_FILTER =
|
|
10337
|
+
POST_PICKUP_INIT_FILTER = 66,
|
|
10211
10338
|
/**
|
|
10212
10339
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10213
10340
|
* respective pickup on the run.
|
|
@@ -10225,7 +10352,7 @@ export declare enum ModCallbackCustom {
|
|
|
10225
10352
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10226
10353
|
* ```
|
|
10227
10354
|
*/
|
|
10228
|
-
POST_PICKUP_INIT_FIRST =
|
|
10355
|
+
POST_PICKUP_INIT_FIRST = 67,
|
|
10229
10356
|
/**
|
|
10230
10357
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10231
10358
|
*
|
|
@@ -10242,7 +10369,7 @@ export declare enum ModCallbackCustom {
|
|
|
10242
10369
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10243
10370
|
* ```
|
|
10244
10371
|
*/
|
|
10245
|
-
POST_PICKUP_INIT_LATE =
|
|
10372
|
+
POST_PICKUP_INIT_LATE = 68,
|
|
10246
10373
|
/**
|
|
10247
10374
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10248
10375
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10257,7 +10384,7 @@ export declare enum ModCallbackCustom {
|
|
|
10257
10384
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10258
10385
|
* ```
|
|
10259
10386
|
*/
|
|
10260
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10387
|
+
POST_PICKUP_RENDER_FILTER = 69,
|
|
10261
10388
|
/**
|
|
10262
10389
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10263
10390
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10276,7 +10403,7 @@ export declare enum ModCallbackCustom {
|
|
|
10276
10403
|
* ): [PickupVariant, int] | undefined {}
|
|
10277
10404
|
* ```
|
|
10278
10405
|
*/
|
|
10279
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10406
|
+
POST_PICKUP_SELECTION_FILTER = 70,
|
|
10280
10407
|
/**
|
|
10281
10408
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10282
10409
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10295,7 +10422,7 @@ export declare enum ModCallbackCustom {
|
|
|
10295
10422
|
* ): void {}
|
|
10296
10423
|
* ```
|
|
10297
10424
|
*/
|
|
10298
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10425
|
+
POST_PICKUP_STATE_CHANGED = 71,
|
|
10299
10426
|
/**
|
|
10300
10427
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10301
10428
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10310,7 +10437,7 @@ export declare enum ModCallbackCustom {
|
|
|
10310
10437
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10311
10438
|
* ```
|
|
10312
10439
|
*/
|
|
10313
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10440
|
+
POST_PICKUP_UPDATE_FILTER = 72,
|
|
10314
10441
|
/**
|
|
10315
10442
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10316
10443
|
*
|
|
@@ -10322,7 +10449,7 @@ export declare enum ModCallbackCustom {
|
|
|
10322
10449
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10323
10450
|
* ```
|
|
10324
10451
|
*/
|
|
10325
|
-
POST_PIT_RENDER =
|
|
10452
|
+
POST_PIT_RENDER = 73,
|
|
10326
10453
|
/**
|
|
10327
10454
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10328
10455
|
*
|
|
@@ -10334,7 +10461,7 @@ export declare enum ModCallbackCustom {
|
|
|
10334
10461
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10335
10462
|
* ```
|
|
10336
10463
|
*/
|
|
10337
|
-
POST_PIT_UPDATE =
|
|
10464
|
+
POST_PIT_UPDATE = 74,
|
|
10338
10465
|
/**
|
|
10339
10466
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10340
10467
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10356,7 +10483,7 @@ export declare enum ModCallbackCustom {
|
|
|
10356
10483
|
* ): void {}
|
|
10357
10484
|
* ```
|
|
10358
10485
|
*/
|
|
10359
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10486
|
+
POST_PLAYER_CHANGE_HEALTH = 75,
|
|
10360
10487
|
/**
|
|
10361
10488
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10362
10489
|
* from what they were on the previous frame.
|
|
@@ -10386,7 +10513,7 @@ export declare enum ModCallbackCustom {
|
|
|
10386
10513
|
* ) => void {}
|
|
10387
10514
|
* ```
|
|
10388
10515
|
*/
|
|
10389
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10516
|
+
POST_PLAYER_CHANGE_STAT = 76,
|
|
10390
10517
|
/**
|
|
10391
10518
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10392
10519
|
* type
|
|
@@ -10409,7 +10536,7 @@ export declare enum ModCallbackCustom {
|
|
|
10409
10536
|
* ): void {}
|
|
10410
10537
|
* ```
|
|
10411
10538
|
*/
|
|
10412
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10539
|
+
POST_PLAYER_CHANGE_TYPE = 77,
|
|
10413
10540
|
/**
|
|
10414
10541
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10415
10542
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10426,7 +10553,7 @@ export declare enum ModCallbackCustom {
|
|
|
10426
10553
|
* ): void {}
|
|
10427
10554
|
* ```
|
|
10428
10555
|
*/
|
|
10429
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10556
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 78,
|
|
10430
10557
|
/**
|
|
10431
10558
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10432
10559
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10443,7 +10570,7 @@ export declare enum ModCallbackCustom {
|
|
|
10443
10570
|
* ): void {}
|
|
10444
10571
|
* ```
|
|
10445
10572
|
*/
|
|
10446
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10573
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 79,
|
|
10447
10574
|
/**
|
|
10448
10575
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10449
10576
|
* prevent the fatal damage.
|
|
@@ -10461,7 +10588,7 @@ export declare enum ModCallbackCustom {
|
|
|
10461
10588
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10462
10589
|
* ```
|
|
10463
10590
|
*/
|
|
10464
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10591
|
+
POST_PLAYER_FATAL_DAMAGE = 80,
|
|
10465
10592
|
/**
|
|
10466
10593
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10467
10594
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10483,7 +10610,7 @@ export declare enum ModCallbackCustom {
|
|
|
10483
10610
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10484
10611
|
* ```
|
|
10485
10612
|
*/
|
|
10486
|
-
POST_PLAYER_INIT_FIRST =
|
|
10613
|
+
POST_PLAYER_INIT_FIRST = 81,
|
|
10487
10614
|
/**
|
|
10488
10615
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10489
10616
|
*
|
|
@@ -10503,7 +10630,7 @@ export declare enum ModCallbackCustom {
|
|
|
10503
10630
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10504
10631
|
* ```
|
|
10505
10632
|
*/
|
|
10506
|
-
POST_PLAYER_INIT_LATE =
|
|
10633
|
+
POST_PLAYER_INIT_LATE = 82,
|
|
10507
10634
|
/**
|
|
10508
10635
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10509
10636
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10527,7 +10654,7 @@ export declare enum ModCallbackCustom {
|
|
|
10527
10654
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10528
10655
|
* ```
|
|
10529
10656
|
*/
|
|
10530
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10657
|
+
POST_PLAYER_RENDER_REORDERED = 83,
|
|
10531
10658
|
/**
|
|
10532
10659
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10533
10660
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10552,7 +10679,7 @@ export declare enum ModCallbackCustom {
|
|
|
10552
10679
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10553
10680
|
* ```
|
|
10554
10681
|
*/
|
|
10555
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10682
|
+
POST_PLAYER_UPDATE_REORDERED = 84,
|
|
10556
10683
|
/**
|
|
10557
10684
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10558
10685
|
*
|
|
@@ -10564,7 +10691,7 @@ export declare enum ModCallbackCustom {
|
|
|
10564
10691
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10565
10692
|
* ```
|
|
10566
10693
|
*/
|
|
10567
|
-
POST_POOP_RENDER =
|
|
10694
|
+
POST_POOP_RENDER = 85,
|
|
10568
10695
|
/**
|
|
10569
10696
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10570
10697
|
*
|
|
@@ -10576,7 +10703,7 @@ export declare enum ModCallbackCustom {
|
|
|
10576
10703
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10577
10704
|
* ```
|
|
10578
10705
|
*/
|
|
10579
|
-
POST_POOP_UPDATE =
|
|
10706
|
+
POST_POOP_UPDATE = 86,
|
|
10580
10707
|
/**
|
|
10581
10708
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10582
10709
|
*
|
|
@@ -10588,7 +10715,7 @@ export declare enum ModCallbackCustom {
|
|
|
10588
10715
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10589
10716
|
* ```
|
|
10590
10717
|
*/
|
|
10591
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10718
|
+
POST_PRESSURE_PLATE_RENDER = 87,
|
|
10592
10719
|
/**
|
|
10593
10720
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10594
10721
|
*
|
|
@@ -10600,7 +10727,7 @@ export declare enum ModCallbackCustom {
|
|
|
10600
10727
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10601
10728
|
* ```
|
|
10602
10729
|
*/
|
|
10603
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10730
|
+
POST_PRESSURE_PLATE_UPDATE = 88,
|
|
10604
10731
|
/**
|
|
10605
10732
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10606
10733
|
*
|
|
@@ -10617,7 +10744,7 @@ export declare enum ModCallbackCustom {
|
|
|
10617
10744
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10618
10745
|
* ```
|
|
10619
10746
|
*/
|
|
10620
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10747
|
+
POST_PROJECTILE_INIT_LATE = 89,
|
|
10621
10748
|
/**
|
|
10622
10749
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10623
10750
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10633,7 +10760,7 @@ export declare enum ModCallbackCustom {
|
|
|
10633
10760
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10634
10761
|
* ```
|
|
10635
10762
|
*/
|
|
10636
|
-
POST_PURCHASE =
|
|
10763
|
+
POST_PURCHASE = 90,
|
|
10637
10764
|
/**
|
|
10638
10765
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10639
10766
|
*
|
|
@@ -10647,7 +10774,7 @@ export declare enum ModCallbackCustom {
|
|
|
10647
10774
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10648
10775
|
* ```
|
|
10649
10776
|
*/
|
|
10650
|
-
POST_ROCK_RENDER =
|
|
10777
|
+
POST_ROCK_RENDER = 91,
|
|
10651
10778
|
/**
|
|
10652
10779
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10653
10780
|
*
|
|
@@ -10661,7 +10788,7 @@ export declare enum ModCallbackCustom {
|
|
|
10661
10788
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10662
10789
|
* ```
|
|
10663
10790
|
*/
|
|
10664
|
-
POST_ROCK_UPDATE =
|
|
10791
|
+
POST_ROCK_UPDATE = 92,
|
|
10665
10792
|
/**
|
|
10666
10793
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10667
10794
|
* the `Room.IsClear` method).
|
|
@@ -10678,7 +10805,7 @@ export declare enum ModCallbackCustom {
|
|
|
10678
10805
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10679
10806
|
* ```
|
|
10680
10807
|
*/
|
|
10681
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10808
|
+
POST_ROOM_CLEAR_CHANGED = 93,
|
|
10682
10809
|
/**
|
|
10683
10810
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10684
10811
|
* Room.
|
|
@@ -10693,7 +10820,7 @@ export declare enum ModCallbackCustom {
|
|
|
10693
10820
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10694
10821
|
* ```
|
|
10695
10822
|
*/
|
|
10696
|
-
POST_SACRIFICE =
|
|
10823
|
+
POST_SACRIFICE = 94,
|
|
10697
10824
|
/**
|
|
10698
10825
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10699
10826
|
*
|
|
@@ -10711,7 +10838,7 @@ export declare enum ModCallbackCustom {
|
|
|
10711
10838
|
* ): void {}
|
|
10712
10839
|
* ```
|
|
10713
10840
|
*/
|
|
10714
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10841
|
+
POST_SLOT_ANIMATION_CHANGED = 95,
|
|
10715
10842
|
/**
|
|
10716
10843
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10717
10844
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -10735,7 +10862,7 @@ export declare enum ModCallbackCustom {
|
|
|
10735
10862
|
* ): void {}
|
|
10736
10863
|
* ```
|
|
10737
10864
|
*/
|
|
10738
|
-
POST_SLOT_COLLISION =
|
|
10865
|
+
POST_SLOT_COLLISION = 96,
|
|
10739
10866
|
/**
|
|
10740
10867
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
10741
10868
|
* destroyed or a beggar is removed.
|
|
@@ -10777,7 +10904,7 @@ export declare enum ModCallbackCustom {
|
|
|
10777
10904
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10778
10905
|
* ```
|
|
10779
10906
|
*/
|
|
10780
|
-
POST_SLOT_DESTROYED =
|
|
10907
|
+
POST_SLOT_DESTROYED = 97,
|
|
10781
10908
|
/**
|
|
10782
10909
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10783
10910
|
*
|
|
@@ -10796,7 +10923,7 @@ export declare enum ModCallbackCustom {
|
|
|
10796
10923
|
* function postSlotInit(slot: Entity): void {}
|
|
10797
10924
|
* ```
|
|
10798
10925
|
*/
|
|
10799
|
-
POST_SLOT_INIT =
|
|
10926
|
+
POST_SLOT_INIT = 98,
|
|
10800
10927
|
/**
|
|
10801
10928
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10802
10929
|
*
|
|
@@ -10810,7 +10937,7 @@ export declare enum ModCallbackCustom {
|
|
|
10810
10937
|
* function postSlotRender(slot: Entity): void {}
|
|
10811
10938
|
* ```
|
|
10812
10939
|
*/
|
|
10813
|
-
POST_SLOT_RENDER =
|
|
10940
|
+
POST_SLOT_RENDER = 99,
|
|
10814
10941
|
/**
|
|
10815
10942
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
10816
10943
|
*
|
|
@@ -10824,7 +10951,7 @@ export declare enum ModCallbackCustom {
|
|
|
10824
10951
|
* function postSlotUpdate(slot: Entity): void {}
|
|
10825
10952
|
* ```
|
|
10826
10953
|
*/
|
|
10827
|
-
POST_SLOT_UPDATE =
|
|
10954
|
+
POST_SLOT_UPDATE = 100,
|
|
10828
10955
|
/**
|
|
10829
10956
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
10830
10957
|
*
|
|
@@ -10836,7 +10963,7 @@ export declare enum ModCallbackCustom {
|
|
|
10836
10963
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
10837
10964
|
* ```
|
|
10838
10965
|
*/
|
|
10839
|
-
POST_SPIKES_RENDER =
|
|
10966
|
+
POST_SPIKES_RENDER = 101,
|
|
10840
10967
|
/**
|
|
10841
10968
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
10842
10969
|
*
|
|
@@ -10848,7 +10975,7 @@ export declare enum ModCallbackCustom {
|
|
|
10848
10975
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
10849
10976
|
* ```
|
|
10850
10977
|
*/
|
|
10851
|
-
POST_SPIKES_UPDATE =
|
|
10978
|
+
POST_SPIKES_UPDATE = 102,
|
|
10852
10979
|
/**
|
|
10853
10980
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10854
10981
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -10866,7 +10993,7 @@ export declare enum ModCallbackCustom {
|
|
|
10866
10993
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
10867
10994
|
* ```
|
|
10868
10995
|
*/
|
|
10869
|
-
POST_TEAR_INIT_LATE =
|
|
10996
|
+
POST_TEAR_INIT_LATE = 103,
|
|
10870
10997
|
/**
|
|
10871
10998
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10872
10999
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -10883,7 +11010,7 @@ export declare enum ModCallbackCustom {
|
|
|
10883
11010
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
10884
11011
|
* ```
|
|
10885
11012
|
*/
|
|
10886
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11013
|
+
POST_TEAR_INIT_VERY_LATE = 104,
|
|
10887
11014
|
/**
|
|
10888
11015
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
10889
11016
|
*
|
|
@@ -10895,7 +11022,7 @@ export declare enum ModCallbackCustom {
|
|
|
10895
11022
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
10896
11023
|
* ```
|
|
10897
11024
|
*/
|
|
10898
|
-
POST_TNT_RENDER =
|
|
11025
|
+
POST_TNT_RENDER = 105,
|
|
10899
11026
|
/**
|
|
10900
11027
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
10901
11028
|
*
|
|
@@ -10907,7 +11034,7 @@ export declare enum ModCallbackCustom {
|
|
|
10907
11034
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
10908
11035
|
* ```
|
|
10909
11036
|
*/
|
|
10910
|
-
POST_TNT_UPDATE =
|
|
11037
|
+
POST_TNT_UPDATE = 106,
|
|
10911
11038
|
/**
|
|
10912
11039
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
10913
11040
|
* transformation.
|
|
@@ -10926,7 +11053,7 @@ export declare enum ModCallbackCustom {
|
|
|
10926
11053
|
* ): void {}
|
|
10927
11054
|
* ```
|
|
10928
11055
|
*/
|
|
10929
|
-
POST_TRANSFORMATION =
|
|
11056
|
+
POST_TRANSFORMATION = 107,
|
|
10930
11057
|
/**
|
|
10931
11058
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
10932
11059
|
*
|
|
@@ -10941,7 +11068,7 @@ export declare enum ModCallbackCustom {
|
|
|
10941
11068
|
* ): void {}
|
|
10942
11069
|
* ```
|
|
10943
11070
|
*/
|
|
10944
|
-
POST_TRINKET_BREAK =
|
|
11071
|
+
POST_TRINKET_BREAK = 108,
|
|
10945
11072
|
/**
|
|
10946
11073
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
10947
11074
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -10957,7 +11084,7 @@ export declare enum ModCallbackCustom {
|
|
|
10957
11084
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
10958
11085
|
* ```
|
|
10959
11086
|
*/
|
|
10960
|
-
PRE_BERSERK_DEATH =
|
|
11087
|
+
PRE_BERSERK_DEATH = 109,
|
|
10961
11088
|
/**
|
|
10962
11089
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
10963
11090
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -10976,7 +11103,7 @@ export declare enum ModCallbackCustom {
|
|
|
10976
11103
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
10977
11104
|
* ```
|
|
10978
11105
|
*/
|
|
10979
|
-
PRE_CUSTOM_REVIVE =
|
|
11106
|
+
PRE_CUSTOM_REVIVE = 110,
|
|
10980
11107
|
/**
|
|
10981
11108
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
10982
11109
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11001,7 +11128,26 @@ export declare enum ModCallbackCustom {
|
|
|
11001
11128
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11002
11129
|
* ```
|
|
11003
11130
|
*/
|
|
11004
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11131
|
+
PRE_ENTITY_SPAWN_FILTER = 111,
|
|
11132
|
+
/**
|
|
11133
|
+
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11134
|
+
* allows you to specify extra arguments for additional filtration.
|
|
11135
|
+
*
|
|
11136
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11137
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11138
|
+
* matches the `FamiliarVariant` provided.
|
|
11139
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11140
|
+
* matches the sub-type provided.
|
|
11141
|
+
*
|
|
11142
|
+
* ```ts
|
|
11143
|
+
* function preFamiliarCollisionFilter(
|
|
11144
|
+
* familiar: EntityFamiliar,
|
|
11145
|
+
* collider: Entity,
|
|
11146
|
+
* low: boolean,
|
|
11147
|
+
* ): void {}
|
|
11148
|
+
* ```
|
|
11149
|
+
*/
|
|
11150
|
+
PRE_FAMILIAR_COLLISION_FILTER = 112,
|
|
11005
11151
|
/**
|
|
11006
11152
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11007
11153
|
* meets all of the conditions to pick it up.
|
|
@@ -11021,7 +11167,7 @@ export declare enum ModCallbackCustom {
|
|
|
11021
11167
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11022
11168
|
* ```
|
|
11023
11169
|
*/
|
|
11024
|
-
PRE_GET_PEDESTAL =
|
|
11170
|
+
PRE_GET_PEDESTAL = 113,
|
|
11025
11171
|
/**
|
|
11026
11172
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11027
11173
|
* the player begins to hold the item above their head).
|
|
@@ -11041,7 +11187,7 @@ export declare enum ModCallbackCustom {
|
|
|
11041
11187
|
* ): void {}
|
|
11042
11188
|
* ```
|
|
11043
11189
|
*/
|
|
11044
|
-
PRE_ITEM_PICKUP =
|
|
11190
|
+
PRE_ITEM_PICKUP = 114,
|
|
11045
11191
|
/**
|
|
11046
11192
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11047
11193
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11055,7 +11201,7 @@ export declare enum ModCallbackCustom {
|
|
|
11055
11201
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11056
11202
|
* ```
|
|
11057
11203
|
*/
|
|
11058
|
-
PRE_NEW_LEVEL =
|
|
11204
|
+
PRE_NEW_LEVEL = 115,
|
|
11059
11205
|
/**
|
|
11060
11206
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11061
11207
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11076,7 +11222,7 @@ export declare enum ModCallbackCustom {
|
|
|
11076
11222
|
* ): boolean | undefined {}
|
|
11077
11223
|
* ```
|
|
11078
11224
|
*/
|
|
11079
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11225
|
+
PRE_NPC_COLLISION_FILTER = 116,
|
|
11080
11226
|
/**
|
|
11081
11227
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11082
11228
|
* to specify extra arguments for additional filtration.
|
|
@@ -11093,7 +11239,7 @@ export declare enum ModCallbackCustom {
|
|
|
11093
11239
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11094
11240
|
* ```
|
|
11095
11241
|
*/
|
|
11096
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11242
|
+
PRE_NPC_UPDATE_FILTER = 117,
|
|
11097
11243
|
/**
|
|
11098
11244
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11099
11245
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11116,7 +11262,7 @@ export declare enum ModCallbackCustom {
|
|
|
11116
11262
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11117
11263
|
* ```
|
|
11118
11264
|
*/
|
|
11119
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11265
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 118
|
|
11120
11266
|
}
|
|
11121
11267
|
|
|
11122
11268
|
/**
|