From a7465021df8dc2eef07bab783ab3eb06dd0bc90e Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Fri, 12 Sep 2014 20:59:42 +0200 Subject: [PATCH] Remove the nms LightUtil. Only used by one plugin. --- .../massivecore/util/LightUtil.java | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/com/massivecraft/massivecore/util/LightUtil.java diff --git a/src/com/massivecraft/massivecore/util/LightUtil.java b/src/com/massivecraft/massivecore/util/LightUtil.java deleted file mode 100644 index c90b3f65..00000000 --- a/src/com/massivecraft/massivecore/util/LightUtil.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.massivecraft.massivecore.util; - -import net.minecraft.server.v1_7_R4.WorldServer; - -import org.bukkit.World; -import org.bukkit.block.Block; -import org.bukkit.craftbukkit.v1_7_R4.CraftWorld; - -/** - * Find the method by going through CraftBlock.setTypeId() - * The method should look something like this: - * - * - public boolean t(int i, int j, int k) { - boolean flag = false; - - if (!this.worldProvider.g) { - flag |= this.c(EnumSkyBlock.SKY, i, j, k); - } - - flag |= this.c(EnumSkyBlock.BLOCK, i, j, k); - return flag; - } - * - */ -public class LightUtil -{ - // -------------------------------------------- // - // RECALC LIGHT LEVEL AT - // -------------------------------------------- // - // This method will update the light level for the block. - // It will however only work properly if all chunks that are around the chunk the block is in are loaded. - - public static void recalcLightLevelAt(Block block) - { - recalcLightLevelAt(block.getWorld(), block.getX(), block.getY(), block.getZ()); - } - - public static void recalcLightLevelAt(World world, int x, int y, int z) - { - CraftWorld cworld = (CraftWorld)world; - WorldServer worldServer = cworld.getHandle(); - worldServer.t(x, y, z); - } - -}