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/ --- .../minecraft/server/BlockDaylightDetector.java | 72 ---------------------- 1 file changed, 72 deletions(-) delete mode 100644 src/main/java/net/minecraft/server/BlockDaylightDetector.java (limited to 'src/main/java/net/minecraft/server/BlockDaylightDetector.java') diff --git a/src/main/java/net/minecraft/server/BlockDaylightDetector.java b/src/main/java/net/minecraft/server/BlockDaylightDetector.java deleted file mode 100644 index 96e9c37e..00000000 --- a/src/main/java/net/minecraft/server/BlockDaylightDetector.java +++ /dev/null @@ -1,72 +0,0 @@ -package net.minecraft.server; - -import java.util.Random; - -public class BlockDaylightDetector extends BlockContainer { - - private IIcon[] a = new IIcon[2]; - - public BlockDaylightDetector() { - super(Material.WOOD); - this.a(0.0F, 0.0F, 0.0F, 1.0F, 0.375F, 1.0F); - this.a(CreativeModeTab.d); - } - - public void updateShape(IBlockAccess iblockaccess, int i, int j, int k) { - this.a(0.0F, 0.0F, 0.0F, 1.0F, 0.375F, 1.0F); - } - - public int b(IBlockAccess iblockaccess, int i, int j, int k, int l) { - return iblockaccess.getData(i, j, k); - } - - public void a(World world, int i, int j, int k, Random random) {} - - public void doPhysics(World world, int i, int j, int k, Block block) {} - - public void onPlace(World world, int i, int j, int k) {} - - public void e(World world, int i, int j, int k) { - if (!world.worldProvider.g) { - int l = world.getData(i, j, k); - int i1 = world.b(EnumSkyBlock.SKY, i, j, k) - world.j; - float f = world.d(1.0F); - - if (f < 3.1415927F) { - f += (0.0F - f) * 0.2F; - } else { - f += (6.2831855F - f) * 0.2F; - } - - i1 = Math.round((float) i1 * MathHelper.cos(f)); - if (i1 < 0) { - i1 = 0; - } - - if (i1 > 15) { - i1 = 15; - } - - if (l != i1) { - i1 = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, i, j, k, l, i1).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent - world.setData(i, j, k, i1, 3); - } - } - } - - public boolean d() { - return false; - } - - public boolean c() { - return false; - } - - public boolean isPowerSource() { - return true; - } - - public TileEntity a(World world, int i) { - return new TileEntityLightDetector(); - } -} -- cgit v1.2.3