geforkt von Mirrors/Paper
SPIGOT-4803: Fox related APIs
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
b91a465a3f
Commit
5f1aef7419
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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.
|
||||
*
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren