mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
SPIGOT-7221: Add Enemy (Entity) interface
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
parent
9048c2fc06
commit
5c925130eb
8 changed files with 13 additions and 7 deletions
|
@ -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.
|
||||
|
|
6
paper-api/src/main/java/org/bukkit/entity/Enemy.java
Normal file
6
paper-api/src/main/java/org/bukkit/entity/Enemy.java
Normal file
|
@ -0,0 +1,6 @@
|
|||
package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents an Enemy
|
||||
*/
|
||||
public interface Enemy extends LivingEntity {}
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -3,4 +3,4 @@ package org.bukkit.entity;
|
|||
/**
|
||||
* Represents a Monster.
|
||||
*/
|
||||
public interface Monster extends Creature {}
|
||||
public interface Monster extends Creature, Enemy {}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue