geforkt von Mirrors/Paper
All entity stuff in org.bukkit moved to org.bukkit.entity
Dieser Commit ist enthalten in:
Ursprung
34674e7793
Commit
d501bbf1a2
@ -1,7 +1,7 @@
|
|||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
import org.bukkit.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.craftbukkit.CraftBlock;
|
import org.bukkit.craftbukkit.CraftBlock;
|
||||||
import org.bukkit.craftbukkit.CraftEntity;
|
import org.bukkit.craftbukkit.CraftEntity;
|
||||||
import org.bukkit.craftbukkit.CraftLivingEntity;
|
import org.bukkit.craftbukkit.CraftLivingEntity;
|
||||||
|
@ -2,7 +2,7 @@ package net.minecraft.server;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import org.bukkit.MobType;
|
import org.bukkit.entity.MobType;
|
||||||
import org.bukkit.craftbukkit.CraftPlayer;
|
import org.bukkit.craftbukkit.CraftPlayer;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.event.Event.Type;
|
import org.bukkit.event.Event.Type;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import org.bukkit.Arrow;
|
import org.bukkit.entity.Arrow;
|
||||||
import net.minecraft.server.EntityArrow;
|
import net.minecraft.server.EntityArrow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityBoat;
|
import net.minecraft.server.EntityBoat;
|
||||||
import org.bukkit.Boat;
|
import org.bukkit.entity.Boat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A minecart.
|
* A minecart.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityEgg;
|
import net.minecraft.server.EntityEgg;
|
||||||
import org.bukkit.Egg;
|
import org.bukkit.entity.Egg;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An egg.
|
* An egg.
|
||||||
|
@ -6,7 +6,7 @@ import org.bukkit.Location;
|
|||||||
import org.bukkit.Vector;
|
import org.bukkit.Vector;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
|
|
||||||
public abstract class CraftEntity implements org.bukkit.Entity {
|
public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||||
protected final CraftServer server;
|
protected final CraftServer server;
|
||||||
private Entity entity;
|
private Entity entity;
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ public abstract class CraftEntity implements org.bukkit.Entity {
|
|||||||
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void teleportTo(org.bukkit.Entity destination) {
|
public void teleportTo(org.bukkit.entity.Entity destination) {
|
||||||
teleportTo(destination.getLocation());
|
teleportTo(destination.getLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityPlayer;
|
import net.minecraft.server.EntityPlayer;
|
||||||
import org.bukkit.HumanEntity;
|
import org.bukkit.entity.HumanEntity;
|
||||||
import org.bukkit.ItemStack;
|
import org.bukkit.ItemStack;
|
||||||
import org.bukkit.PlayerInventory;
|
import org.bukkit.PlayerInventory;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityItem;
|
import net.minecraft.server.EntityItem;
|
||||||
import org.bukkit.ItemDrop;
|
import org.bukkit.entity.ItemDrop;
|
||||||
import org.bukkit.ItemStack;
|
import org.bukkit.ItemStack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,11 +7,11 @@ import net.minecraft.server.EntityEgg;
|
|||||||
import net.minecraft.server.EntityLiving;
|
import net.minecraft.server.EntityLiving;
|
||||||
import net.minecraft.server.EntitySnowball;
|
import net.minecraft.server.EntitySnowball;
|
||||||
|
|
||||||
import org.bukkit.Arrow;
|
import org.bukkit.entity.Arrow;
|
||||||
import org.bukkit.Egg;
|
import org.bukkit.entity.Egg;
|
||||||
import org.bukkit.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.Snowball;
|
import org.bukkit.entity.Snowball;
|
||||||
import org.bukkit.Vehicle;
|
import org.bukkit.entity.Vehicle;
|
||||||
|
|
||||||
public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||||
private EntityLiving entity;
|
private EntityLiving entity;
|
||||||
@ -87,7 +87,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
org.bukkit.Entity vehicle = ((CraftWorld)getWorld()).toCraftEntity(entity.k);
|
org.bukkit.entity.Entity vehicle = ((CraftWorld)getWorld()).toCraftEntity(entity.k);
|
||||||
if (vehicle instanceof Vehicle) {
|
if (vehicle instanceof Vehicle) {
|
||||||
return (Vehicle)vehicle;
|
return (Vehicle)vehicle;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityMinecart;
|
import net.minecraft.server.EntityMinecart;
|
||||||
import org.bukkit.Minecart;
|
import org.bukkit.entity.Minecart;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A minecart.
|
* A minecart.
|
||||||
|
@ -6,7 +6,7 @@ import net.minecraft.server.EntityPlayer;
|
|||||||
import net.minecraft.server.EntityPlayerMP;
|
import net.minecraft.server.EntityPlayerMP;
|
||||||
import net.minecraft.server.Packet3Chat;
|
import net.minecraft.server.Packet3Chat;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class CraftPlayer extends CraftHumanEntity implements Player {
|
public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
private EntityPlayerMP entity;
|
private EntityPlayerMP entity;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityMinecart;
|
import net.minecraft.server.EntityMinecart;
|
||||||
import org.bukkit.PoweredMinecart;
|
import org.bukkit.entity.PoweredMinecart;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A powered minecart.
|
* A powered minecart.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntitySnowball;
|
import net.minecraft.server.EntitySnowball;
|
||||||
import org.bukkit.Snowball;
|
import org.bukkit.entity.Snowball;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A snowball.
|
* A snowball.
|
||||||
|
@ -3,7 +3,7 @@ package org.bukkit.craftbukkit;
|
|||||||
import net.minecraft.server.EntityMinecart;
|
import net.minecraft.server.EntityMinecart;
|
||||||
|
|
||||||
import org.bukkit.Inventory;
|
import org.bukkit.Inventory;
|
||||||
import org.bukkit.StorageMinecart;
|
import org.bukkit.entity.StorageMinecart;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A storage minecart.
|
* A storage minecart.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import org.bukkit.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.Vehicle;
|
import org.bukkit.entity.Vehicle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A vehicle.
|
* A vehicle.
|
||||||
|
@ -18,16 +18,16 @@ import net.minecraft.server.TileEntity;
|
|||||||
import net.minecraft.server.WorldGenBigTree;
|
import net.minecraft.server.WorldGenBigTree;
|
||||||
import net.minecraft.server.WorldServer;
|
import net.minecraft.server.WorldServer;
|
||||||
import net.minecraft.server.WorldGenTrees;
|
import net.minecraft.server.WorldGenTrees;
|
||||||
import org.bukkit.Arrow;
|
import org.bukkit.entity.Arrow;
|
||||||
import org.bukkit.Block;
|
import org.bukkit.Block;
|
||||||
import org.bukkit.Boat;
|
import org.bukkit.entity.Boat;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.ItemDrop;
|
import org.bukkit.entity.ItemDrop;
|
||||||
import org.bukkit.ItemStack;
|
import org.bukkit.ItemStack;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Minecart;
|
import org.bukkit.entity.Minecart;
|
||||||
import org.bukkit.PoweredMinecart;
|
import org.bukkit.entity.PoweredMinecart;
|
||||||
import org.bukkit.StorageMinecart;
|
import org.bukkit.entity.StorageMinecart;
|
||||||
import org.bukkit.Vector;
|
import org.bukkit.Vector;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren