Co-authored-by: Bjarne Koll <git@lynxplay.dev> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Co-authored-by: MiniDigger | Martin <admin@minidigger.dev> Co-authored-by: Nassim Jahnke <nassim@njahnke.dev> Co-authored-by: Noah van der Aa <ndvdaa@gmail.com> Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Co-authored-by: Shane Freeder <theboyetronic@gmail.com> Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com> Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com> Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
64 lines
1.3 KiB
Java
64 lines
1.3 KiB
Java
package org.bukkit.entity;
|
|
|
|
import org.jetbrains.annotations.Contract;
|
|
|
|
/**
|
|
* Represents a Zombified piglin.
|
|
*/
|
|
public interface PigZombie extends Zombie {
|
|
|
|
/**
|
|
* Get the zombified piglin's current anger level.
|
|
*
|
|
* @return The anger level.
|
|
*/
|
|
int getAnger();
|
|
|
|
/**
|
|
* Set the zombified piglin's current anger level.
|
|
*
|
|
* @param level The anger level. Higher levels of anger take longer to
|
|
* wear off.
|
|
*/
|
|
void setAnger(int level);
|
|
|
|
/**
|
|
* Shorthand; sets to either 0 or the default level.
|
|
*
|
|
* @param angry Whether the piglin should be angry.
|
|
*/
|
|
void setAngry(boolean angry);
|
|
|
|
/**
|
|
* Shorthand; gets whether the piglin is angry.
|
|
*
|
|
* @return True if the piglin is angry, otherwise false.
|
|
*/
|
|
boolean isAngry();
|
|
|
|
/**
|
|
* <b>Not applicable to this entity</b>
|
|
*
|
|
* @return {@code false}
|
|
*/
|
|
@Override
|
|
@Contract("-> false")
|
|
public boolean isConverting();
|
|
|
|
/**
|
|
* <b>Not applicable to this entity</b>
|
|
*/
|
|
@Override
|
|
@Contract("-> fail")
|
|
public int getConversionTime();
|
|
|
|
/**
|
|
* <b>Not applicable to this entity</b>
|
|
*
|
|
* @param time unused
|
|
*/
|
|
@Override
|
|
@Contract("_ -> fail")
|
|
public void setConversionTime(int time);
|
|
}
|