SPIGOT-7221: Add Enemy (Entity) interface

By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
Bukkit/Spigot 2022-12-31 10:23:59 +11:00
parent 9048c2fc06
commit 5c925130eb
8 changed files with 13 additions and 7 deletions

View file

@ -8,7 +8,7 @@ import org.jetbrains.annotations.Nullable;
/**
* Represents an Ender Dragon
*/
public interface EnderDragon extends ComplexLivingEntity, Boss, Mob {
public interface EnderDragon extends ComplexLivingEntity, Boss, Mob, Enemy {
/**
* Represents a phase or action that an Ender Dragon can perform.

View file

@ -0,0 +1,6 @@
package org.bukkit.entity;
/**
* Represents an Enemy
*/
public interface Enemy extends LivingEntity {}

View file

@ -3,7 +3,7 @@ package org.bukkit.entity;
/**
* Represents a Ghast.
*/
public interface Ghast extends Flying {
public interface Ghast extends Flying, Enemy {
/**
* Gets whether the Ghast is charging

View file

@ -3,7 +3,7 @@ package org.bukkit.entity;
/**
* Represents a Hoglin.
*/
public interface Hoglin extends Animals {
public interface Hoglin extends Animals, Enemy {
/**
* Gets whether the hoglin is immune to zombification.

View file

@ -3,4 +3,4 @@ package org.bukkit.entity;
/**
* Represents a Monster.
*/
public interface Monster extends Creature {}
public interface Monster extends Creature, Enemy {}

View file

@ -3,7 +3,7 @@ package org.bukkit.entity;
/**
* Represents a phantom.
*/
public interface Phantom extends Flying {
public interface Phantom extends Flying, Enemy {
/**
* @return The size of the phantom

View file

@ -4,7 +4,7 @@ import org.bukkit.block.BlockFace;
import org.bukkit.material.Colorable;
import org.jetbrains.annotations.NotNull;
public interface Shulker extends Golem, Colorable {
public interface Shulker extends Golem, Colorable, Enemy {
/**
* Gets the peek state of the shulker between 0.0 and 1.0.

View file

@ -3,7 +3,7 @@ package org.bukkit.entity;
/**
* Represents a Slime.
*/
public interface Slime extends Mob {
public interface Slime extends Mob, Enemy {
/**
* @return The size of the slime