isaacscript-common 15.0.5 → 15.1.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.d.ts +86 -48
- package/dist/isaacscript-common.lua +115 -49
- package/dist/src/callbacks.d.ts +52 -48
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +6 -0
- package/dist/src/classes/callbacks/PostNPCInitFilter.d.ts +14 -0
- package/dist/src/classes/callbacks/PostNPCInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNPCInitFilter.lua +26 -0
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.d.ts +14 -0
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.lua +26 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +74 -48
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +52 -48
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +12 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbacks.ts +4 -0
- package/src/classes/callbacks/PostNPCInitFilter.ts +27 -0
- package/src/classes/callbacks/PostNPCUpdateFilter.ts +27 -0
- package/src/enums/ModCallbackCustom.ts +28 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +14 -0
package/dist/index.d.ts
CHANGED
|
@@ -271,6 +271,12 @@ declare interface AddCallbackParametersCustom {
|
|
|
271
271
|
[ModCallbackCustom.POST_NEW_LEVEL_REORDERED]: [callback: () => void];
|
|
272
272
|
[ModCallbackCustom.POST_NEW_ROOM_EARLY]: [callback: () => void];
|
|
273
273
|
[ModCallbackCustom.POST_NEW_ROOM_REORDERED]: [callback: () => void];
|
|
274
|
+
[ModCallbackCustom.POST_NPC_INIT_FILTER]: [
|
|
275
|
+
callback: (npc: EntityNPC) => void,
|
|
276
|
+
entityType?: EntityType,
|
|
277
|
+
variant?: int,
|
|
278
|
+
subType?: int
|
|
279
|
+
];
|
|
274
280
|
[ModCallbackCustom.POST_NPC_INIT_LATE]: [
|
|
275
281
|
callback: (npc: EntityNPC) => void,
|
|
276
282
|
entityType?: EntityType,
|
|
@@ -283,6 +289,12 @@ declare interface AddCallbackParametersCustom {
|
|
|
283
289
|
variant?: int,
|
|
284
290
|
subType?: int
|
|
285
291
|
];
|
|
292
|
+
[ModCallbackCustom.POST_NPC_UPDATE_FILTER]: [
|
|
293
|
+
callback: (npc: EntityNPC) => void,
|
|
294
|
+
entityType?: EntityType,
|
|
295
|
+
variant?: int,
|
|
296
|
+
subType?: int
|
|
297
|
+
];
|
|
286
298
|
[ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED]: [
|
|
287
299
|
callback: (player: EntityPlayer) => void,
|
|
288
300
|
playerVariant?: PlayerVariant,
|
|
@@ -9170,6 +9182,19 @@ export declare enum ModCallbackCustom {
|
|
|
9170
9182
|
* ```
|
|
9171
9183
|
*/
|
|
9172
9184
|
POST_NEW_ROOM_REORDERED = 44,
|
|
9185
|
+
/**
|
|
9186
|
+
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
9187
|
+
* to specify extra arguments for additional filtration.
|
|
9188
|
+
*
|
|
9189
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9190
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9191
|
+
* matches the `EntityType` provided.
|
|
9192
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9193
|
+
* matches the variant provided.
|
|
9194
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9195
|
+
* matches the sub-type provided.
|
|
9196
|
+
*/
|
|
9197
|
+
POST_NPC_INIT_FILTER = 45,
|
|
9173
9198
|
/**
|
|
9174
9199
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
9175
9200
|
*
|
|
@@ -9188,7 +9213,7 @@ export declare enum ModCallbackCustom {
|
|
|
9188
9213
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
9189
9214
|
* ```
|
|
9190
9215
|
*/
|
|
9191
|
-
POST_NPC_INIT_LATE =
|
|
9216
|
+
POST_NPC_INIT_LATE = 46,
|
|
9192
9217
|
/**
|
|
9193
9218
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
9194
9219
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -9209,7 +9234,20 @@ export declare enum ModCallbackCustom {
|
|
|
9209
9234
|
* ): void {}
|
|
9210
9235
|
* ```
|
|
9211
9236
|
*/
|
|
9212
|
-
POST_NPC_STATE_CHANGED =
|
|
9237
|
+
POST_NPC_STATE_CHANGED = 47,
|
|
9238
|
+
/**
|
|
9239
|
+
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
9240
|
+
* to specify extra arguments for additional filtration.
|
|
9241
|
+
*
|
|
9242
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9243
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9244
|
+
* matches the `EntityType` provided.
|
|
9245
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9246
|
+
* matches the variant provided.
|
|
9247
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9248
|
+
* matches the sub-type provided.
|
|
9249
|
+
*/
|
|
9250
|
+
POST_NPC_UPDATE_FILTER = 48,
|
|
9213
9251
|
/**
|
|
9214
9252
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
9215
9253
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -9234,7 +9272,7 @@ export declare enum ModCallbackCustom {
|
|
|
9234
9272
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
9235
9273
|
* ```
|
|
9236
9274
|
*/
|
|
9237
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
9275
|
+
POST_PEFFECT_UPDATE_REORDERED = 49,
|
|
9238
9276
|
/**
|
|
9239
9277
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
9240
9278
|
*
|
|
@@ -9250,7 +9288,7 @@ export declare enum ModCallbackCustom {
|
|
|
9250
9288
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
9251
9289
|
* ```
|
|
9252
9290
|
*/
|
|
9253
|
-
POST_PICKUP_COLLECT =
|
|
9291
|
+
POST_PICKUP_COLLECT = 50,
|
|
9254
9292
|
/**
|
|
9255
9293
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
9256
9294
|
* respective pickup on the run.
|
|
@@ -9268,7 +9306,7 @@ export declare enum ModCallbackCustom {
|
|
|
9268
9306
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
9269
9307
|
* ```
|
|
9270
9308
|
*/
|
|
9271
|
-
POST_PICKUP_INIT_FIRST =
|
|
9309
|
+
POST_PICKUP_INIT_FIRST = 51,
|
|
9272
9310
|
/**
|
|
9273
9311
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
9274
9312
|
*
|
|
@@ -9285,7 +9323,7 @@ export declare enum ModCallbackCustom {
|
|
|
9285
9323
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
9286
9324
|
* ```
|
|
9287
9325
|
*/
|
|
9288
|
-
POST_PICKUP_INIT_LATE =
|
|
9326
|
+
POST_PICKUP_INIT_LATE = 52,
|
|
9289
9327
|
/**
|
|
9290
9328
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
9291
9329
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -9304,7 +9342,7 @@ export declare enum ModCallbackCustom {
|
|
|
9304
9342
|
* ): void {}
|
|
9305
9343
|
* ```
|
|
9306
9344
|
*/
|
|
9307
|
-
POST_PICKUP_STATE_CHANGED =
|
|
9345
|
+
POST_PICKUP_STATE_CHANGED = 53,
|
|
9308
9346
|
/**
|
|
9309
9347
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
9310
9348
|
*
|
|
@@ -9316,7 +9354,7 @@ export declare enum ModCallbackCustom {
|
|
|
9316
9354
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
9317
9355
|
* ```
|
|
9318
9356
|
*/
|
|
9319
|
-
POST_PIT_RENDER =
|
|
9357
|
+
POST_PIT_RENDER = 54,
|
|
9320
9358
|
/**
|
|
9321
9359
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
9322
9360
|
*
|
|
@@ -9328,7 +9366,7 @@ export declare enum ModCallbackCustom {
|
|
|
9328
9366
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
9329
9367
|
* ```
|
|
9330
9368
|
*/
|
|
9331
|
-
POST_PIT_UPDATE =
|
|
9369
|
+
POST_PIT_UPDATE = 55,
|
|
9332
9370
|
/**
|
|
9333
9371
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's health (i.e. hearts) is different
|
|
9334
9372
|
* than what it was on the previous frame. For more information, see the `PlayerHealth` enum.
|
|
@@ -9349,7 +9387,7 @@ export declare enum ModCallbackCustom {
|
|
|
9349
9387
|
* ): void {}
|
|
9350
9388
|
* ```
|
|
9351
9389
|
*/
|
|
9352
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
9390
|
+
POST_PLAYER_CHANGE_HEALTH = 56,
|
|
9353
9391
|
/**
|
|
9354
9392
|
* Fires from the `POST_PEFFECT_UPDATE` callback when one of the player's stats change from what
|
|
9355
9393
|
* they were on the previous frame.
|
|
@@ -9379,7 +9417,7 @@ export declare enum ModCallbackCustom {
|
|
|
9379
9417
|
* ) => void {}
|
|
9380
9418
|
* ```
|
|
9381
9419
|
*/
|
|
9382
|
-
POST_PLAYER_CHANGE_STAT =
|
|
9420
|
+
POST_PLAYER_CHANGE_STAT = 57,
|
|
9383
9421
|
/**
|
|
9384
9422
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
9385
9423
|
* (i.e. character) from what it was on the previous frame. For example, it will fire after using
|
|
@@ -9401,7 +9439,7 @@ export declare enum ModCallbackCustom {
|
|
|
9401
9439
|
* ): void {}
|
|
9402
9440
|
* ```
|
|
9403
9441
|
*/
|
|
9404
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
9442
|
+
POST_PLAYER_CHANGE_TYPE = 58,
|
|
9405
9443
|
/**
|
|
9406
9444
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
9407
9445
|
* what it was on the previous frame, or when the active items change, or when the build is
|
|
@@ -9418,7 +9456,7 @@ export declare enum ModCallbackCustom {
|
|
|
9418
9456
|
* ): void {}
|
|
9419
9457
|
* ```
|
|
9420
9458
|
*/
|
|
9421
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
9459
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 59,
|
|
9422
9460
|
/**
|
|
9423
9461
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
9424
9462
|
* what it was on the previous frame, or when the active items change, or when the build is
|
|
@@ -9435,7 +9473,7 @@ export declare enum ModCallbackCustom {
|
|
|
9435
9473
|
* ): void {}
|
|
9436
9474
|
* ```
|
|
9437
9475
|
*/
|
|
9438
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
9476
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 60,
|
|
9439
9477
|
/**
|
|
9440
9478
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
9441
9479
|
* prevent the fatal damage.
|
|
@@ -9453,7 +9491,7 @@ export declare enum ModCallbackCustom {
|
|
|
9453
9491
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
9454
9492
|
* ```
|
|
9455
9493
|
*/
|
|
9456
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
9494
|
+
POST_PLAYER_FATAL_DAMAGE = 61,
|
|
9457
9495
|
/**
|
|
9458
9496
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
9459
9497
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -9475,7 +9513,7 @@ export declare enum ModCallbackCustom {
|
|
|
9475
9513
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
9476
9514
|
* ```
|
|
9477
9515
|
*/
|
|
9478
|
-
POST_PLAYER_INIT_FIRST =
|
|
9516
|
+
POST_PLAYER_INIT_FIRST = 62,
|
|
9479
9517
|
/**
|
|
9480
9518
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
9481
9519
|
*
|
|
@@ -9495,7 +9533,7 @@ export declare enum ModCallbackCustom {
|
|
|
9495
9533
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
9496
9534
|
* ```
|
|
9497
9535
|
*/
|
|
9498
|
-
POST_PLAYER_INIT_LATE =
|
|
9536
|
+
POST_PLAYER_INIT_LATE = 63,
|
|
9499
9537
|
/**
|
|
9500
9538
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
9501
9539
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -9519,7 +9557,7 @@ export declare enum ModCallbackCustom {
|
|
|
9519
9557
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
9520
9558
|
* ```
|
|
9521
9559
|
*/
|
|
9522
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
9560
|
+
POST_PLAYER_RENDER_REORDERED = 64,
|
|
9523
9561
|
/**
|
|
9524
9562
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
9525
9563
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -9544,7 +9582,7 @@ export declare enum ModCallbackCustom {
|
|
|
9544
9582
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
9545
9583
|
* ```
|
|
9546
9584
|
*/
|
|
9547
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
9585
|
+
POST_PLAYER_UPDATE_REORDERED = 65,
|
|
9548
9586
|
/**
|
|
9549
9587
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
9550
9588
|
*
|
|
@@ -9556,7 +9594,7 @@ export declare enum ModCallbackCustom {
|
|
|
9556
9594
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
9557
9595
|
* ```
|
|
9558
9596
|
*/
|
|
9559
|
-
POST_POOP_RENDER =
|
|
9597
|
+
POST_POOP_RENDER = 66,
|
|
9560
9598
|
/**
|
|
9561
9599
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
9562
9600
|
*
|
|
@@ -9568,7 +9606,7 @@ export declare enum ModCallbackCustom {
|
|
|
9568
9606
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
9569
9607
|
* ```
|
|
9570
9608
|
*/
|
|
9571
|
-
POST_POOP_UPDATE =
|
|
9609
|
+
POST_POOP_UPDATE = 67,
|
|
9572
9610
|
/**
|
|
9573
9611
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
9574
9612
|
*
|
|
@@ -9580,7 +9618,7 @@ export declare enum ModCallbackCustom {
|
|
|
9580
9618
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
9581
9619
|
* ```
|
|
9582
9620
|
*/
|
|
9583
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
9621
|
+
POST_PRESSURE_PLATE_RENDER = 68,
|
|
9584
9622
|
/**
|
|
9585
9623
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
9586
9624
|
*
|
|
@@ -9592,7 +9630,7 @@ export declare enum ModCallbackCustom {
|
|
|
9592
9630
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
9593
9631
|
* ```
|
|
9594
9632
|
*/
|
|
9595
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
9633
|
+
POST_PRESSURE_PLATE_UPDATE = 69,
|
|
9596
9634
|
/**
|
|
9597
9635
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
9598
9636
|
*
|
|
@@ -9609,7 +9647,7 @@ export declare enum ModCallbackCustom {
|
|
|
9609
9647
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
9610
9648
|
* ```
|
|
9611
9649
|
*/
|
|
9612
|
-
POST_PROJECTILE_INIT_LATE =
|
|
9650
|
+
POST_PROJECTILE_INIT_LATE = 70,
|
|
9613
9651
|
/**
|
|
9614
9652
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
9615
9653
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -9624,7 +9662,7 @@ export declare enum ModCallbackCustom {
|
|
|
9624
9662
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
9625
9663
|
* ```
|
|
9626
9664
|
*/
|
|
9627
|
-
POST_PURCHASE =
|
|
9665
|
+
POST_PURCHASE = 71,
|
|
9628
9666
|
/**
|
|
9629
9667
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
9630
9668
|
*
|
|
@@ -9638,7 +9676,7 @@ export declare enum ModCallbackCustom {
|
|
|
9638
9676
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
9639
9677
|
* ```
|
|
9640
9678
|
*/
|
|
9641
|
-
POST_ROCK_RENDER =
|
|
9679
|
+
POST_ROCK_RENDER = 72,
|
|
9642
9680
|
/**
|
|
9643
9681
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
9644
9682
|
*
|
|
@@ -9652,7 +9690,7 @@ export declare enum ModCallbackCustom {
|
|
|
9652
9690
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
9653
9691
|
* ```
|
|
9654
9692
|
*/
|
|
9655
|
-
POST_ROCK_UPDATE =
|
|
9693
|
+
POST_ROCK_UPDATE = 73,
|
|
9656
9694
|
/**
|
|
9657
9695
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
9658
9696
|
* the `Room.IsClear` method).
|
|
@@ -9669,7 +9707,7 @@ export declare enum ModCallbackCustom {
|
|
|
9669
9707
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
9670
9708
|
* ```
|
|
9671
9709
|
*/
|
|
9672
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
9710
|
+
POST_ROOM_CLEAR_CHANGED = 74,
|
|
9673
9711
|
/**
|
|
9674
9712
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
9675
9713
|
* Room.
|
|
@@ -9684,7 +9722,7 @@ export declare enum ModCallbackCustom {
|
|
|
9684
9722
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
9685
9723
|
* ```
|
|
9686
9724
|
*/
|
|
9687
|
-
POST_SACRIFICE =
|
|
9725
|
+
POST_SACRIFICE = 75,
|
|
9688
9726
|
/**
|
|
9689
9727
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
9690
9728
|
*
|
|
@@ -9698,7 +9736,7 @@ export declare enum ModCallbackCustom {
|
|
|
9698
9736
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
9699
9737
|
* ```
|
|
9700
9738
|
*/
|
|
9701
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
9739
|
+
POST_SLOT_ANIMATION_CHANGED = 76,
|
|
9702
9740
|
/**
|
|
9703
9741
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
9704
9742
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -9722,7 +9760,7 @@ export declare enum ModCallbackCustom {
|
|
|
9722
9760
|
* ): void {}
|
|
9723
9761
|
* ```
|
|
9724
9762
|
*/
|
|
9725
|
-
POST_SLOT_COLLISION =
|
|
9763
|
+
POST_SLOT_COLLISION = 77,
|
|
9726
9764
|
/**
|
|
9727
9765
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
9728
9766
|
* has broken.
|
|
@@ -9737,7 +9775,7 @@ export declare enum ModCallbackCustom {
|
|
|
9737
9775
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
9738
9776
|
* ```
|
|
9739
9777
|
*/
|
|
9740
|
-
POST_SLOT_DESTROYED =
|
|
9778
|
+
POST_SLOT_DESTROYED = 78,
|
|
9741
9779
|
/**
|
|
9742
9780
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
9743
9781
|
*
|
|
@@ -9756,7 +9794,7 @@ export declare enum ModCallbackCustom {
|
|
|
9756
9794
|
* function postSlotInit(slot: Entity): void {}
|
|
9757
9795
|
* ```
|
|
9758
9796
|
*/
|
|
9759
|
-
POST_SLOT_INIT =
|
|
9797
|
+
POST_SLOT_INIT = 79,
|
|
9760
9798
|
/**
|
|
9761
9799
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
9762
9800
|
*
|
|
@@ -9770,7 +9808,7 @@ export declare enum ModCallbackCustom {
|
|
|
9770
9808
|
* function postSlotRender(slot: Entity): void {}
|
|
9771
9809
|
* ```
|
|
9772
9810
|
*/
|
|
9773
|
-
POST_SLOT_RENDER =
|
|
9811
|
+
POST_SLOT_RENDER = 80,
|
|
9774
9812
|
/**
|
|
9775
9813
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
9776
9814
|
*
|
|
@@ -9784,7 +9822,7 @@ export declare enum ModCallbackCustom {
|
|
|
9784
9822
|
* function postSlotUpdate(slot: Entity): void {}
|
|
9785
9823
|
* ```
|
|
9786
9824
|
*/
|
|
9787
|
-
POST_SLOT_UPDATE =
|
|
9825
|
+
POST_SLOT_UPDATE = 81,
|
|
9788
9826
|
/**
|
|
9789
9827
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
9790
9828
|
*
|
|
@@ -9796,7 +9834,7 @@ export declare enum ModCallbackCustom {
|
|
|
9796
9834
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
9797
9835
|
* ```
|
|
9798
9836
|
*/
|
|
9799
|
-
POST_SPIKES_RENDER =
|
|
9837
|
+
POST_SPIKES_RENDER = 82,
|
|
9800
9838
|
/**
|
|
9801
9839
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
9802
9840
|
*
|
|
@@ -9808,7 +9846,7 @@ export declare enum ModCallbackCustom {
|
|
|
9808
9846
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
9809
9847
|
* ```
|
|
9810
9848
|
*/
|
|
9811
|
-
POST_SPIKES_UPDATE =
|
|
9849
|
+
POST_SPIKES_UPDATE = 83,
|
|
9812
9850
|
/**
|
|
9813
9851
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
9814
9852
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -9826,7 +9864,7 @@ export declare enum ModCallbackCustom {
|
|
|
9826
9864
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
9827
9865
|
* ```
|
|
9828
9866
|
*/
|
|
9829
|
-
POST_TEAR_INIT_LATE =
|
|
9867
|
+
POST_TEAR_INIT_LATE = 84,
|
|
9830
9868
|
/**
|
|
9831
9869
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
9832
9870
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -9843,7 +9881,7 @@ export declare enum ModCallbackCustom {
|
|
|
9843
9881
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
9844
9882
|
* ```
|
|
9845
9883
|
*/
|
|
9846
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
9884
|
+
POST_TEAR_INIT_VERY_LATE = 85,
|
|
9847
9885
|
/**
|
|
9848
9886
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
9849
9887
|
*
|
|
@@ -9855,7 +9893,7 @@ export declare enum ModCallbackCustom {
|
|
|
9855
9893
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
9856
9894
|
* ```
|
|
9857
9895
|
*/
|
|
9858
|
-
POST_TNT_RENDER =
|
|
9896
|
+
POST_TNT_RENDER = 86,
|
|
9859
9897
|
/**
|
|
9860
9898
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
9861
9899
|
*
|
|
@@ -9867,7 +9905,7 @@ export declare enum ModCallbackCustom {
|
|
|
9867
9905
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
9868
9906
|
* ```
|
|
9869
9907
|
*/
|
|
9870
|
-
POST_TNT_UPDATE =
|
|
9908
|
+
POST_TNT_UPDATE = 87,
|
|
9871
9909
|
/**
|
|
9872
9910
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
9873
9911
|
* transformation.
|
|
@@ -9886,7 +9924,7 @@ export declare enum ModCallbackCustom {
|
|
|
9886
9924
|
* ): void {}
|
|
9887
9925
|
* ```
|
|
9888
9926
|
*/
|
|
9889
|
-
POST_TRANSFORMATION =
|
|
9927
|
+
POST_TRANSFORMATION = 88,
|
|
9890
9928
|
/**
|
|
9891
9929
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
9892
9930
|
*
|
|
@@ -9901,7 +9939,7 @@ export declare enum ModCallbackCustom {
|
|
|
9901
9939
|
* ): void {}
|
|
9902
9940
|
* ```
|
|
9903
9941
|
*/
|
|
9904
|
-
POST_TRINKET_BREAK =
|
|
9942
|
+
POST_TRINKET_BREAK = 89,
|
|
9905
9943
|
/**
|
|
9906
9944
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
9907
9945
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -9917,7 +9955,7 @@ export declare enum ModCallbackCustom {
|
|
|
9917
9955
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
9918
9956
|
* ```
|
|
9919
9957
|
*/
|
|
9920
|
-
PRE_BERSERK_DEATH =
|
|
9958
|
+
PRE_BERSERK_DEATH = 90,
|
|
9921
9959
|
/**
|
|
9922
9960
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
9923
9961
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -9936,7 +9974,7 @@ export declare enum ModCallbackCustom {
|
|
|
9936
9974
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
9937
9975
|
* ```
|
|
9938
9976
|
*/
|
|
9939
|
-
PRE_CUSTOM_REVIVE =
|
|
9977
|
+
PRE_CUSTOM_REVIVE = 91,
|
|
9940
9978
|
/**
|
|
9941
9979
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
9942
9980
|
* meets all of the conditions to pick it up.
|
|
@@ -9956,7 +9994,7 @@ export declare enum ModCallbackCustom {
|
|
|
9956
9994
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
9957
9995
|
* ```
|
|
9958
9996
|
*/
|
|
9959
|
-
PRE_GET_PEDESTAL =
|
|
9997
|
+
PRE_GET_PEDESTAL = 92,
|
|
9960
9998
|
/**
|
|
9961
9999
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
9962
10000
|
* begins to hold the item above their head).
|
|
@@ -9976,7 +10014,7 @@ export declare enum ModCallbackCustom {
|
|
|
9976
10014
|
* ): void {}
|
|
9977
10015
|
* ```
|
|
9978
10016
|
*/
|
|
9979
|
-
PRE_ITEM_PICKUP =
|
|
10017
|
+
PRE_ITEM_PICKUP = 93,
|
|
9980
10018
|
/**
|
|
9981
10019
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
9982
10020
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -9990,7 +10028,7 @@ export declare enum ModCallbackCustom {
|
|
|
9990
10028
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
9991
10029
|
* ```
|
|
9992
10030
|
*/
|
|
9993
|
-
PRE_NEW_LEVEL =
|
|
10031
|
+
PRE_NEW_LEVEL = 94
|
|
9994
10032
|
}
|
|
9995
10033
|
|
|
9996
10034
|
/**
|