diff --git a/paper-api/src/main/java/org/bukkit/entity/Fox.java b/paper-api/src/main/java/org/bukkit/entity/Fox.java index c5eac88074..89f65032d2 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Fox.java +++ b/paper-api/src/main/java/org/bukkit/entity/Fox.java @@ -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; + } +} diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index 9cb5c3be56..6277f39288 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java @@ -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. * diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index 5427c99a26..2dbb81c15a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -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. *