13
0
geforkt von Mirrors/Paper

SPIGOT-4803: Fox related APIs

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2019-04-28 17:58:30 +10:00
Ursprung b91a465a3f
Commit 5f1aef7419
3 geänderte Dateien mit 55 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -1,6 +1,53 @@
package org.bukkit.entity;
import org.jetbrains.annotations.NotNull;
/**
* What does the fox say?
*/
public interface Fox extends Animals {}
public interface Fox extends Animals, Sittable {
/**
* Gets the current type of this fox.
*
* @return Type of the fox.
*/
@NotNull
public Type getFoxType();
/**
* Sets the current type of this fox.
*
* @param type New type of this fox.
*/
public void setFoxType(@NotNull Type type);
/**
* Checks if this animal is crouching
*
* @return true if crouching
*/
boolean isCrouching();
/**
* Sets if this animal is crouching.
*
* @param crouching true if crouching
*/
void setCrouching(boolean crouching);
/**
* Sets if this animal is sleeping.
*
* @param sleeping true if sleeping
*/
void setSleeping(boolean sleeping);
/**
* Represents the various different fox types there are.
*/
public enum Type {
RED,
SNOW;
}
}

Datei anzeigen

@ -223,13 +223,6 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
*/
public void setCooldown(@NotNull Material material, int ticks);
/**
* Returns whether this player is slumbering.
*
* @return slumber state
*/
public boolean isSleeping();
/**
* Get the sleep ticks of the player. This value may be capped.
*

Datei anzeigen

@ -432,6 +432,13 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
*/
public boolean isRiptiding();
/**
* Returns whether this entity is slumbering.
*
* @return slumber state
*/
public boolean isSleeping();
/**
* Sets whether an entity will have AI.
*