13
0
geforkt von Mirrors/Paper

SPIGOT-5647: ZombieVillager entity should have getVillagerType()

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2020-03-30 12:15:14 +11:00
Ursprung 48bc105f6f
Commit 6546b51b70

Datei anzeigen

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