#590: Add spawn and transform reasons for piglin zombification.

By: Nathat23 <nathat890@outlook.com>
This commit is contained in:
Bukkit/Spigot 2021-03-09 08:47:26 +11:00
parent 2ae343b93f
commit 3df2b9e2ab
2 changed files with 9 additions and 1 deletions

View File

@ -173,6 +173,10 @@ public class CreatureSpawnEvent extends EntitySpawnEvent {
* When a bee is released from a beehive/bee nest * When a bee is released from a beehive/bee nest
*/ */
BEEHIVE, BEEHIVE,
/**
* When a piglin is converted to a zombified piglib.
*/
PIGLIN_ZOMBIFIED,
/** /**
* When a creature is spawned by plugins * When a creature is spawned by plugins
*/ */

View File

@ -89,7 +89,7 @@ public class EntityTransformEvent extends EntityEvent implements Cancellable {
*/ */
INFECTION, INFECTION,
/** /**
* When a entity drowns in water and a new entity spawns. * When an entity drowns in water and a new entity spawns.
*/ */
DROWNED, DROWNED,
/** /**
@ -104,6 +104,10 @@ public class EntityTransformEvent extends EntityEvent implements Cancellable {
* When a slime splits into multiple smaller slimes. * When a slime splits into multiple smaller slimes.
*/ */
SPLIT, SPLIT,
/**
* When a piglin converts to a zombified piglin.
*/
PIGLIN_ZOMBIFIED,
/** /**
* When reason is unknown. * When reason is unknown.
*/ */