Moved classes around in the mechanical package

This commit is contained in:
Robert S 2014-09-16 11:41:23 -04:00
parent fdcbe5da2b
commit d7eadeac5b
43 changed files with 79 additions and 118 deletions

View file

@ -16,7 +16,7 @@ import resonantinduction.archaic.fluid.gutter.TileGutter
import resonantinduction.archaic.fluid.tank.TileTank
import resonantinduction.archaic.process.{TileCastingMold, TileMillstone}
import resonantinduction.core.{Reference, ResonantTab, Settings}
import resonantinduction.mechanical.gear.ItemHandCrank
import resonantinduction.mechanical.mech.gear.ItemHandCrank
@Mod(modid = Archaic.ID, name = Archaic.NAME, version = Reference.version, modLanguage = "scala", dependencies = "required-after:" + Reference.coreID)
object Archaic

View file

@ -21,7 +21,7 @@ import resonant.lib.network.discriminator.PacketType;
import resonant.lib.network.handle.IPacketReceiver;
import resonant.lib.utility.inventory.InventoryUtility;
import resonantinduction.core.Reference;
import resonantinduction.mechanical.gear.ItemHandCrank;
import resonantinduction.mechanical.mech.gear.ItemHandCrank;
import universalelectricity.core.transform.vector.Vector3;
public class TileMillstone extends TileInventory implements IPacketReceiver

View file

