mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
SPIGOT-7221: Add Enemy (Entity) interface
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
parent
a5b2050ee5
commit
2d8592203b
8 changed files with 16 additions and 7 deletions
|
@ -15,7 +15,7 @@ import org.bukkit.entity.EnderDragon;
|
|||
import org.bukkit.entity.EnderDragon.Phase;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
public class CraftEnderDragon extends CraftMob implements EnderDragon {
|
||||
public class CraftEnderDragon extends CraftMob implements EnderDragon, CraftEnemy {
|
||||
|
||||
public CraftEnderDragon(CraftServer server, EntityEnderDragon entity) {
|
||||
super(server, entity);
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
package org.bukkit.craftbukkit.entity;
|
||||
|
||||
import net.minecraft.world.entity.monster.IMonster;
|
||||
import org.bukkit.entity.Enemy;
|
||||
|
||||
public interface CraftEnemy extends Enemy {
|
||||
|
||||
IMonster getHandle();
|
||||
}
|
|
@ -5,7 +5,7 @@ import org.bukkit.craftbukkit.CraftServer;
|
|||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Ghast;
|
||||
|
||||
public class CraftGhast extends CraftFlying implements Ghast {
|
||||
public class CraftGhast extends CraftFlying implements Ghast, CraftEnemy {
|
||||
|
||||
public CraftGhast(CraftServer server, EntityGhast entity) {
|
||||
super(server, entity);
|
||||
|
|
|
@ -6,7 +6,7 @@ import org.bukkit.craftbukkit.CraftServer;
|
|||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Hoglin;
|
||||
|
||||
public class CraftHoglin extends CraftAnimals implements Hoglin {
|
||||
public class CraftHoglin extends CraftAnimals implements Hoglin, CraftEnemy {
|
||||
|
||||
public CraftHoglin(CraftServer server, EntityHoglin entity) {
|
||||
super(server, entity);
|
||||
|
|
|
@ -4,7 +4,7 @@ import net.minecraft.world.entity.monster.EntityMonster;
|
|||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.Monster;
|
||||
|
||||
public class CraftMonster extends CraftCreature implements Monster {
|
||||
public class CraftMonster extends CraftCreature implements Monster, CraftEnemy {
|
||||
|
||||
public CraftMonster(CraftServer server, EntityMonster entity) {
|
||||
super(server, entity);
|
||||
|
|
|
@ -5,7 +5,7 @@ import org.bukkit.craftbukkit.CraftServer;
|
|||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Phantom;
|
||||
|
||||
public class CraftPhantom extends CraftFlying implements Phantom {
|
||||
public class CraftPhantom extends CraftFlying implements Phantom, CraftEnemy {
|
||||
|
||||
public CraftPhantom(CraftServer server, EntityPhantom entity) {
|
||||
super(server, entity);
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.bukkit.craftbukkit.block.CraftBlock;
|
|||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Shulker;
|
||||
|
||||
public class CraftShulker extends CraftGolem implements Shulker {
|
||||
public class CraftShulker extends CraftGolem implements Shulker, CraftEnemy {
|
||||
|
||||
public CraftShulker(CraftServer server, EntityShulker entity) {
|
||||
super(server, entity);
|
||||
|
|
|
@ -5,7 +5,7 @@ import org.bukkit.craftbukkit.CraftServer;
|
|||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Slime;
|
||||
|
||||
public class CraftSlime extends CraftMob implements Slime {
|
||||
public class CraftSlime extends CraftMob implements Slime, CraftEnemy {
|
||||
|
||||
public CraftSlime(CraftServer server, EntitySlime entity) {
|
||||
super(server, entity);
|
||||
|
|
Loading…
Reference in a new issue