Added interfaces for every entity type. Most (if not all) are empty.

These are place holders at the moment, to be used when determining
entity type. Further functionality could be added to these interfaces
later.

By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-01-17 16:28:28 +08:00
parent 3b1fe7dcf7
commit 6ab2ec9f85
22 changed files with 297 additions and 0 deletions

View file

@ -0,0 +1,11 @@
package org.bukkit.entity;
/**
* Represents an Animal.
*
* @author Cogito
*
*/
public interface Animals extends Creature{
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Chicken.
*
* @author Cogito
*
*/
public interface Chicken extends Animals {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Cow.
*
* @author Cogito
*
*/
public interface Cow extends Animals {
}

View file

@ -0,0 +1,10 @@
package org.bukkit.entity;
/**
* Represents a Creature. Any LivingEntity that is not human is a Creature.
* @author Cogito
*
*/
public interface Creature extends LivingEntity{
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Creeper.
*
* @author Cogito
*
*/
public interface Creeper extends Monster {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents Falling Sand.
*
* @author Cogito
*
*/
public interface FallingSand extends Entity {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Flying Entity.
*
* @author Cogito
*
*/
public interface Flying extends LivingEntity {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Ghast.
*
* @author Cogito
*
*/
public interface Ghast extends Flying {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Giant.
*
* @author Cogito
*
*/
public interface Giant extends Monster {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents an Item.
*
* @author Cogito
*
*/
public interface Item extends Entity {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Monster.
*
* @author Cogito
*
*/
public interface Monster extends Creature {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Painting.
*
* @author Cogito
*
*/
public interface Painting extends Entity {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Pig.
*
* @author Cogito
*
*/
public interface Pig extends Animals {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Pig Zombie.
*
* @author Cogito
*
*/
public interface PigZombie extends Zombie {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Sheep.
*
* @author Cogito
*
*/
public interface Sheep extends Animals {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Skeleton.
*
* @author Cogito
*
*/
public interface Skeleton extends Monster {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Slime.
*
* @author Cogito
*
*/
public interface Slime extends LivingEntity {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Spider.
*
* @author Cogito
*
*/
public interface Spider extends Monster {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Squid.
*
* @author Cogito
*
*/
public interface Squid extends WaterMob {
}

View file

@ -0,0 +1,14 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Primed TNT.
*
* @author Cogito
*
*/
public interface TNTPrimed extends Entity {
}

View file

@ -0,0 +1,13 @@
/**
*
*/
package org.bukkit.entity;
/**
* Represents a Water Mob
* @author Cogito
*
*/
public interface WaterMob extends Creature {
}

View file

@ -0,0 +1,11 @@
package org.bukkit.entity;
/**
* Represents a Zombie.
*
* @author Cogito
*
*/
public interface Zombie extends Monster{
}