mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
SPIGOT-5647: ZombieVillager entity should have getVillagerType()
By: md_5 <git@md-5.net>
This commit is contained in:
parent
48bc105f6f
commit
6546b51b70
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user