summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityFallingSand.java
diff options
context:
space:
mode:
authorAndrew Ardill <andrew.ardill@gmail.com>2011-01-17 16:17:16 +0800
committerDinner Bone <dinnerbone@dinnerbone.com>2011-01-18 00:13:33 +0800
commit6a3b096fb855298a70c9492d0f564bc71bb6a823 (patch)
treebc7e3a402acccb34255e86f5d4105790af35bf36 /src/main/java/net/minecraft/server/EntityFallingSand.java
parent431f2f62cfbee8dd9a6ff5dce858bb09e5b70e31 (diff)
downloadcraftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar
craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar.gz
craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar.lz
craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar.xz
craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.zip
Addition of all Entity classes.
Each Entity creates a corresponding instance of a Craft Entity, to be used whenever sending instances to an event handler with getBukkitEntity().
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityFallingSand.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityFallingSand.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityFallingSand.java b/src/main/java/net/minecraft/server/EntityFallingSand.java
index b384f01c..bc0a106a 100644
--- a/src/main/java/net/minecraft/server/EntityFallingSand.java
+++ b/src/main/java/net/minecraft/server/EntityFallingSand.java
@@ -1,5 +1,8 @@
package net.minecraft.server;
+import org.bukkit.craftbukkit.CraftServer;
+import org.bukkit.craftbukkit.entity.CraftFallingSand;
+
public class EntityFallingSand extends Entity {
public int a;
@@ -25,6 +28,10 @@ public class EntityFallingSand extends Entity {
m = d;
n = d1;
o = d2;
+ //CraftBukkit start
+ CraftServer server = ((WorldServer) this.l).getServer();
+ this.bukkitEntity = new CraftFallingSand(server, this);
+ //CraftBukkit end
}
protected void a() {}