Automatic import rearrangement

This commit is contained in:
Francesco Macagno 2015-07-13 21:28:37 -07:00
parent caa13e854f
commit edece19bd0
75 changed files with 323 additions and 502 deletions

View file

@ -1,11 +1,6 @@
package cr0s.warpdrive;
import java.util.ArrayList;
import cr0s.warpdrive.data.CloakedArea;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.world.ChunkWatchEvent;
public class CloakChunkWatcher {

View file

@ -1,15 +1,5 @@
package cr0s.warpdrive;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.data.JumpBlock;
import cr0s.warpdrive.data.MovingEntity;
import cr0s.warpdrive.data.TransitionPlane;
import cr0s.warpdrive.data.Vector3;
import cr0s.warpdrive.machines.TileEntityReactor;
import cr0s.warpdrive.world.SpaceTeleporter;
import dan200.computercraft.api.peripheral.IPeripheral;
import ic2.api.network.NetworkHelper;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
@ -31,12 +21,17 @@ import net.minecraft.util.MathHelper;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.world.World;
import net.minecraft.world.WorldServer;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.ForgeChunkManager;
import net.minecraftforge.common.ForgeChunkManager.Ticket;
import net.minecraftforge.common.ForgeChunkManager.Type;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.data.JumpBlock;
import cr0s.warpdrive.data.MovingEntity;
import cr0s.warpdrive.data.TransitionPlane;
import cr0s.warpdrive.data.Vector3;
import cr0s.warpdrive.machines.TileEntityReactor;
import cr0s.warpdrive.world.SpaceTeleporter;
public class EntityJump extends Entity
{

View file

@ -49,7 +49,7 @@ public class GravityManager
if (player.isSneaking())
{
if (player.getCurrentArmor(2) != null && WarpDriveConfig.Jetpacks.contains(player.getCurrentArmor(2).itemID))
if (player.getCurrentArmor(2) != null && WarpDriveConfig.jetpacks.contains(player.getCurrentArmor(2).itemID))
{
return SPACE_VOID_GRAVITY_JETPACKSNEAK;
}

View file

@ -1,31 +1,27 @@
package cr0s.warpdrive;
import ibxm.Player;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.List;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.server.MinecraftServer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.relauncher.Side;
import cr0s.warpdrive.data.Vector3;
import cr0s.warpdrive.machines.TileEntityCamera;
import cr0s.warpdrive.machines.TileEntityLaser;
import cr0s.warpdrive.machines.TileEntityMonitor;
import net.minecraft.client.multiplayer.WorldClient;
public class PacketHandler implements IPacketHandler {
@Override

View file

@ -1,9 +1,8 @@
package cr0s.warpdrive;
import net.minecraftforge.client.event.sound.SoundLoadEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraftforge.client.event.sound.SoundLoadEvent;
import net.minecraftforge.event.ForgeSubscribe;
public class SoundHandler {
@SideOnly(Side.CLIENT)

View file

@ -1,28 +1,23 @@
package cr0s.warpdrive;
import ic2.api.item.Items;
import java.util.HashMap;
import java.util.List;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.api.IBreathingHelmet;
import cr0s.warpdrive.data.CloakedArea;
import cr0s.warpdrive.world.SpaceTeleporter;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MathHelper;
import net.minecraft.world.EnumGameType;
import net.minecraft.world.World;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingFallEvent;
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
import net.minecraftforge.event.entity.living.LivingFallEvent;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.api.IBreathingHelmet;
import cr0s.warpdrive.world.SpaceTeleporter;
/**
*
@ -136,7 +131,7 @@ public class SpaceEventHandler {
player_airTank.put(player.username, air - 1);
}
}
} else if (WarpDriveConfig.SpaceHelmets.contains(helmetStack.itemID)) {
} else if (WarpDriveConfig.spaceHelmets.contains(helmetStack.itemID)) {
hasHelmet = true;
if (air == null) {// new player in space => grace period
player_airTank.put(player.username, AIR_TANK_TICKS);
@ -237,7 +232,7 @@ public class SpaceEventHandler {
if (check > 0)
{
if ((player.getCurrentArmor(0) != null && player.getCurrentArmor(0).itemID == Items.getItem("quantumBoots").itemID) ||
(player.getCurrentArmor(2) != null && WarpDriveConfig.Jetpacks.contains(player.getCurrentArmor(2).itemID)))
(player.getCurrentArmor(2) != null && WarpDriveConfig.jetpacks.contains(player.getCurrentArmor(2).itemID)))
{
event.setCanceled(true); // Don't damage player
}

View file

@ -1,11 +1,7 @@
package cr0s.warpdriveCore;
import java.io.File;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;

View file

@ -1,9 +1,9 @@
package cr0s.warpdrive;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class WarpDriveCreativeTab extends CreativeTabs {
String topLabel;

View file

@ -9,7 +9,7 @@ public class WarpDrivePeripheralHandler implements IPeripheralProvider {
@Override
public IPeripheral getPeripheral(World world, int x, int y, int z, int side) {
// WarpDrive.debugPrint("Checking Peripheral at " + x + ", " + y + ", " + z);
TileEntity te = world.getBlockTileEntity(x, y, z);
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof IPeripheral && ((IPeripheral) te).getType() != null) {
return (IPeripheral)te;
}

View file

@ -1,10 +1,8 @@
package cr0s.warpdrive.api;
import java.util.HashMap;
import java.util.Map;
import cr0s.warpdrive.data.EnumUpgradeTypes;
import net.minecraft.item.ItemStack;
public interface IUpgradable
{

View file

@ -2,26 +2,29 @@ package cr0s.warpdrive.block;
import java.util.Random;
import cr0s.warpdrive.WarpDriveConfig;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import cr0s.warpdrive.WarpDriveConfig;
public class BlockAir extends Block
{
private final boolean TRANSPARENT_AIR = true;
private final boolean AIR_DEBUG = false;
private final int AIR_BLOCK_TICKS = 40;
private Icon[] iconBuffer;
private IIcon[] iconBuffer;
public BlockAir(int par1) {
super(par1, Material.air);
public BlockAir() {
super(Material.air);
setHardness(0.0F);
setUnlocalizedName("warpdrive.blocks.Air");
setUnlocalizedName("warpdrive.blocks.Air");this.isRe
}
@Override
@ -30,7 +33,7 @@ public class BlockAir extends Block
}
@Override
public boolean isAirBlock(World var1, int var2, int var3, int var4) {
public boolean isAir(IBlockAccess var1, int var2, int var3, int var4) {
return true;
}
@ -40,7 +43,7 @@ public class BlockAir extends Block
}
@Override
public boolean isBlockReplaceable(World var1, int var2, int var3, int var4) {
public boolean isReplaceable(IBlockAccess var1, int var2, int var3, int var4) {
return true;
}
@ -60,9 +63,9 @@ public class BlockAir extends Block
}
@Override
public void registerIcons(IconRegister par1IconRegister) {
public void registerBlockIcons(IIconRegister par1IconRegister) {
if (AIR_DEBUG) {
iconBuffer = new Icon[16];
iconBuffer = new IIcon[16];
iconBuffer[ 0] = par1IconRegister.registerIcon("warpdrive:airBlock0");
iconBuffer[ 1] = par1IconRegister.registerIcon("warpdrive:airBlock1");
iconBuffer[ 2] = par1IconRegister.registerIcon("warpdrive:airBlock2");
@ -85,7 +88,7 @@ public class BlockAir extends Block
}
@Override
public Icon getIcon(int side, int metadata) {
public IIcon getIcon(int side, int metadata) {
if (AIR_DEBUG) {
return iconBuffer[metadata];
} else {
@ -99,8 +102,8 @@ public class BlockAir extends Block
}
@Override
public int idDropped(int var1, Random var2, int var3) {
return -1;
public Item getItemDropped(int var1, Random var2, int var3) {
return null;
}
/**
@ -135,7 +138,7 @@ public class BlockAir extends Block
spreadAirBlock(par1World, x, y, z, concentration);
}
par1World.scheduleBlockUpdate(x, y, z, this.blockID, AIR_BLOCK_TICKS);
par1World.scheduleBlockUpdate(x, y, z, this, AIR_BLOCK_TICKS);
}
@Override
@ -144,8 +147,8 @@ public class BlockAir extends Block
return side == 0;
}
int sideBlockID = world.getBlockId(x, y, z);
if (sideBlockID == this.blockID) {
Block sideBlock = world.getBlock(x, y, z);
if (sideBlock.isAssociatedBlock(this)) { //TODO: Check if this works
return false;
}
return world.isAirBlock(x, y, z);
@ -157,9 +160,9 @@ public class BlockAir extends Block
int sum_concentration = concentration;
// Count air in adjacent blocks
int xp_blockId = worldObj.getBlockId(x + 1, y, z);
boolean xp_isAir = WarpDriveConfig.isAirBlock(worldObj, xp_blockId, x + 1, y, z);;
int xp_concentration = (xp_blockId != this.blockID) ? 0 : worldObj.getBlockMetadata(x + 1, y, z);
Block xp_block = worldObj.getBlock(x + 1, y, z);
boolean xp_isAir = WarpDriveConfig.isAirBlock(worldObj, xp_block, x + 1, y, z);;
int xp_concentration = (xp_block.isAssociatedBlock(this)) ? 0 : worldObj.getBlockMetadata(x + 1, y, z);
if (xp_isAir) {
air_count++;
if (xp_concentration > 0) {

View file

@ -2,14 +2,14 @@ package cr0s.warpdrive.block;
import java.util.Random;
import cr0s.warpdrive.WarpDriveConfig;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import cr0s.warpdrive.WarpDriveConfig;
public class BlockGas extends Block {
private Icon[] gasIcons;

View file

@ -2,10 +2,9 @@ package cr0s.warpdrive.block;
import java.util.Random;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import cr0s.warpdrive.WarpDrive;
public class BlockIridium extends Block
{

View file

@ -3,7 +3,6 @@ package cr0s.warpdrive.client;
import net.minecraft.world.World;
import cpw.mods.fml.client.FMLClientHandler;
import cr0s.warpdrive.CommonProxy;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.data.Vector3;
import cr0s.warpdrive.render.FXBeam;

View file

@ -1,15 +1,15 @@
package cr0s.warpdrive.command;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.MathHelper;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.world.JumpgateGenerator;
import cr0s.warpdrive.world.WorldGenSmallShip;
import cr0s.warpdrive.world.WorldGenStation;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.MathHelper;
/*
* /generate <structure>

View file

@ -1,9 +1,9 @@
package cr0s.warpdrive.command;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayerMP;
import cr0s.warpdrive.WarpDrive;
public class JumpgateCommand extends CommandBase
{

View file

@ -1,13 +1,13 @@
package cr0s.warpdrive.command;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.world.SpaceTeleporter;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.MathHelper;
import net.minecraft.world.WorldServer;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.world.SpaceTeleporter;
public class SpaceTpCommand extends CommandBase {
@Override

View file

@ -3,10 +3,10 @@ package cr0s.warpdrive.data;
import java.util.Iterator;
import java.util.LinkedList;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.world.ChunkPosition;
import net.minecraft.world.World;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
public class CamRegistry {
private LinkedList<CamRegistryItem> registry;

View file

@ -1,15 +1,7 @@
package cr0s.warpdrive.data;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import cpw.mods.fml.common.network.FMLNetworkHandler;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.data.CloakedArea;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLeashKnot;
import net.minecraft.entity.EntityLivingBase;
@ -19,7 +11,6 @@ import net.minecraft.entity.item.EntityEnderCrystal;
import net.minecraft.entity.item.EntityEnderEye;
import net.minecraft.entity.item.EntityEnderPearl;
import net.minecraft.entity.item.EntityExpBottle;
import net.minecraft.entity.item.EntityFallingSand;
import net.minecraft.entity.item.EntityFireworkRocket;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.item.EntityItemFrame;
@ -38,19 +29,11 @@ import net.minecraft.entity.projectile.EntityPotion;
import net.minecraft.entity.projectile.EntitySmallFireball;
import net.minecraft.entity.projectile.EntitySnowball;
import net.minecraft.entity.projectile.EntityWitherSkull;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet20NamedEntitySpawn;
import net.minecraft.network.packet.Packet23VehicleSpawn;
import net.minecraft.network.packet.Packet24MobSpawn;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.network.packet.Packet25EntityPainting;
import net.minecraft.network.packet.Packet26EntityExpOrb;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
import cr0s.warpdrive.PacketHandler;
/**
* Cloak manager stores cloaking devices covered areas

View file

@ -1,24 +1,16 @@
package cr0s.warpdrive.data;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.LinkedList;
import java.util.List;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.FMLNetworkHandler;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import cr0s.warpdrive.PacketHandler;
public class CloakedArea {
public int dimensionId = -666;

View file

@ -1,13 +1,13 @@
package cr0s.warpdrive.data;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.block.Block;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
public class JumpBlock {
public int blockID;

View file

@ -1,7 +1,7 @@
package cr0s.warpdrive.data;
import cr0s.warpdrive.world.JumpgateGenerator;
import net.minecraft.util.AxisAlignedBB;
import cr0s.warpdrive.world.JumpgateGenerator;
public class Jumpgate
{

View file

@ -11,7 +11,7 @@ import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.common.util.ForgeDirection;
/**
* Vector3 Class is used for defining objects in a 3D space.

View file

@ -3,13 +3,12 @@ package cr0s.warpdrive.data;
import java.util.ArrayList;
import java.util.LinkedList;
import net.minecraft.util.AxisAlignedBB;
import cr0s.warpdrive.LocalProfiler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.machines.TileEntityReactor;
import cr0s.warpdrive.machines.TileEntityReactor.ReactorMode;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
/** Registry of active Warp Cores in world
* @author Cr0s

View file

@ -1,13 +1,10 @@
package cr0s.warpdrive.item;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import ic2.api.reactor.IReactor;
import ic2.api.reactor.IReactorComponent;
public class ItemReactorLaserFocus extends Item implements IReactorComponent
{

View file

@ -1,13 +1,13 @@
package cr0s.warpdrive.item;
import javax.swing.Icon;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IAirCanister;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
public class ItemWarpAirCanister extends Item implements IAirCanister {
Icon icon;

View file

@ -1,17 +1,17 @@
package cr0s.warpdrive.item;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IAirCanister;
import cr0s.warpdrive.api.IBreathingHelmet;
import net.minecraft.client.renderer.texture.IconRegister;
import javax.swing.Icon;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IAirCanister;
import cr0s.warpdrive.api.IBreathingHelmet;
public class ItemWarpArmor extends ItemArmor implements IBreathingHelmet {
// private static Random ran = new Random();

View file

@ -2,18 +2,18 @@ package cr0s.warpdrive.item;
import java.util.List;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
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;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraftforge.oredict.ShapedOreRecipe;
public class ItemWarpComponent extends Item implements IAirCanister {
private Icon[] potentialIcons;

View file

@ -1,5 +1,18 @@
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;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -7,20 +20,6 @@ import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.api.IAirCanister;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
public class BlockAirGenerator extends BlockContainer
{
private Icon[] iconBuffer;

View file

@ -1,22 +1,21 @@
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;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.data.CamRegistryItem;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
public class BlockCamera extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,17 +1,14 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
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.IconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockCloakingCoil extends Block {
private Icon[] iconBuffer;

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockCloakingDeviceCore extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,18 +1,17 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockLaser extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,22 +1,21 @@
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;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.data.CamRegistryItem;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
public class BlockLaserCam extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockLift extends BlockContainer
{

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockMiningLaser extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,5 +1,15 @@
package cr0s.warpdrive.machines;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@ -7,16 +17,6 @@ import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.data.CamRegistryItem;
import cr0s.warpdrive.render.ClientCameraUtils;
import cr0s.warpdrive.render.EntityCamera;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
public class BlockMonitor extends BlockContainer {
private Icon iconFront;

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockParticleBooster extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockProtocol extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockRadar extends BlockContainer
{

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockReactor extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,20 +1,19 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import java.util.Random;
import javax.swing.Icon;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockShipScanner extends BlockContainer {
private Icon[] iconBuffer;

View file

@ -1,15 +1,14 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
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.IconRegister;
import net.minecraft.util.Icon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class BlockWarpIsolation extends Block {
private Icon[] iconBuffer;

View file

@ -1,9 +1,9 @@
package cr0s.warpdrive.machines;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.ForgeDirection;
public class TileEntityAirGenerator extends WarpEnergyTE {
private final int EU_PER_NEWAIRBLOCK = 12;

View file

@ -1,22 +1,12 @@
package cr0s.warpdrive.machines;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.ChunkPosition;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.*;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.server.MinecraftServer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.ChunkPosition;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
public class TileEntityCamera extends WarpInterfacedTE {
private int frequency = -1; // beam frequency

View file

@ -1,27 +1,21 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.relauncher.Side;
import dan200.computercraft.api.ComputerCraftAPI;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.List;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.common.ForgeDirection;
import cr0s.warpdrive.*;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.relauncher.Side;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.CloakedArea;
import cr0s.warpdrive.data.Vector3;

View file

@ -1,28 +1,13 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
import cpw.mods.fml.common.FMLCommonHandler;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.NetHandler;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.server.MinecraftServer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
@ -30,7 +15,11 @@ import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.ChunkPosition;
import cr0s.warpdrive.*;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.Vector3;
public class TileEntityLaser extends WarpInterfacedTE {

View file

@ -1,21 +1,18 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import java.util.List;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraftforge.common.ForgeDirection;
import cr0s.warpdrive.*;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.Vector3;
import dan200.computercraft.api.lua.ILuaContext;
import dan200.computercraft.api.peripheral.IComputerAccess;
public class TileEntityLift extends WarpEnergyTE {
private static final int MODE_REDSTONE = -1;

View file

@ -1,39 +1,24 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import dan200.computercraft.api.ComputerCraftAPI;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.util.ArrayList;
import java.util.List;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import cofh.api.transport.IItemConduit;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFluid;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.inventory.IInventory;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidRegistry;
import appeng.api.WorldCoord;
import appeng.api.IAEItemStack;
import appeng.api.Util;
import appeng.api.events.GridTileLoadEvent;
import appeng.api.events.GridTileUnloadEvent;
import appeng.api.me.tiles.IGridMachine;
import appeng.api.me.tiles.ITileCable;
import appeng.api.me.util.IGridInterface;
import appeng.api.me.util.IMEInventoryHandler;
import cr0s.warpdrive.*;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.Vector3;
public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMachine, ITileCable {
@ -231,7 +216,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
return false;
}
// check whitelist
if (WarpDriveConfig.MinerOres.contains(blockID)) {
if (WarpDriveConfig.minerOres.contains(blockID)) {
return true;
}
// check default
@ -497,7 +482,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
z = zCoord;
blockID = worldObj.getBlockId(x, currentLayer, z);
if (canDig(blockID, x, currentLayer, z)) {
if (isQuarry || WarpDriveConfig.MinerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
if (isQuarry || WarpDriveConfig.minerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
valuablesInLayer.add(new Vector3(x, currentLayer, z));
}
}
@ -511,7 +496,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
for (; x <= xmax; x++) {
blockID = worldObj.getBlockId(x, currentLayer, z);
if (canDig(blockID, x, currentLayer, z)) {
if (isQuarry || WarpDriveConfig.MinerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
if (isQuarry || WarpDriveConfig.minerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
valuablesInLayer.add(new Vector3(x, currentLayer, z));
}
}
@ -521,7 +506,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
for (; z <= zmax; z++) {
blockID = worldObj.getBlockId(x, currentLayer, z);
if (canDig(blockID, x, currentLayer, z)) {
if (isQuarry || WarpDriveConfig.MinerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
if (isQuarry || WarpDriveConfig.minerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
valuablesInLayer.add(new Vector3(x, currentLayer, z));
}
}
@ -531,7 +516,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
for (; x >= xmin; x--) {
blockID = worldObj.getBlockId(x, currentLayer, z);
if (canDig(blockID, x, currentLayer, z)) {
if (isQuarry || WarpDriveConfig.MinerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
if (isQuarry || WarpDriveConfig.minerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
valuablesInLayer.add(new Vector3(x, currentLayer, z));
}
}
@ -541,7 +526,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
for (; z > zmin; z--) {
blockID = worldObj.getBlockId(x, currentLayer, z);
if (canDig(blockID, x, currentLayer, z)) {
if (isQuarry || WarpDriveConfig.MinerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
if (isQuarry || WarpDriveConfig.minerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
valuablesInLayer.add(new Vector3(x, currentLayer, z));
}
}
@ -551,7 +536,7 @@ public class TileEntityMiningLaser extends WarpInterfacedTE implements IGridMach
for (; x < xCoord; x++) {
blockID = worldObj.getBlockId(x, currentLayer, z);
if (canDig(blockID, x, currentLayer, z)) {
if (isQuarry || WarpDriveConfig.MinerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
if (isQuarry || WarpDriveConfig.minerOres.contains(blockID)) {// Quarry collects all blocks or only collect valuables blocks
valuablesInLayer.add(new Vector3(x, currentLayer, z));
}
}

View file

@ -1,22 +1,11 @@
package cr0s.warpdrive.machines;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.nbt.NBTTagCompound;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.server.MinecraftServer;
import net.minecraft.tileentity.TileEntity;
public class TileEntityMonitor extends WarpInterfacedTE {
private int frequency = -1;

View file

@ -1,9 +1,9 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.ForgeDirection;
import cr0s.warpdrive.*;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDriveConfig;
public class TileEntityParticleBooster extends WarpEnergyTE {
private int ticks = 0;

View file

@ -1,21 +1,16 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import dan200.computercraft.api.ComputerCraftAPI;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.util.ArrayList;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.DamageSource;
import cr0s.warpdrive.*;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.machines.TileEntityReactor.ReactorMode;
/**

View file

@ -1,19 +1,14 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import dan200.computercraft.api.ComputerCraftAPI;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import java.util.ArrayList;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.ForgeDirection;
import cr0s.warpdrive.*;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
public class TileEntityRadar extends WarpEnergyTE {
private ArrayList<TileEntityReactor> results;

View file

@ -17,9 +17,11 @@ import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
import net.minecraft.world.WorldServer;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.*;
import cr0s.warpdrive.EntityJump;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.Jumpgate;
import cr0s.warpdrive.world.SpaceTeleporter;

View file

@ -1,21 +1,10 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.*;
import cr0s.warpdrive.data.JumpBlock;
import cr0s.warpdrive.data.Vector3;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import ic2.api.energy.tile.IEnergyTile;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.block.Block;
import net.minecraft.inventory.IInventory;
import net.minecraft.nbt.CompressedStreamTools;
@ -23,10 +12,14 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.JumpBlock;
import cr0s.warpdrive.data.Vector3;
public class TileEntityShipScanner extends WarpEnergyTE {
private boolean isActive = false;

View file

@ -1,18 +1,12 @@
package cr0s.warpdrive.machines;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IBlockUpdateDetector;
import cr0s.warpdrive.api.IUpgradable;
import cr0s.warpdrive.data.EnumUpgradeTypes;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IBlockUpdateDetector;
public abstract class WarpBlockContainer extends BlockContainer {
protected WarpBlockContainer(int par1) {

View file

@ -2,14 +2,15 @@ package cr0s.warpdrive.machines;
import java.util.ArrayList;
import com.google.common.collect.ImmutableSet;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraftforge.common.ForgeChunkManager;
import net.minecraftforge.common.ForgeChunkManager.Ticket;
import com.google.common.collect.ImmutableSet;
import cr0s.warpdrive.WarpDrive;
public abstract class WarpChunkTE extends WarpEnergyTE
{
private ArrayList<Ticket> ticketList = new ArrayList<Ticket>();

View file

@ -2,23 +2,15 @@ package cr0s.warpdrive.machines;
import java.util.HashMap;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Callback;
import li.cil.oc.api.network.Context;
import ic2.api.energy.event.EnergyTileLoadEvent;
import ic2.api.energy.event.EnergyTileUnloadEvent;
import ic2.api.energy.tile.IEnergySink;
import ic2.api.energy.tile.IEnergySource;
import cofh.api.energy.IEnergyHandler;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.api.IBlockUpdateDetector;
import cr0s.warpdrive.data.EnumUpgradeTypes;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Optional;
import cr0s.warpdrive.api.IBlockUpdateDetector;
import cr0s.warpdrive.data.EnumUpgradeTypes;
public abstract class WarpEnergyTE extends WarpInterfacedTE implements IEnergyHandler, IEnergySink, IEnergySource, IBlockUpdateDetector {
protected boolean addedToEnergyNet = false;

View file

@ -3,23 +3,11 @@ package cr0s.warpdrive.machines;
import java.util.HashMap;
import java.util.Set;
import jdk.nashorn.internal.runtime.regexp.joni.constants.Arguments;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
import li.cil.oc.api.Network;
import li.cil.oc.api.network.Arguments;
import li.cil.oc.api.network.Context;
import li.cil.oc.api.network.Environment;
import li.cil.oc.api.network.Message;
import li.cil.oc.api.network.Node;
import li.cil.oc.api.network.Visibility;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.lua.ILuaContext;
import dan200.computercraft.api.peripheral.IPeripheral;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.Vector3;
@Optional.InterfaceList({
@Optional.Interface(iface = "li.cil.oc.api.network.Environment", modid = "OpenComputers"),

View file

@ -1,7 +1,7 @@
package cr0s.warpdrive.machines;
import cr0s.warpdrive.data.Vector3;
import net.minecraft.tileentity.TileEntity;
import cr0s.warpdrive.data.Vector3;
public abstract class WarpTE extends TileEntity
{

View file

@ -1,15 +1,15 @@
package cr0s.warpdrive.render;
import org.lwjgl.opengl.GL11;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
import net.minecraftforge.event.ForgeSubscribe;
import org.lwjgl.opengl.GL11;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
public class CameraOverlay
{

View file

@ -1,13 +1,12 @@
package cr0s.warpdrive.render;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import org.lwjgl.input.Keyboard;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.EnumOptions;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class ClientCameraUtils {
public static EntityPlayer entityPlayer;

View file

@ -1,29 +1,23 @@
package cr0s.warpdrive.render;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.PacketDispatcher;
import cr0s.warpdrive.PacketHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.EnumOptions;
import net.minecraft.client.settings.GameSettings;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.world.ChunkPosition;
import net.minecraft.world.World;
import org.lwjgl.input.Keyboard;
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
{
public int xCoord;

View file

@ -10,8 +10,6 @@ import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
//import calclavia.lib.render.CalclaviaRenderHelper;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.relauncher.Side;

View file

@ -1,19 +1,15 @@
package cr0s.warpdrive.world;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.JumpBlock;
import java.util.ArrayList;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import cr0s.warpdrive.data.JumpBlock;
/*
2014-06-07 21:41:45 [Infos] [STDOUT] Generating star (class 0) at -579 257 1162
2014-06-07 21:41:45 [Infos] [Minecraft-Client] [CHAT] /generate: generating star at -579, 257, 1162

View file

@ -1,8 +1,5 @@
package cr0s.warpdrive.world;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
import java.util.List;
import net.minecraft.entity.Entity;
@ -12,6 +9,8 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cr0s.warpdrive.WarpDrive;
public final class EntityStarCore extends Entity
{

View file

@ -3,7 +3,6 @@ package cr0s.warpdrive.world;
import java.util.List;
import java.util.Random;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.util.IProgressUpdate;
import net.minecraft.world.ChunkPosition;
@ -12,6 +11,7 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.ChunkProviderGenerate;
import cr0s.warpdrive.WarpDrive;
public class HyperSpaceGenerator extends ChunkProviderGenerate implements IChunkProvider
{

View file

@ -1,9 +1,5 @@
package cr0s.warpdrive.world;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayerMP;
@ -14,6 +10,10 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
public class HyperSpaceProvider extends WorldProvider
{

View file

@ -1,12 +1,11 @@
package cr0s.warpdrive.world;
import cpw.mods.fml.common.IWorldGenerator;
import cr0s.warpdrive.WarpDriveConfig;
import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.common.IWorldGenerator;
import cr0s.warpdrive.WarpDriveConfig;
/**
* @author Cr0s

View file

@ -7,7 +7,6 @@ package cr0s.warpdrive.world;
import java.util.List;
import java.util.Random;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.util.IProgressUpdate;
import net.minecraft.world.ChunkPosition;
@ -16,6 +15,7 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.ChunkProviderGenerate;
import cr0s.warpdrive.WarpDrive;
public class SpaceGenerator extends ChunkProviderGenerate implements IChunkProvider
{

View file

@ -1,8 +1,5 @@
package cr0s.warpdrive.world;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.ChunkCoordinates;
@ -12,6 +9,9 @@ import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import cr0s.warpdrive.WarpDrive;
public class SpaceProvider extends WorldProvider
{

View file

@ -1,6 +1,7 @@
package cr0s.warpdrive.world;
import java.util.Random;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.client.renderer.GLAllocation;
@ -10,7 +11,9 @@ import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.Vec3;
import net.minecraftforge.client.IRenderHandler;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.FMLClientHandler;
public class SpaceSkyRenderer extends IRenderHandler

View file

@ -1,15 +1,14 @@
package cr0s.warpdrive.world;
import cpw.mods.fml.common.IWorldGenerator;
import cr0s.warpdrive.LocalProfiler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.common.IWorldGenerator;
import cr0s.warpdrive.LocalProfiler;
import cr0s.warpdrive.WarpDrive;
import cr0s.warpdrive.WarpDriveConfig;
/**
* @author Cr0s

View file

@ -2,7 +2,6 @@ package cr0s.warpdrive.world;
import java.util.Random;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.block.Block;
import net.minecraft.entity.monster.EntityZombie;
import net.minecraft.entity.passive.EntityVillager;
@ -11,6 +10,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityChest;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import cr0s.warpdrive.WarpDriveConfig;
public class WorldGenSmallShip extends WorldGenerator
{

View file

@ -2,8 +2,8 @@ package cr0s.warpdrive.world;
import java.util.Random;
import cr0s.warpdrive.WarpDriveConfig;
import net.minecraft.block.Block;
import cr0s.warpdrive.WarpDriveConfig;
public class WorldGenStructure
{