Implemented World.spawnBoat(), added CraftMappable interface that defines a method to get an org.bukkit.craftbukkit.CraftEntity from implementing net.minecart.server.Entity entities, changed CraftWorld.toCraftEntity() to use this new interface for boats and minecarts.

This commit is contained in:
sk89q
2011-01-07 14:01:37 -08:00
parent eb2cc2da4a
commit 6d6668aaeb
4 changed files with 44 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
package org.bukkit.craftbukkit;
/**
* Indicates that an object has a method to get its CraftBukkit-equivalent
* CraftEntity object from its Minecraft net.minecraft.server.Entity object.
*
* @author sk89q
*/
public interface CraftMappable {
/**
* Gets the CraftEntity version.
*
* @return
*/
public CraftEntity getCraftEntity();
}