@ -14,7 +14,7 @@ import resonantinduction.atomic.machine.plasma.{RenderPlasmaHeater, TilePlasmaHe
import resonantinduction.atomic.machine.quantum.{GuiQuantumAssembler, RenderQuantumAssembler, TileQuantumAssembler}
import resonantinduction.atomic.machine.reactor.{GuiReactorCell, RenderReactorCell, TileReactorCell}
import resonantinduction.atomic.machine.thermometer.{RenderThermometer, TileThermometer}
import resonantinduction.mechanical.turbine.{RenderElectricTurbine, TileElectricTurbine}
import resonantinduction.mechanical.mech.turbine.{RenderElectricTurbine, TileElectricTurbine}
class ClientProxy extends CommonProxy
{

View file

@ -6,15 +6,15 @@ import resonant.content.wrapper.ItemRenderHandler;
import resonantinduction.mechanical.fluid.pipe.RenderPipe;
import resonantinduction.mechanical.fluid.transport.RenderPump;
import resonantinduction.mechanical.fluid.transport.TilePump;
import resonantinduction.mechanical.gear.RenderGear;
import resonantinduction.mechanical.gearshaft.RenderGearShaft;
import resonantinduction.mechanical.process.crusher.RenderMechanicalPiston;
import resonantinduction.mechanical.process.crusher.TileMechanicalPiston;
import resonantinduction.mechanical.process.grinder.RenderGrindingWheel;
import resonantinduction.mechanical.process.grinder.TileGrindingWheel;
import resonantinduction.mechanical.process.mixer.RenderMixer;
import resonantinduction.mechanical.process.mixer.TileMixer;
import resonantinduction.mechanical.turbine.*;
import resonantinduction.mechanical.mech.gear.RenderGear;
import resonantinduction.mechanical.mech.gearshaft.RenderGearShaft;
import resonantinduction.mechanical.mech.process.crusher.RenderMechanicalPiston;
import resonantinduction.mechanical.mech.process.crusher.TileMechanicalPiston;
import resonantinduction.mechanical.mech.process.grinder.RenderGrindingWheel;
import resonantinduction.mechanical.mech.process.grinder.TileGrindingWheel;
import resonantinduction.mechanical.mech.process.mixer.RenderMixer;
import resonantinduction.mechanical.mech.process.mixer.TileMixer;
import resonantinduction.mechanical.mech.turbine.*;
public class ClientProxy extends CommonProxy
{

View file

@ -5,24 +5,23 @@ import net.minecraft.init.Items;
import resonant.content.loader.ModManager;
import resonant.engine.content.debug.TileCreativeBuilder;
import resonant.lib.network.discriminator.PacketAnnotationManager;
import resonantinduction.core.ResonantPartFactory;
import resonantinduction.core.ResonantPartFactory$;
import resonantinduction.core.ResonantTab;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.mech.MechanicalNode;
import resonantinduction.mechanical.fluid.pipe.PartPipe;
import resonantinduction.mechanical.fluid.pipe.PipeMaterials;
import resonantinduction.mechanical.gear.PartGear;
import resonantinduction.mechanical.gearshaft.PartGearShaft;
import resonantinduction.mechanical.turbine.*;
import resonantinduction.mechanical.mech.gear.PartGear;
import resonantinduction.mechanical.mech.gearshaft.PartGearShaft;
import resonantinduction.mechanical.mech.turbine.*;
import resonantinduction.mechanical.fluid.pipe.ItemPipe;
import resonantinduction.mechanical.fluid.transport.TilePump;
import resonantinduction.mechanical.gear.ItemGear;
import resonantinduction.mechanical.gearshaft.ItemGearShaft;
import resonantinduction.mechanical.logistic.belt.TileDetector;
import resonantinduction.mechanical.process.crusher.TileMechanicalPiston;
import resonantinduction.mechanical.process.edit.TileBreaker;
import resonantinduction.mechanical.process.edit.TilePlacer;
import resonantinduction.mechanical.process.grinder.TileGrindingWheel;
import resonantinduction.mechanical.mech.gear.ItemGear;
import resonantinduction.mechanical.mech.gearshaft.ItemGearShaft;
import resonantinduction.mechanical.machine.TileDetector;
import resonantinduction.mechanical.mech.process.crusher.TileMechanicalPiston;
import resonantinduction.mechanical.machine.edit.TileBreaker;
import resonantinduction.mechanical.machine.edit.TilePlacer;
import resonantinduction.mechanical.mech.process.grinder.TileGrindingWheel;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@ -32,7 +31,7 @@ import net.minecraftforge.oredict.ShapedOreRecipe;
import resonant.lib.recipe.UniversalRecipe;
import resonantinduction.core.Reference;
import resonantinduction.core.interfaces.IMechanicalNode;
import resonantinduction.mechanical.process.mixer.TileMixer;
import resonantinduction.mechanical.mech.process.mixer.TileMixer;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;

View file

@ -2,7 +2,7 @@ package resonantinduction.mechanical.fluid.transport;
import net.minecraft.block.material.Material;
import resonantinduction.core.prefab.node.NodePressure;
import resonantinduction.mechanical.energy.grid.TileMechanical;
import resonantinduction.mechanical.mech.TileMechanical;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.Fluid;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.logistic.belt;
package resonantinduction.mechanical.machine;
import java.util.ArrayList;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.process.edit;
package resonantinduction.mechanical.machine.edit;
import java.util.ArrayList;
@ -22,8 +22,6 @@ import resonant.lib.utility.inventory.InternalInventoryHandler;
import resonantinduction.core.ResonantInduction;
import universalelectricity.core.transform.vector.Vector3;
import com.google.common.io.ByteArrayDataInput;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import universalelectricity.core.transform.vector.VectorWorld;

View file

@ -1,15 +1,13 @@
package resonantinduction.mechanical.process.edit;
package resonantinduction.mechanical.machine.edit;
import java.util.EnumSet;
import com.sun.org.apache.bcel.internal.generic.FieldGenOrMethodGen;
import cpw.mods.fml.common.network.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ChatComponentText;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.energy.grid;
package resonantinduction.mechanical.mech;
import java.awt.BorderLayout;
import java.awt.Dimension;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.energy.grid;
package resonantinduction.mechanical.mech;
import java.util.Iterator;
import java.util.Map.Entry;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.energy.grid;
package resonantinduction.mechanical.mech;
import java.util.ArrayList;
import java.util.List;
@ -6,7 +6,6 @@ import java.util.List;
import codechicken.multipart.*;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.MovingObjectPosition;

View file

@ -1,34 +1,24 @@
package resonantinduction.mechanical.energy.grid;
import java.io.IOException;
import java.util.List;
package resonantinduction.mechanical.mech;
import cpw.mods.fml.common.network.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.Packet;
import net.minecraftforge.common.util.ForgeDirection;
import resonant.content.prefab.java.TileAdvanced;
import resonant.content.prefab.java.TileNode;
import resonant.engine.ResonantEngine;
import resonant.lib.network.ByteBufWrapper;
import resonant.lib.network.discriminator.PacketTile;
import resonant.lib.network.discriminator.PacketType;
import resonant.lib.network.handle.IPacketIDReceiver;
import resonantinduction.core.ResonantInduction;
import resonantinduction.mechanical.Mechanical;
import universalelectricity.api.core.grid.INode;
import universalelectricity.api.core.grid.INodeProvider;
import universalelectricity.core.transform.vector.Vector3;
import codechicken.multipart.ControlKeyModifer;
import com.google.common.io.ByteArrayDataInput;
/** Prefab for resonantinduction.mechanical tiles
*
* @author Calclavia */

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gear;
package resonantinduction.mechanical.mech.gear;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;

View file

@ -1,10 +1,10 @@
package resonantinduction.mechanical.gear;
package resonantinduction.mechanical.mech.gear;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.core.interfaces.IMechanicalNode;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.gearshaft.PartGearShaft;
import resonantinduction.mechanical.mech.MechanicalNode;
import resonantinduction.mechanical.mech.gearshaft.PartGearShaft;
import codechicken.lib.vec.Rotation;
import codechicken.multipart.TMultiPart;
import codechicken.multipart.TileMultipart;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gear;
package resonantinduction.mechanical.mech.gear;
import java.util.List;
@ -9,7 +9,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import resonantinduction.core.prefab.part.IHighlight;
import resonantinduction.mechanical.gearshaft.PartGearShaft;
import resonantinduction.mechanical.mech.gearshaft.PartGearShaft;
import codechicken.lib.vec.BlockCoord;
import codechicken.lib.vec.Vector3;
import codechicken.microblock.FacePlacementGrid$;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gear
package resonantinduction.mechanical.mech.gear
import net.minecraft.item.Item
import net.minecraft.world.World

View file

@ -1,8 +1,6 @@
package resonantinduction.mechanical.gear;
package resonantinduction.mechanical.mech.gear;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
@ -14,7 +12,7 @@ import resonant.lib.multiblock.reference.IMultiBlockStructure;
import resonant.lib.utility.WrenchUtility;
import resonantinduction.core.Reference;
import resonantinduction.mechanical.Mechanical;
import resonantinduction.mechanical.energy.grid.PartMechanical;
import resonantinduction.mechanical.mech.PartMechanical;
import codechicken.lib.vec.Cuboid6;
import codechicken.lib.vec.Rotation;
import codechicken.lib.vec.Transformation;
@ -24,8 +22,6 @@ import codechicken.multipart.ControlKeyModifer;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import universalelectricity.api.core.grid.INode;
import universalelectricity.core.transform.rotation.EulerAngle;
import universalelectricity.core.transform.vector.VectorWorld;
/** We assume all the force acting on the gear is 90 degrees.
*

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gear;
package resonantinduction.mechanical.mech.gear;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gearshaft;
package resonantinduction.mechanical.mech.gearshaft;
import java.util.ArrayList;
import java.util.Iterator;
@ -6,9 +6,8 @@ import java.util.List;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.core.interfaces.IMechanicalNode;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.gear.PartGear;
import resonantinduction.mechanical.mech.MechanicalNode;
import resonantinduction.mechanical.mech.gear.PartGear;
import universalelectricity.api.core.grid.INodeProvider;
import universalelectricity.core.transform.vector.Vector3;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gearshaft;
package resonantinduction.mechanical.mech.gearshaft;
import java.util.List;

View file

@ -1,10 +1,10 @@
package resonantinduction.mechanical.gearshaft;
package resonantinduction.mechanical.mech.gearshaft;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import resonantinduction.mechanical.energy.grid.PartMechanical;
import resonantinduction.mechanical.mech.PartMechanical;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.mechanical.Mechanical;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.gearshaft;
package resonantinduction.mechanical.mech.gearshaft;
import static org.lwjgl.opengl.GL11.glRotatef;

View file

@ -1,9 +1,7 @@
package resonantinduction.mechanical.process.crusher;
package resonantinduction.mechanical.mech.process.crusher;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.energy.grid.TileMechanical;
import universalelectricity.api.core.grid.INodeProvider;
import resonantinduction.mechanical.mech.MechanicalNode;
/**
* Created by robert on 8/28/2014.

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.process.crusher;
package resonantinduction.mechanical.mech.process.crusher;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;

View file

@ -1,18 +1,15 @@
package resonantinduction.mechanical.process.crusher;
package resonantinduction.mechanical.mech.process.crusher;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.ReflectionHelper;
import resonant.content.factory.resources.RecipeType;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.energy.grid.TileMechanical;
import resonantinduction.mechanical.mech.TileMechanical;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import resonant.api.IRotatable;
import resonant.api.recipe.MachineRecipes;
import resonant.api.recipe.RecipeResource;
import resonant.lib.config.Config;

View file

@ -1,8 +1,7 @@
package resonantinduction.mechanical.process.grinder;
package resonantinduction.mechanical.mech.process.grinder;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.mech.MechanicalNode;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.core.interfaces.IMechanicalNode;
/** Node just for the grinder
*

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.process.grinder;
package resonantinduction.mechanical.mech.process.grinder;
import static org.lwjgl.opengl.GL11.glPopMatrix;
import static org.lwjgl.opengl.GL11.glPushMatrix;

View file

@ -1,7 +1,7 @@
package resonantinduction.mechanical.process.grinder;
package resonantinduction.mechanical.mech.process.grinder;
import resonant.lib.prefab.damage.CustomDamageSource;
import resonantinduction.mechanical.energy.grid.TileMechanical;
import resonantinduction.mechanical.mech.TileMechanical;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;

View file

@ -1,14 +1,9 @@
package resonantinduction.mechanical.process.mixer;
package resonantinduction.mechanical.mech.process.mixer;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.core.interfaces.IMechanicalNode;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import universalelectricity.api.core.grid.INode;
import resonantinduction.mechanical.mech.MechanicalNode;
import universalelectricity.api.core.grid.INodeProvider;
import java.util.WeakHashMap;
public class MixerNode extends MechanicalNode
{

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.process.mixer;
package resonantinduction.mechanical.mech.process.mixer;
import static org.lwjgl.opengl.GL11.glPopMatrix;
import static org.lwjgl.opengl.GL11.glPushMatrix;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.process.mixer;
package resonantinduction.mechanical.mech.process.mixer;
import java.util.LinkedHashSet;
import java.util.List;
@ -7,19 +7,16 @@ import java.util.Set;
import net.minecraft.init.Blocks;
import resonant.content.factory.resources.RecipeType;
import resonant.engine.ResonantEngine;
import resonantinduction.mechanical.energy.grid.TileMechanical;
import resonantinduction.mechanical.mech.TileMechanical;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.IFluidBlock;
import resonant.api.recipe.MachineRecipes;
import resonant.lib.utility.inventory.InventoryUtility;
import resonantinduction.core.Reference;
import resonantinduction.core.Timer;
import resonant.content.factory.resources.block.BlockFluidMixture;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import java.util.HashMap;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import java.util.HashMap;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine
package resonantinduction.mechanical.mech.turbine
import net.minecraftforge.common.util.ForgeDirection
import net.minecraftforge.fluids.{FluidTank, Fluid, FluidStack, FluidTankInfo}

View file

@ -1,21 +1,19 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import resonant.lib.multiblock.reference.IMultiBlockStructure;
import resonant.lib.network.handle.IPacketIDReceiver;
import resonantinduction.core.Reference;
import resonantinduction.mechanical.energy.grid.TileMechanical;
import resonantinduction.mechanical.mech.TileMechanical;
import net.minecraft.block.material.Material;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.mechanical.gear.ItemHandCrank;
import resonantinduction.mechanical.mech.gear.ItemHandCrank;
import universalelectricity.api.core.grid.INodeProvider;
import universalelectricity.core.transform.vector.Vector3;
import cpw.mods.fml.relauncher.Side;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import java.lang.reflect.Method;
import java.util.List;
@ -15,7 +15,7 @@ import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
import resonant.content.prefab.itemblock.ItemBlockMetadata;
import resonantinduction.core.Settings;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.mech.MechanicalNode;
import universalelectricity.api.core.grid.INodeProvider;
import universalelectricity.core.transform.vector.Vector3;
import cpw.mods.fml.relauncher.ReflectionHelper;

View file

@ -1,6 +1,5 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;

View file

@ -1,4 +1,4 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import net.minecraft.tileentity.TileEntity;
import resonant.lib.multiblock.reference.MultiBlockHandler;

View file

@ -1,8 +1,7 @@
package resonantinduction.mechanical.turbine;
package resonantinduction.mechanical.mech.turbine;
import resonantinduction.mechanical.energy.grid.MechanicalNode;
import resonantinduction.mechanical.mech.MechanicalNode;
import net.minecraftforge.common.util.ForgeDirection;
import resonantinduction.core.interfaces.IMechanicalNode;
/**
* Turbine's Mechanical node