From 6a3b096fb855298a70c9492d0f564bc71bb6a823 Mon Sep 17 00:00:00 2001 From: Andrew Ardill Date: Mon, 17 Jan 2011 16:17:16 +0800 Subject: 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(). --- src/main/java/net/minecraft/server/EntityFallingSand.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/net/minecraft/server/EntityFallingSand.java') 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() {} -- cgit v1.2.3