mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
parent
dfc7a87b61
commit
46877fe5a4
@ -5,6 +5,7 @@ import org.bukkit.Keyed;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a villager NPC
|
* Represents a villager NPC
|
||||||
@ -101,6 +102,18 @@ public interface Villager extends AbstractVillager {
|
|||||||
*/
|
*/
|
||||||
public void shakeHead();
|
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
|
* Represents Villager type, usually corresponding to what biome they spawn
|
||||||
* in.
|
* in.
|
||||||
|
Loading…
Reference in New Issue
Block a user