From 730e0df7e416655fe1aa499f8111d733c90175df Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 11 Jul 2021 09:32:32 +1000 Subject: [PATCH] SPIGOT-6623: Missing API reasons for entity freezing By: Doc --- .../main/java/org/bukkit/event/entity/CreatureSpawnEvent.java | 4 ++++ .../java/org/bukkit/event/entity/EntityTransformEvent.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 153fcde1cb..cb0d91c0e2 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -177,6 +177,10 @@ public class CreatureSpawnEvent extends EntitySpawnEvent { * When a piglin is converted to a zombified piglib. */ PIGLIN_ZOMBIFIED, + /** + * When an entity is shaking in Powder Snow and a new entity spawns. + */ + FROZEN, /** * When a creature is spawned by the "/summon" command */ diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTransformEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTransformEvent.java index 76ad715961..1e702f94e1 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTransformEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTransformEvent.java @@ -84,6 +84,10 @@ public class EntityTransformEvent extends EntityEvent implements Cancellable { * When a zombie gets cured and a villager is spawned. */ CURED, + /** + * When an entity is shaking in Powder Snow and a new entity spawns. + */ + FROZEN, /** * When a villager gets infected and a zombie villager spawns. */