mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Implemented World.spawnBoat(), added CraftMappable interface that defines a method to get an org.bukkit.craftbukkit.CraftEntity from implementing net.minecart.server.Entity entities, changed CraftWorld.toCraftEntity() to use this new interface for boats and minecarts.
This commit is contained in:
@@ -4,15 +4,17 @@ import java.util.List;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Vector;
|
||||
import org.bukkit.craftbukkit.CraftEntity;
|
||||
import org.bukkit.craftbukkit.CraftMappable;
|
||||
import org.bukkit.craftbukkit.CraftMinecart;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.event.Event.Type;
|
||||
import org.bukkit.event.vehicle.*;
|
||||
|
||||
public class EntityMinecart extends Entity
|
||||
implements IInventory {
|
||||
implements IInventory, CraftMappable {
|
||||
|
||||
public CraftMinecart minecart;
|
||||
private CraftMinecart minecart;
|
||||
|
||||
private ItemStack ak[];
|
||||
public int a;
|
||||
@@ -99,7 +101,11 @@ public class EntityMinecart extends Entity
|
||||
private double derailedZ = 0.5;
|
||||
private double flyingX = 0.94999998807907104;
|
||||
private double flyingY = 0.94999998807907104;
|
||||
private double flyingZ = 0.94999998807907104;
|
||||
private double flyingZ = 0.94999998807907104;
|
||||
|
||||
public CraftEntity getCraftEntity() {
|
||||
return minecart;
|
||||
}
|
||||
|
||||
public EntityMinecart(World world) {
|
||||
super(world);
|
||||
|
Reference in New Issue
Block a user