diff --git a/paper-api/src/main/java/org/bukkit/entity/Piglin.java b/paper-api/src/main/java/org/bukkit/entity/Piglin.java index 2c8fdb69cb..8dbbb427ee 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Piglin.java +++ b/paper-api/src/main/java/org/bukkit/entity/Piglin.java @@ -3,4 +3,19 @@ package org.bukkit.entity; /** * Represents a Piglin. */ -public interface Piglin extends Monster { } +public interface Piglin extends Monster { + + /** + * Gets whether the piglin is a baby + * + * @return Whether the piglin is a baby + */ + public boolean isBaby(); + + /** + * Sets whether the piglin is a baby + * + * @param flag Whether the piglin is a baby + */ + public void setBaby(boolean flag); +} diff --git a/paper-api/src/main/java/org/bukkit/entity/Zoglin.java b/paper-api/src/main/java/org/bukkit/entity/Zoglin.java index c4a1de522a..ad947d327e 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Zoglin.java +++ b/paper-api/src/main/java/org/bukkit/entity/Zoglin.java @@ -3,4 +3,19 @@ package org.bukkit.entity; /** * Represents a Zoglin. */ -public interface Zoglin extends Monster { } +public interface Zoglin extends Monster { + + /** + * Gets whether the zoglin is a baby + * + * @return Whether the zoglin is a baby + */ + public boolean isBaby(); + + /** + * Sets whether the zoglin is a baby + * + * @param flag Whether the zoglin is a baby + */ + public void setBaby(boolean flag); +}