diff --git a/paper-api/src/main/java/org/bukkit/entity/ZombieVillager.java b/paper-api/src/main/java/org/bukkit/entity/ZombieVillager.java index a8ec860ea6..7cc1d9a966 100644 --- a/paper-api/src/main/java/org/bukkit/entity/ZombieVillager.java +++ b/paper-api/src/main/java/org/bukkit/entity/ZombieVillager.java @@ -1,6 +1,7 @@ package org.bukkit.entity; import org.bukkit.OfflinePlayer; +import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** @@ -23,6 +24,21 @@ public interface ZombieVillager extends Zombie { @Nullable Villager.Profession getVillagerProfession(); + /** + * Gets the current type of this villager. + * + * @return Current type. + */ + @NotNull + public Villager.Type getVillagerType(); + + /** + * Sets the new type of this villager. + * + * @param type New type. + */ + public void setVillagerType(@NotNull Villager.Type type); + /** * Get if this entity is in the process of converting to a Villager as a * result of being cured.