summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/BlockCactus.java2
-rw-r--r--src/main/java/net/minecraft/server/EntityEgg.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftArrow.java30
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftBoat.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftEgg.java30
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftEntity.java4
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftHumanEntity.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftItemDrop.java46
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftLivingEntity.java12
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftMinecart.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftPlayer.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftPoweredMinecart.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java1
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftSnowball.java30
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftStorageMinecart.java2
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftVehicle.java4
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java12
17 files changed, 93 insertions, 92 deletions
diff --git a/src/main/java/net/minecraft/server/BlockCactus.java b/src/main/java/net/minecraft/server/BlockCactus.java
index 569c5be9..5806a8a6 100644
--- a/src/main/java/net/minecraft/server/BlockCactus.java
+++ b/src/main/java/net/minecraft/server/BlockCactus.java
@@ -1,7 +1,7 @@
package net.minecraft.server;
// CraftBukkit start
-import org.bukkit.LivingEntity;
+import org.bukkit.entity.LivingEntity;
import org.bukkit.craftbukkit.CraftBlock;
import org.bukkit.craftbukkit.CraftEntity;
import org.bukkit.craftbukkit.CraftLivingEntity;
diff --git a/src/main/java/net/minecraft/server/EntityEgg.java b/src/main/java/net/minecraft/server/EntityEgg.java
index 9aa4f326..12c4777f 100644
--- a/src/main/java/net/minecraft/server/EntityEgg.java
+++ b/src/main/java/net/minecraft/server/EntityEgg.java
@@ -2,7 +2,7 @@ package net.minecraft.server;
import java.util.List;
import java.util.Random;
-import org.bukkit.MobType;
+import org.bukkit.entity.MobType;
import org.bukkit.craftbukkit.CraftPlayer;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.event.Event.Type;
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftArrow.java b/src/main/java/org/bukkit/craftbukkit/CraftArrow.java
index b9dd0c3e..71cb39e1 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftArrow.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftArrow.java
@@ -1,15 +1,15 @@
-package org.bukkit.craftbukkit;
-
-import org.bukkit.Arrow;
-import net.minecraft.server.EntityArrow;
-
-/**
- * Represents an arrow.
- *
- * @author sk89q
- */
-public class CraftArrow extends CraftEntity implements Arrow {
- CraftArrow(CraftServer server, EntityArrow entity) {
- super(server, entity);
- }
-}
+package org.bukkit.craftbukkit;
+
+import org.bukkit.entity.Arrow;
+import net.minecraft.server.EntityArrow;
+
+/**
+ * Represents an arrow.
+ *
+ * @author sk89q
+ */
+public class CraftArrow extends CraftEntity implements Arrow {
+ CraftArrow(CraftServer server, EntityArrow entity) {
+ super(server, entity);
+ }
+}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftBoat.java b/src/main/java/org/bukkit/craftbukkit/CraftBoat.java
index cad1e407..740d4c90 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftBoat.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftBoat.java
@@ -1,7 +1,7 @@
package org.bukkit.craftbukkit;
import net.minecraft.server.EntityBoat;
-import org.bukkit.Boat;
+import org.bukkit.entity.Boat;
/**
* A minecart.
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftEgg.java b/src/main/java/org/bukkit/craftbukkit/CraftEgg.java
index d0a5ee89..5b8fe147 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftEgg.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftEgg.java
@@ -1,15 +1,15 @@
-package org.bukkit.craftbukkit;
-
-import net.minecraft.server.EntityEgg;
-import org.bukkit.Egg;
-
-/**
- * An egg.
- *
- * @author sk89q
- */
-public class CraftEgg extends CraftEntity implements Egg {
- public CraftEgg(CraftServer server, EntityEgg ent) {
- super(server, ent);
- }
-}
+package org.bukkit.craftbukkit;
+
+import net.minecraft.server.EntityEgg;
+import org.bukkit.entity.Egg;
+
+/**
+ * An egg.
+ *
+ * @author sk89q
+ */
+public class CraftEgg extends CraftEntity implements Egg {
+ public CraftEgg(CraftServer server, EntityEgg ent) {
+ super(server, ent);
+ }
+}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/CraftEntity.java
index 1902c1d2..a07cda54 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftEntity.java
@@ -6,7 +6,7 @@ import org.bukkit.Location;
import org.bukkit.Vector;
import org.bukkit.World;
-public abstract class CraftEntity implements org.bukkit.Entity {
+public abstract class CraftEntity implements org.bukkit.entity.Entity {
protected final CraftServer server;
private Entity entity;
@@ -37,7 +37,7 @@ public abstract class CraftEntity implements org.bukkit.Entity {
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
}
- public void teleportTo(org.bukkit.Entity destination) {
+ public void teleportTo(org.bukkit.entity.Entity destination) {
teleportTo(destination.getLocation());
}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/CraftHumanEntity.java
index 5ffd1688..ad2477fc 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftHumanEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftHumanEntity.java
@@ -2,7 +2,7 @@
package org.bukkit.craftbukkit;
import net.minecraft.server.EntityPlayer;
-import org.bukkit.HumanEntity;
+import org.bukkit.entity.HumanEntity;
import org.bukkit.ItemStack;
import org.bukkit.PlayerInventory;
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftItemDrop.java b/src/main/java/org/bukkit/craftbukkit/CraftItemDrop.java
index 0def1825..af21e985 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftItemDrop.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftItemDrop.java
@@ -1,23 +1,23 @@
-package org.bukkit.craftbukkit;
-
-import net.minecraft.server.EntityItem;
-import org.bukkit.ItemDrop;
-import org.bukkit.ItemStack;
-
-/**
- * Represents an item drop.
- *
- * @author sk89q
- */
-public class CraftItemDrop extends CraftEntity implements ItemDrop {
- private EntityItem item;
-
- public CraftItemDrop(CraftServer server, EntityItem ent) {
- super(server, ent);
- this.item = ent;
- }
-
- public ItemStack getItemStack() {
- return new CraftItemStack(item.a);
- }
-}
+package org.bukkit.craftbukkit;
+
+import net.minecraft.server.EntityItem;
+import org.bukkit.entity.ItemDrop;
+import org.bukkit.ItemStack;
+
+/**
+ * Represents an item drop.
+ *
+ * @author sk89q
+ */
+public class CraftItemDrop extends CraftEntity implements ItemDrop {
+ private EntityItem item;
+
+ public CraftItemDrop(CraftServer server, EntityItem ent) {
+ super(server, ent);
+ this.item = ent;
+ }
+
+ public ItemStack getItemStack() {
+ return new CraftItemStack(item.a);
+ }
+}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/CraftLivingEntity.java
index 9964bf9e..31012e4f 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftLivingEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftLivingEntity.java
@@ -7,11 +7,11 @@ import net.minecraft.server.EntityEgg;
import net.minecraft.server.EntityLiving;
import net.minecraft.server.EntitySnowball;
-import org.bukkit.Arrow;
-import org.bukkit.Egg;
-import org.bukkit.LivingEntity;
-import org.bukkit.Snowball;
-import org.bukkit.Vehicle;
+import org.bukkit.entity.Arrow;
+import org.bukkit.entity.Egg;
+import org.bukkit.entity.LivingEntity;
+import org.bukkit.entity.Snowball;
+import org.bukkit.entity.Vehicle;
public class CraftLivingEntity extends CraftEntity implements LivingEntity {
private EntityLiving entity;
@@ -87,7 +87,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
return null;
}
- org.bukkit.Entity vehicle = ((CraftWorld)getWorld()).toCraftEntity(entity.k);
+ org.bukkit.entity.Entity vehicle = ((CraftWorld)getWorld()).toCraftEntity(entity.k);
if (vehicle instanceof Vehicle) {
return (Vehicle)vehicle;
}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftMinecart.java b/src/main/java/org/bukkit/craftbukkit/CraftMinecart.java
index d293e079..86e442ae 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftMinecart.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftMinecart.java
@@ -1,7 +1,7 @@
package org.bukkit.craftbukkit;
import net.minecraft.server.EntityMinecart;
-import org.bukkit.Minecart;
+import org.bukkit.entity.Minecart;
/**
* A minecart.
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/CraftPlayer.java
index ea562fef..e0a1336b 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftPlayer.java
@@ -6,7 +6,7 @@ import net.minecraft.server.EntityPlayer;
import net.minecraft.server.EntityPlayerMP;
import net.minecraft.server.Packet3Chat;
import org.bukkit.Location;
-import org.bukkit.Player;
+import org.bukkit.entity.Player;
public class CraftPlayer extends CraftHumanEntity implements Player {
private EntityPlayerMP entity;
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftPoweredMinecart.java b/src/main/java/org/bukkit/craftbukkit/CraftPoweredMinecart.java
index 2a1a8f1f..84b5707d 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftPoweredMinecart.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftPoweredMinecart.java
@@ -1,7 +1,7 @@
package org.bukkit.craftbukkit;
import net.minecraft.server.EntityMinecart;
-import org.bukkit.PoweredMinecart;
+import org.bukkit.entity.PoweredMinecart;
/**
* A powered minecart.
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index fe76a970..9b94c1fb 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -1,5 +1,6 @@
package org.bukkit.craftbukkit;
+import org.bukkit.entity.Player;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftSnowball.java b/src/main/java/org/bukkit/craftbukkit/CraftSnowball.java
index 1cefa011..d0ebd11d 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftSnowball.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftSnowball.java
@@ -1,15 +1,15 @@
-package org.bukkit.craftbukkit;
-
-import net.minecraft.server.EntitySnowball;
-import org.bukkit.Snowball;
-
-/**
- * A snowball.
- *
- * @author sk89q
- */
-public class CraftSnowball extends CraftEntity implements Snowball {
- public CraftSnowball(CraftServer server, EntitySnowball ent) {
- super(server, ent);
- }
-}
+package org.bukkit.craftbukkit;
+
+import net.minecraft.server.EntitySnowball;
+import org.bukkit.entity.Snowball;
+
+/**
+ * A snowball.
+ *
+ * @author sk89q
+ */
+public class CraftSnowball extends CraftEntity implements Snowball {
+ public CraftSnowball(CraftServer server, EntitySnowball ent) {
+ super(server, ent);
+ }
+}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftStorageMinecart.java b/src/main/java/org/bukkit/craftbukkit/CraftStorageMinecart.java
index 3063482d..c854d8aa 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftStorageMinecart.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftStorageMinecart.java
@@ -3,7 +3,7 @@ package org.bukkit.craftbukkit;
import net.minecraft.server.EntityMinecart;
import org.bukkit.Inventory;
-import org.bukkit.StorageMinecart;
+import org.bukkit.entity.StorageMinecart;
/**
* A storage minecart.
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftVehicle.java b/src/main/java/org/bukkit/craftbukkit/CraftVehicle.java
index ed940d60..e0a24016 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftVehicle.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftVehicle.java
@@ -1,7 +1,7 @@
package org.bukkit.craftbukkit;
-import org.bukkit.Entity;
-import org.bukkit.Vehicle;
+import org.bukkit.entity.Entity;
+import org.bukkit.entity.Vehicle;
/**
* A vehicle.
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 42ef546a..b9609c8e 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -18,16 +18,16 @@ import net.minecraft.server.TileEntity;
import net.minecraft.server.WorldGenBigTree;
import net.minecraft.server.WorldServer;
import net.minecraft.server.WorldGenTrees;
-import org.bukkit.Arrow;
+import org.bukkit.entity.Arrow;
import org.bukkit.Block;
-import org.bukkit.Boat;
+import org.bukkit.entity.Boat;
import org.bukkit.Chunk;
-import org.bukkit.ItemDrop;
+import org.bukkit.entity.ItemDrop;
import org.bukkit.ItemStack;
import org.bukkit.Location;
-import org.bukkit.Minecart;
-import org.bukkit.PoweredMinecart;
-import org.bukkit.StorageMinecart;
+import org.bukkit.entity.Minecart;
+import org.bukkit.entity.PoweredMinecart;
+import org.bukkit.entity.StorageMinecart;
import org.bukkit.Vector;
import org.bukkit.World;