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

This commit is contained in:
Nathat23 2021-03-09 08:47:26 +11:00 committed by md_5
parent 9d0ad3184e
commit 1c537fce41
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11
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.
*/ */