#762: 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

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.
*/ */