#275: Add isJohnny / setJohnny for Vindicator

By: Matthew <stteg@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2022-01-01 09:58:00 +11:00
parent 245124a723
commit f976377367

View File

@ -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);
}