SPIGOT-5647: ZombieVillager entity should have getVillagerType()

This commit is contained in:
md_5 2020-03-30 12:15:14 +11:00
parent 564ed1522a
commit a6db750e7e

View file

@ -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.