summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftMappable.java19
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java31
2 files changed, 5 insertions, 45 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftMappable.java b/src/main/java/org/bukkit/craftbukkit/CraftMappable.java
deleted file mode 100644
index da0c2bce..00000000
--- a/src/main/java/org/bukkit/craftbukkit/CraftMappable.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.bukkit.craftbukkit;
-
-import org.bukkit.craftbukkit.entity.CraftEntity;
-
-/**
- * Indicates that an object has a method to get its CraftBukkit-equivalent
- * CraftEntity object from its Minecraft net.minecraft.server.Entity object.
- *
- * @author sk89q
- */
-/**@deprecated*/
-public interface CraftMappable {
- /**
- * Gets the CraftEntity version.
- *
- * @return
- */
- public CraftEntity getCraftEntity();
-}
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java
index de8114fd..a0cff41a 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecart.java
@@ -6,7 +6,7 @@ import org.bukkit.entity.Minecart;
/**
* A minecart.
- *
+ *
* @author sk89q
*/
public class CraftMinecart extends CraftVehicle implements Minecart {
@@ -18,18 +18,18 @@ public class CraftMinecart extends CraftVehicle implements Minecart {
Minecart(0),
StorageMinecart(1),
PoweredMinecart(2);
-
+
private final int id;
-
+
private Type(int id) {
this.id = id;
}
-
+
public int getId() {
return id;
}
}
-
+
protected EntityMinecart minecart;
public CraftMinecart(CraftServer server, EntityMinecart entity) {
@@ -44,27 +44,6 @@ public class CraftMinecart extends CraftVehicle implements Minecart {
public int getDamage() {
return minecart.a;
}
-
- /**
- * Internal function to convert an MC entity to an appropriate CraftBukkit
- * entity.
- *
- * @param server
- * @param minecart
- * @return
- *
- * @deprecated
- */
- public static CraftMinecart getCraftMinecart(CraftServer server,
- EntityMinecart minecart) {
- if (minecart.d == Type.StorageMinecart.getId()) {
- return new CraftStorageMinecart(server, minecart);
- } else if (minecart.d == Type.PoweredMinecart.getId()) {
- return new CraftPoweredMinecart(server, minecart);
- } else {
- return new CraftMinecart(server, minecart);
- }
- }
@Override
public String toString() {