From 55bf7af69818a4ec558206ae6df54a04ce0a26a7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 4 Dec 2014 20:03:59 +0100 Subject: [PATCH] API for getting/setting a elder Guardian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By: Fabian Faßbender --- .../src/main/java/org/bukkit/entity/Guardian.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Guardian.java b/paper-api/src/main/java/org/bukkit/entity/Guardian.java index 2b2f496b7a..83440a4327 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Guardian.java +++ b/paper-api/src/main/java/org/bukkit/entity/Guardian.java @@ -1,4 +1,16 @@ package org.bukkit.entity; public interface Guardian extends Monster { + + /** + * Check if the Guardian is an elder Guardian + * @return true if the Guardian is an Elder Guardian, false if not + */ + public boolean isElder(); + + /** + * Set the Guardian to an elder Guardian or not + * @param shouldBeElder True if this Guardian should be a elder Guardian, false if not + */ + public void setElder(boolean shouldBeElder); }