From 24557bc2b37deb6a0edf497d547471832457b1dd Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 26 Nov 2014 08:32:16 +1100 Subject: Update to Minecraft 1.8 For more information please see http://www.spigotmc.org/ --- .../net/minecraft/server/BlockEnderPortal.java | 66 ---------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/main/java/net/minecraft/server/BlockEnderPortal.java (limited to 'src/main/java/net/minecraft/server/BlockEnderPortal.java') diff --git a/src/main/java/net/minecraft/server/BlockEnderPortal.java b/src/main/java/net/minecraft/server/BlockEnderPortal.java deleted file mode 100644 index 0b24c153..00000000 --- a/src/main/java/net/minecraft/server/BlockEnderPortal.java +++ /dev/null @@ -1,66 +0,0 @@ -package net.minecraft.server; - -import java.util.List; -import java.util.Random; - -import org.bukkit.event.entity.EntityPortalEnterEvent; // CraftBukkit - -public class BlockEnderPortal extends BlockContainer { - - public static boolean a; - - protected BlockEnderPortal(Material material) { - super(material); - this.a(1.0F); - } - - public TileEntity a(World world, int i) { - return new TileEntityEnderPortal(); - } - - public void updateShape(IBlockAccess iblockaccess, int i, int j, int k) { - float f = 0.0625F; - - this.a(0.0F, 0.0F, 0.0F, 1.0F, f, 1.0F); - } - - public void a(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, List list, Entity entity) {} - - public boolean c() { - return false; - } - - public boolean d() { - return false; - } - - public int a(Random random) { - return 0; - } - - public void a(World world, int i, int j, int k, Entity entity) { - if (entity.vehicle == null && entity.passenger == null && !world.isStatic) { - // CraftBukkit start - Entity in portal - EntityPortalEnterEvent event = new EntityPortalEnterEvent(entity.getBukkitEntity(), new org.bukkit.Location(world.getWorld(), i, j, k)); - world.getServer().getPluginManager().callEvent(event); - // CraftBukkit end - entity.b(1); - } - } - - public int b() { - return -1; - } - - public void onPlace(World world, int i, int j, int k) { - if (!a) { - if (world.worldProvider.dimension != 0) { - world.setAir(i, j, k); - } - } - } - - public MaterialMapColor f(int i) { - return MaterialMapColor.J; - } -} -- cgit v1.2.3