mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
SPIGOT-5413: Add TrustedPlayer API for foxes
This commit is contained in:
parent
1bf1f3f456
commit
b2095bed7f
1 changed files with 35 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package org.bukkit.entity;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* What does the fox say?
|
||||
|
@ -43,6 +44,40 @@ public interface Fox extends Animals, Sittable {
|
|||
*/
|
||||
void setSleeping(boolean sleeping);
|
||||
|
||||
/**
|
||||
* Gets the first trusted player.
|
||||
*
|
||||
* @return the owning AnimalTamer, or null if not owned
|
||||
*/
|
||||
@Nullable
|
||||
public AnimalTamer getFirstTrustedPlayer();
|
||||
|
||||
/**
|
||||
* Set the first trusted player.
|
||||
* <p>
|
||||
* The first trusted player may only be removed after the second.
|
||||
*
|
||||
* @param player the AnimalTamer to be trusted
|
||||
*/
|
||||
public void setFirstTrustedPlayer(@Nullable AnimalTamer player);
|
||||
|
||||
/**
|
||||
* Gets the second trusted player.
|
||||
*
|
||||
* @return the owning AnimalTamer, or null if not owned
|
||||
*/
|
||||
@Nullable
|
||||
public AnimalTamer getSecondTrustedPlayer();
|
||||
|
||||
/**
|
||||
* Set the second trusted player.
|
||||
* <p>
|
||||
* The second trusted player may only be added after the first.
|
||||
*
|
||||
* @param player the AnimalTamer to be trusted
|
||||
*/
|
||||
public void setSecondTrustedPlayer(@Nullable AnimalTamer player);
|
||||
|
||||
/**
|
||||
* Represents the various different fox types there are.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue