1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-13 19:28:03 +01:00

: Add SpawnReason and TransformReason for Tadpole metamorphosis into Frog

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2022-06-13 15:24:49 +10:00
parent b1a97476be
commit f786e8cff4
2 changed files with 8 additions and 0 deletions
paper-api/src/main/java/org/bukkit/event/entity

View file

@ -185,6 +185,10 @@ public class CreatureSpawnEvent extends EntitySpawnEvent {
* When an entity is shaking in Powder Snow and a new entity spawns. * When an entity is shaking in Powder Snow and a new entity spawns.
*/ */
FROZEN, FROZEN,
/**
* When a tadpole converts to a frog
*/
METAMORPHOSIS,
/** /**
* When a creature is spawned by the "/summon" command * When a creature is spawned by the "/summon" command
*/ */

View file

@ -112,6 +112,10 @@ public class EntityTransformEvent extends EntityEvent implements Cancellable {
* When a piglin converts to a zombified piglin. * When a piglin converts to a zombified piglin.
*/ */
PIGLIN_ZOMBIFIED, PIGLIN_ZOMBIFIED,
/**
* When a tadpole converts to a frog
*/
METAMORPHOSIS,
/** /**
* When reason is unknown. * When reason is unknown.
*/ */