Code cleanup

Removed unused imports
Fixed invalid logger in CloakManager
This commit is contained in:
LemADEC 2015-07-26 23:13:41 +02:00
parent e48aac8c79
commit a892959cfb
9 changed files with 3 additions and 23 deletions

View file

@ -6,7 +6,6 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cr0s.warpdrive.WarpDrive;
public class BlockIridium extends Block

View file

@ -9,10 +9,9 @@ import net.minecraft.network.Packet;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import com.sun.media.jfxmedia.logging.Logger;
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
/**
* Cloak manager stores cloaking devices covered areas
@ -71,12 +70,7 @@ public class CloakManager {
for (int i = 0; i < this.cloaks.size(); i++) {
if (this.cloaks.get(i).coreX == x && this.cloaks.get(i).coreY == y && this.cloaks.get(i).coreZ == z
&& this.cloaks.get(i).dimensionId == worldObj.provider.dimensionId) {
this.cloaks.get(i).sendCloakPacketToPlayersEx(true); // send
// info
// about
// collapsing
// cloaking
// field
this.cloaks.get(i).sendCloakPacketToPlayersEx(true); // send info about collapsing cloaking field
index = i;
break;
}
@ -102,7 +96,7 @@ public class CloakManager {
public static Packet getPacketForThisEntity(Entity e) {
if (e.isDead) {
Logger.logMsg(Logger.WARNING, "Fetching addPacket for removed entity");
WarpDrive.debugPrint("Fetching addPacket for removed entity");
}
Packet pkt = FMLNetworkHandler.getEntitySpawningPacket(e);

View file

@ -1,7 +1,6 @@
package cr0s.warpdrive.data;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;

View file

@ -1,7 +1,5 @@
package cr0s.warpdrive.item;
import javax.swing.Icon;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

View file

@ -2,8 +2,6 @@ package cr0s.warpdrive.item;
import java.util.List;
import javax.swing.Icon;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
@ -13,8 +11,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraftforge.oredict.ShapedOreRecipe;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IAirCanister;

View file

@ -2,8 +2,6 @@ package cr0s.warpdrive.machines;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;

View file

@ -2,8 +2,6 @@ package cr0s.warpdrive.machines;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;

View file

@ -8,7 +8,6 @@ import net.minecraft.world.World;
import org.lwjgl.input.Keyboard;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.machines.BlockMonitor;
public class ClientCameraUtils {
public static EntityPlayer entityPlayer;

View file

@ -17,7 +17,6 @@ import org.lwjgl.input.Mouse;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
public final class EntityCamera extends EntityLivingBase
{