Implement Horse API. Adds BUKKIT-4424
API has been added to interface with Horses and to modify their inventories. Horse entities will now be recognized with the type EntityType.HORSE, and will no longer be UNKNOWN. HorseJumpEvent, EntityDamageEvent, and EntityTameEvent are all correctly fired for horses. This commit fixes BUKKIT-4393.
This commit is contained in:
@@ -906,6 +906,8 @@ public class CraftWorld implements World {
|
||||
// need a net server handler for this one
|
||||
} else if (Sheep.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntitySheep(world);
|
||||
} else if (Horse.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntityHorse(world);
|
||||
} else if (Skeleton.class.isAssignableFrom(clazz)) {
|
||||
entity = new EntitySkeleton(world);
|
||||
} else if (Slime.class.isAssignableFrom(clazz)) {
|
||||
|
||||
Reference in New Issue
Block a user