Added various new 1.9 entities, blocks and items

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-10-29 09:43:19 +01:00
parent 41fba5743b
commit bdc3ffafbe
15 changed files with 157 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a Blaze monster
*/
public interface Blaze extends Monster {
}

View File

@@ -0,0 +1,13 @@
package org.bukkit.entity;
/**
* Represents a single part of a {@link ComplexLivingEntity}
*/
public interface ComplexEntityPart extends Entity {
/**
* Gets the parent {@link ComplexLivingEntity} of this part.
*
* @return Parent complex entity
*/
public ComplexLivingEntity getParent();
}

View File

@@ -0,0 +1,15 @@
package org.bukkit.entity;
import java.util.Set;
/**
* Represents a complex living entity - one that is made up of various smaller parts
*/
public interface ComplexLivingEntity extends LivingEntity {
/**
* Gets a list of parts that belong to this complex entity
*
* @return List of parts
*/
public Set<ComplexEntityPart> getParts();
}

View File

@@ -22,7 +22,11 @@ public enum CreatureType {
WOLF("Wolf", Wolf.class),
CAVE_SPIDER("CaveSpider", CaveSpider.class),
ENDERMAN("Enderman", Enderman.class),
SILVERFISH("Silverfish", Silverfish.class);
SILVERFISH("Silverfish", Silverfish.class),
ENDER_DRAGON("EnderDragon", EnderDragon.class),
VILLAGER("Villager", Villager.class),
BLAZE("Blaze", Blaze.class),
MUSHROOM_COW("MushroomCow", MushroomCow.class);
private String name;
private Class<? extends Entity> clazz;

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents an Ender Dragon
*/
public interface EnderDragon extends ComplexLivingEntity {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents an ender dragon part
*/
public interface EnderDragonPart extends ComplexEntityPart {
public EnderDragon getParent();
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents an Ender Pearl entity
*/
public interface EnderPearl extends Projectile {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents an Ender Signal, which is often created upon throwing an ender eye
*/
public interface EnderSignal extends Entity {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a mushroom {@link Cow}
*/
public interface MushroomCow extends Cow {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a non-player character
*/
public interface NPC extends Creature {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a small {@link Fireball}
*/
public interface SmallFireball extends Fireball {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a snowman entity
*/
public interface Snowman extends Creature {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a thrown potion bottle
*/
public interface ThrownPotion extends Projectile {
}

View File

@@ -0,0 +1,8 @@
package org.bukkit.entity;
/**
* Represents a villager NPC
*/
public interface Villager extends NPC {
}