mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
created getBukkitEntity() in minecraft.server.Entity
This returns a protected field that is set in the constructor of each minecraft.server.Entity to a new CraftEntity of some specific type.
This commit is contained in:
committed by
Dinner Bone
parent
95cb03b50e
commit
2de3e2e7e4
@@ -34,6 +34,10 @@ public class EntitySnowball extends Entity {
|
||||
a = 0;
|
||||
am = 0;
|
||||
a(0.25F, 0.25F);
|
||||
//CraftBukkit start
|
||||
CraftServer server = ((WorldServer) this.l).getServer();
|
||||
this.bukkitEntity = new CraftSnowball(server, this);
|
||||
//CraftBukkit end
|
||||
}
|
||||
|
||||
protected void a() {}
|
||||
|
Reference in New Issue
Block a user