From f9763773677b3e3779c4c85bb3a68df35498f4f7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 1 Jan 2022 09:58:00 +1100 Subject: [PATCH] #275: Add isJohnny / setJohnny for Vindicator By: Matthew --- .../java/org/bukkit/entity/Vindicator.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Vindicator.java b/paper-api/src/main/java/org/bukkit/entity/Vindicator.java index b8ea68a8f4..1022ba8cd8 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Vindicator.java +++ b/paper-api/src/main/java/org/bukkit/entity/Vindicator.java @@ -3,4 +3,21 @@ package org.bukkit.entity; /** * Represents a Vindicator. */ -public interface Vindicator extends Illager { } +public interface Vindicator extends Illager { + + /** + * Returns whether a vindicator is in "Johnny" mode. + * + * When this mode is active, vindicators will be hostile to all mobs. + * + * @return true if johnny + */ + boolean isJohnny(); + + /** + * Sets the Johnny state of a vindicator. + * + * @param johnny new johnny state + */ + void setJohnny(boolean johnny); +}