mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
SPIGOT-4943: Zombie villager conversion player API.
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.bukkit.OfflinePlayer;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,4 +56,22 @@ public interface ZombieVillager extends Zombie {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
void setConversionTime(int time);
|
void setConversionTime(int time);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the player who initiated the conversion.
|
||||||
|
*
|
||||||
|
* @return the player, or <code>null</code> if the player is unknown or the
|
||||||
|
* entity isn't converting currently
|
||||||
|
*/
|
||||||
|
@Nullable
|
||||||
|
OfflinePlayer getConversionPlayer();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the player who initiated the conversion.
|
||||||
|
* <p>
|
||||||
|
* This has no effect if this entity isn't converting currently.
|
||||||
|
*
|
||||||
|
* @param conversionPlayer the player
|
||||||
|
*/
|
||||||
|
void setConversionPlayer(@Nullable OfflinePlayer conversionPlayer);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user