From ecf35dd77aebd9ad5297fc629c8fb2b41f355e95 Mon Sep 17 00:00:00 2001 From: Ibrahim Ansari Date: Mon, 21 Jun 2021 08:40:18 +1000 Subject: [PATCH] #633: Add isTrusting/setTrusting to Ocelot. --- src/main/java/org/bukkit/entity/Ocelot.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Ocelot.java b/src/main/java/org/bukkit/entity/Ocelot.java index c20b8e55..62a701f3 100644 --- a/src/main/java/org/bukkit/entity/Ocelot.java +++ b/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. *