mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
#590: Add spawn and transform reasons for piglin zombification.
By: Nathat23 <nathat890@outlook.com>
This commit is contained in:
parent
2ae343b93f
commit
3df2b9e2ab
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user