Co-authored-by: Nassim Jahnke <nassim@njahnke.dev> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: William Blake Galbreath <blake.galbreath@gmail.com> Co-authored-by: SoSeDiK <mrsosedik@gmail.com> Co-authored-by: booky10 <boooky10@gmail.com> Co-authored-by: Amin <amin.haddou@frg.wwschool.de> Co-authored-by: TrollyLoki <trollyloki@gmail.com> Co-authored-by: FireInstall <kettnerl@hu-berlin.de> Co-authored-by: maxcom1 <46265094+maxcom1@users.noreply.github.com> Co-authored-by: TotalledZebra <Holappa57@gmail.com>
64 lines
1.9 KiB
Java
64 lines
1.9 KiB
Java
package org.bukkit.entity;
|
|
|
|
/**
|
|
* Illager beast.
|
|
*/
|
|
// Paper start - Missing Entity Behavior
|
|
public interface Ravager extends Raider {
|
|
|
|
/**
|
|
* Gets how many ticks this ravager is attacking for.
|
|
* When attacking, the ravager cannot move.
|
|
*
|
|
* @return ticks attacking or -1 if they are currently not attacking
|
|
*/
|
|
int getAttackTicks();
|
|
|
|
/**
|
|
* Sets how many ticks this ravager is attacking for.
|
|
* When attacking, the ravager cannot move.
|
|
* This will tick down till it gets to -1, where this ravager will no longer be attacking.
|
|
*
|
|
* @param ticks ticks attacking or -1 if they should no longer be attacking
|
|
*/
|
|
void setAttackTicks(int ticks);
|
|
|
|
/**
|
|
* Gets how many ticks the ravager is stunned for.
|
|
* The ravager cannot move or attack while stunned.
|
|
* At 0, this will cause the ravager to roar.
|
|
*
|
|
* @return ticks stunned or -1 if they are currently not stunned
|
|
*/
|
|
int getStunnedTicks();
|
|
|
|
/**
|
|
* Sets how many ticks the ravager is stunned for.
|
|
* The ravager cannot move or attack while stunned.
|
|
* At 0, this will cause the ravager to roar.
|
|
*
|
|
* @param ticks ticks stunned or -1 if they should no longer be stunned
|
|
*/
|
|
void setStunnedTicks(int ticks);
|
|
|
|
/**
|
|
* Gets how many ticks the ravager is roaring for.
|
|
* While roaring, the ravager cannot move
|
|
*
|
|
* @return ticks roaring or -1 if they are currently not roaring
|
|
*/
|
|
int getRoarTicks();
|
|
|
|
/**
|
|
* Sets how many ticks the ravager is roaring for.
|
|
* While roaring, the ravager cannot move
|
|
* This will tick down till it gets to -1, where it is no longer active.
|
|
* If set to 11, this will play a sound and hurt nearby players.
|
|
*
|
|
* @param ticks ticks roaring or -1 if they should no longer be roaring
|
|
*/
|
|
void setRoarTicks(int ticks);
|
|
|
|
}
|
|
// Paper end
|