SPIGOT-7221: Add Enemy (Entity) interface
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
/**
|
/**
|
||||||
* Represents an Ender Dragon
|
* 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.
|
* 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.
|
* Represents a Ghast.
|
||||||
*/
|
*/
|
||||||
public interface Ghast extends Flying {
|
public interface Ghast extends Flying, Enemy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether the Ghast is charging
|
* Gets whether the Ghast is charging
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package org.bukkit.entity;
|
|||||||
/**
|
/**
|
||||||
* Represents a Hoglin.
|
* Represents a Hoglin.
|
||||||
*/
|
*/
|
||||||
public interface Hoglin extends Animals {
|
public interface Hoglin extends Animals, Enemy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether the hoglin is immune to zombification.
|
* Gets whether the hoglin is immune to zombification.
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ package org.bukkit.entity;
|
|||||||
/**
|
/**
|
||||||
* Represents a Monster.
|
* 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.
|
* Represents a phantom.
|
||||||
*/
|
*/
|
||||||
public interface Phantom extends Flying {
|
public interface Phantom extends Flying, Enemy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The size of the phantom
|
* @return The size of the phantom
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import org.bukkit.block.BlockFace;
|
|||||||
import org.bukkit.material.Colorable;
|
import org.bukkit.material.Colorable;
|
||||||
import org.jetbrains.annotations.NotNull;
|
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.
|
* Gets the peek state of the shulker between 0.0 and 1.0.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package org.bukkit.entity;
|
|||||||
/**
|
/**
|
||||||
* Represents a Slime.
|
* Represents a Slime.
|
||||||
*/
|
*/
|
||||||
public interface Slime extends Mob {
|
public interface Slime extends Mob, Enemy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The size of the slime
|
* @return The size of the slime
|
||||||
|
|||||||
Reference in New Issue
Block a user