mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-5647: ZombieVillager entity should have getVillagerType()
This commit is contained in:
parent
564ed1522a
commit
a6db750e7e
1 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,6 +24,21 @@ public interface ZombieVillager extends Zombie {
|
||||||
@Nullable
|
@Nullable
|
||||||
Villager.Profession getVillagerProfession();
|
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
|
* Get if this entity is in the process of converting to a Villager as a
|
||||||
* result of being cured.
|
* result of being cured.
|
||||||
|
|
Loading…
Add table
Reference in a new issue