mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
#275: Add isJohnny / setJohnny for Vindicator
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
245124a723
commit
f976377367
@ -3,4 +3,21 @@ package org.bukkit.entity;
|
|||||||
/**
|
/**
|
||||||
* Represents a Vindicator.
|
* 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);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user