mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#735: Add Villager#zombify
This commit is contained in:
parent
c8c8331ec3
commit
fc460d1bb8
1 changed files with 13 additions and 0 deletions
|
@ -5,6 +5,7 @@ import org.bukkit.Keyed;
|
|||
import org.bukkit.Location;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a villager NPC
|
||||
|
@ -101,6 +102,18 @@ public interface Villager extends AbstractVillager {
|
|||
*/
|
||||
public void shakeHead();
|
||||
|
||||
/**
|
||||
* Convert this Villager into a ZombieVillager as if it was killed by a
|
||||
* Zombie.
|
||||
*
|
||||
* <b>Note:</b> this will fire a EntityTransformEvent
|
||||
*
|
||||
* @return the converted entity {@link ZombieVillager} or null if the
|
||||
* conversion its cancelled
|
||||
*/
|
||||
@Nullable
|
||||
public ZombieVillager zombify();
|
||||
|
||||
/**
|
||||
* Represents Villager type, usually corresponding to what biome they spawn
|
||||
* in.
|
||||
|
|
Loading…
Add table
Reference in a new issue