13
0
geforkt von Mirrors/Paper

SPIGOT-7221: Add Enemy (Entity) interface

By: ShaneBee <shanebolenback@me.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2022-12-31 10:23:59 +11:00
Ursprung 9048c2fc06
Commit 5c925130eb
8 geänderte Dateien mit 13 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -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.

Datei anzeigen

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

Datei anzeigen

@ -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

Datei anzeigen

@ -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.

Datei anzeigen

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

Datei anzeigen

@ -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

Datei anzeigen

@ -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.

Datei anzeigen

@ -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