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>
This commit is contained in:
Nassim Jahnke
2025-04-12 17:26:44 +02:00
parent 0767902699
commit f00727c57e
2092 changed files with 50551 additions and 48729 deletions

View File

@@ -1,19 +1,21 @@
package org.bukkit.entity;
import org.jetbrains.annotations.Contract;
/**
* Represents a Pig Zombie.
* Represents a Zombified piglin.
*/
public interface PigZombie extends Zombie {
/**
* Get the pig zombie's current anger level.
* Get the zombified piglin's current anger level.
*
* @return The anger level.
*/
int getAnger();
/**
* Set the pig zombie's current anger level.
* Set the zombified piglin's current anger level.
*
* @param level The anger level. Higher levels of anger take longer to
* wear off.
@@ -23,29 +25,31 @@ public interface PigZombie extends Zombie {
/**
* Shorthand; sets to either 0 or the default level.
*
* @param angry Whether the zombie should be angry.
* @param angry Whether the piglin should be angry.
*/
void setAngry(boolean angry);
/**
* Shorthand; gets whether the zombie is angry.
* Shorthand; gets whether the piglin is angry.
*
* @return True if the zombie is angry, otherwise false.
* @return True if the piglin is angry, otherwise false.
*/
boolean isAngry();
/**
* <b>Not applicable to this entity</b>
*
* @return false
* @return {@code false}
*/
@Override
@Contract("-> false")
public boolean isConverting();
/**
* <b>Not applicable to this entity</b>
*/
@Override
@Contract("-> fail")
public int getConversionTime();
/**
@@ -54,5 +58,6 @@ public interface PigZombie extends Zombie {
* @param time unused
*/
@Override
@Contract("_ -> fail")
public void setConversionTime(int time);
}