mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Reworked getEntity; Hi instanceof, bay 16 classes
This commit is contained in:
1 parent
75ba9a0f25
commit
b2a0c5a2ae
32 files changed
+85
-1797
No files matched your search
Regular → Executable
+1
-8
@@ -3,7 +3,6 @@ package net.minecraft.server;
|
||||
import java.util.List;
|
||||
|
||||
// CraftBukkit start
|
||||
import org.bukkit.craftbukkit.entity.CraftFish;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.event.entity.EntityDamageByProjectileEvent;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
@@ -33,18 +32,12 @@ public class EntityFish extends Entity {
|
||||
public EntityFish(World world) {
|
||||
super(world);
|
||||
this.a(0.25F, 0.25F);
|
||||
|
||||
//CraftBukkit start
|
||||
CraftServer server = ((WorldServer) this.world).getServer();
|
||||
this.bukkitEntity = new CraftFish(server, this);
|
||||
//CraftBukkit end
|
||||
}
|
||||
|
||||
protected void a() {}
|
||||
|
||||
public EntityFish(World world, EntityHuman entityhuman) {
|
||||
this(world); // CraftBukkit super->this so we assign the entity
|
||||
|
||||
super(world);
|
||||
this.b = entityhuman;
|
||||
this.b.hookedFish = this;
|
||||
this.a(0.25F, 0.25F);
|
||||
|
||||
Reference in new issue
Block a user