mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
SPIGOT-4943: Zombie villager conversion player API.
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
19f56f1e6c
commit
1a0f762c38
1 changed files with 19 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
|
@ -55,4 +56,22 @@ public interface ZombieVillager extends Zombie {
|
|||
*/
|
||||
@Override
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue