mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +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.
|
||||
*/
|
||||
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