Missing Entity API

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>
This commit is contained in:
Owen1212055
2021-05-28 21:06:59 -04:00
parent fb8f31e8e3
commit a2a581ba6b
37 changed files with 1089 additions and 7 deletions
@@ -170,4 +170,38 @@ public interface Mob extends LivingEntity, Lootable {
this.setSeed(seed);
}
// Paper end - LootTable API
// Paper start - Missing Entity API
/**
* Some mobs will raise their arm(s) when aggressive:
* <ul>
* <li>{@link Drowned}</li>
* <li>{@link Piglin}</li>
* <li>{@link Skeleton}</li>
* <li>{@link Zombie}</li>
* <li>{@link ZombieVillager}</li>
* <li>{@link Illusioner}</li>
* <li>{@link Vindicator}</li>
* <li>{@link Panda}</li>
* <li>{@link Pillager}</li>
* <li>{@link PiglinBrute}</li>
* </ul>
* <p>
* Note: This doesn't always show the actual aggressive state as
* set by {@link #setAggressive(boolean)}. {@link Panda}'s are always
* aggressive if their combined {@link Panda.Gene} is {@link Panda.Gene#AGGRESSIVE}.
*
* @return wether the mob is aggressive or not
*/
boolean isAggressive();
/**
* Some mobs will raise their arm(s) when aggressive,
* see {@link #isAggressive()} for full list.
*
* @param aggressive wether the mob should be aggressive or not
* @see #isAggressive()
*/
void setAggressive(boolean aggressive);
// Paper end - Missing Entity API
}