mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
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:
1 parent
431f2f62cf
commit
6a3b096fb8
24 files changed
+154
-13
No files matched your search
@@ -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() {}
|
||||
|
||||
Reference in new issue
Block a user