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().
This commit is contained in:
committed by
Dinner Bone
parent
431f2f62cf
commit
6a3b096fb8
@@ -2,6 +2,9 @@ package net.minecraft.server;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.craftbukkit.entity.CraftPainting;
|
||||
|
||||
public class EntityPainting extends Entity {
|
||||
|
||||
private int f;
|
||||
@@ -17,6 +20,10 @@ public class EntityPainting extends Entity {
|
||||
a = 0;
|
||||
H = 0.0F;
|
||||
a(0.5F, 0.5F);
|
||||
//CraftBukkit start
|
||||
CraftServer server = ((WorldServer) this.l).getServer();
|
||||
this.bukkitEntity = new CraftPainting(server, this);
|
||||
//CraftBukkit end
|
||||
}
|
||||
|
||||
public EntityPainting(World world, int i, int j, int k, int l) {
|
||||
|
||||
Reference in New Issue
Block a user