From 3835d0824bc535655eb7ee5c149f0fc4378eddac Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 21 Jun 2021 08:40:18 +1000 Subject: [PATCH] #633: Add isTrusting/setTrusting to Ocelot. By: Ibrahim Ansari --- .../src/main/java/org/bukkit/entity/Ocelot.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java index c20b8e559..62a701f35 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java +++ b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java @@ -9,6 +9,20 @@ import org.jetbrains.annotations.Nullable; */ public interface Ocelot extends Animals { + /** + * Checks if this ocelot trusts players. + * + * @return true if it trusts players + */ + public boolean isTrusting(); + + /** + * Sets if this ocelot trusts players. + * + * @param trust true if it trusts players + */ + public void setTrusting(boolean trust); + /** * Gets the current type of this cat. *