Cleanup
This commit is contained in:
parent
70d2105ddf
commit
2cd0cd9adc
25 changed files with 181 additions and 216 deletions
|
@ -6,11 +6,10 @@
|
||||||
|
|
||||||
package dark.fluid.client.model;
|
package dark.fluid.client.model;
|
||||||
|
|
||||||
import dark.fluid.common.machines.TileEntityTank;
|
|
||||||
import dark.fluid.common.pipes.TileEntityPipe;
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import dark.fluid.common.machines.TileEntityTank;
|
||||||
|
|
||||||
public class ModelLiquidTank extends ModelBase
|
public class ModelLiquidTank extends ModelBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,6 @@ package dark.fluid.client.model;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
|
|
||||||
public class ModelTankSide extends ModelBase
|
public class ModelTankSide extends ModelBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,9 +10,7 @@ import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||||
import dark.fluid.client.model.ModelConstructionPump;
|
import dark.fluid.client.model.ModelConstructionPump;
|
||||||
import dark.fluid.client.model.ModelLargePipe;
|
|
||||||
import dark.fluid.client.model.ModelPump;
|
import dark.fluid.client.model.ModelPump;
|
||||||
import dark.fluid.client.model.ModelReleaseValve;
|
|
||||||
import dark.fluid.client.model.ModelSink;
|
import dark.fluid.client.model.ModelSink;
|
||||||
import dark.fluid.client.model.ModelTankSide;
|
import dark.fluid.client.model.ModelTankSide;
|
||||||
import dark.fluid.common.FluidMech;
|
import dark.fluid.common.FluidMech;
|
||||||
|
@ -26,9 +24,7 @@ public class BlockRenderHelper implements ISimpleBlockRenderingHandler
|
||||||
private ModelPump modelPump = new ModelPump();
|
private ModelPump modelPump = new ModelPump();
|
||||||
private ModelGearRod modelRod = new ModelGearRod();
|
private ModelGearRod modelRod = new ModelGearRod();
|
||||||
private ModelGenerator modelGen = new ModelGenerator();
|
private ModelGenerator modelGen = new ModelGenerator();
|
||||||
private ModelLargePipe SixPipe = new ModelLargePipe();
|
|
||||||
private ModelTankSide tank = new ModelTankSide();
|
private ModelTankSide tank = new ModelTankSide();
|
||||||
private ModelReleaseValve valve = new ModelReleaseValve();
|
|
||||||
private ModelSink sink = new ModelSink();
|
private ModelSink sink = new ModelSink();
|
||||||
private ModelConstructionPump conPump = new ModelConstructionPump();
|
private ModelConstructionPump conPump = new ModelConstructionPump();
|
||||||
|
|
||||||
|
|
|
@ -8,20 +8,13 @@ import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import dark.fluid.client.model.ModelLargePipe;
|
import dark.fluid.client.model.ModelLargePipe;
|
||||||
import dark.fluid.client.model.ModelLiquidTank;
|
|
||||||
import dark.fluid.client.model.ModelReleaseValve;
|
import dark.fluid.client.model.ModelReleaseValve;
|
||||||
import dark.fluid.client.render.pipe.RenderPipe;
|
import dark.fluid.client.render.pipe.RenderPipe;
|
||||||
import dark.fluid.common.FluidMech;
|
import dark.fluid.common.FluidMech;
|
||||||
import dark.mech.client.model.ModelGearRod;
|
|
||||||
import dark.mech.client.model.ModelGenerator;
|
|
||||||
|
|
||||||
/** special tanks to Mekanism github */
|
|
||||||
public class ItemRenderHelper implements IItemRenderer
|
public class ItemRenderHelper implements IItemRenderer
|
||||||
{
|
{
|
||||||
private ModelGearRod modelRod = new ModelGearRod();
|
|
||||||
private ModelGenerator modelGen = new ModelGenerator();
|
|
||||||
private ModelLargePipe SixPipe = new ModelLargePipe();
|
private ModelLargePipe SixPipe = new ModelLargePipe();
|
||||||
private ModelLiquidTank tank = new ModelLiquidTank();
|
|
||||||
private ModelReleaseValve valve = new ModelReleaseValve();
|
private ModelReleaseValve valve = new ModelReleaseValve();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -2,7 +2,6 @@ package dark.fluid.client.render;
|
||||||
|
|
||||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
@ -12,7 +11,6 @@ import dark.fluid.common.FluidMech;
|
||||||
import dark.fluid.common.machines.TileEntityReleaseValve;
|
import dark.fluid.common.machines.TileEntityReleaseValve;
|
||||||
import dark.hydraulic.api.ColorCode;
|
import dark.hydraulic.api.ColorCode;
|
||||||
|
|
||||||
|
|
||||||
public class RenderReleaseValve extends TileEntitySpecialRenderer
|
public class RenderReleaseValve extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
private ModelLargePipe SixPipe;
|
private ModelLargePipe SixPipe;
|
||||||
|
@ -31,12 +29,11 @@ public class RenderReleaseValve extends TileEntitySpecialRenderer
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
GL11.glTranslatef((float) d + 0.5F, (float) d1 + 1.5F, (float) d2 + 0.5F);
|
GL11.glTranslatef((float) d + 0.5F, (float) d1 + 1.5F, (float) d2 + 0.5F);
|
||||||
GL11.glScalef(1.0F, -1F, -1F);
|
GL11.glScalef(1.0F, -1F, -1F);
|
||||||
ForgeDirection dir = ForgeDirection.UNKNOWN;
|
|
||||||
if (te instanceof TileEntityReleaseValve)
|
if (te instanceof TileEntityReleaseValve)
|
||||||
{
|
{
|
||||||
ents = ((TileEntityReleaseValve) te).connected;
|
ents = ((TileEntityReleaseValve) te).connected;
|
||||||
}
|
}
|
||||||
bindTextureByName(this.getPipeTexture(15));
|
bindTextureByName(RenderReleaseValve.getPipeTexture(15));
|
||||||
if (ents[0] != null)
|
if (ents[0] != null)
|
||||||
SixPipe.renderBottom();
|
SixPipe.renderBottom();
|
||||||
if (ents[1] != null)
|
if (ents[1] != null)
|
||||||
|
@ -51,7 +48,8 @@ public class RenderReleaseValve extends TileEntitySpecialRenderer
|
||||||
SixPipe.renderLeft();
|
SixPipe.renderLeft();
|
||||||
SixPipe.renderMiddle();
|
SixPipe.renderMiddle();
|
||||||
bindTextureByName(FluidMech.MODEL_TEXTURE_DIRECTORY + "ReleaseValve.png");
|
bindTextureByName(FluidMech.MODEL_TEXTURE_DIRECTORY + "ReleaseValve.png");
|
||||||
if(ents[1] == null)valve.render();
|
if (ents[1] == null)
|
||||||
|
valve.render();
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,17 +3,14 @@ package dark.fluid.client.render;
|
||||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import net.minecraftforge.liquids.ILiquidTank;
|
|
||||||
import net.minecraftforge.liquids.LiquidStack;
|
import net.minecraftforge.liquids.LiquidStack;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import dark.fluid.client.model.ModelTankSide;
|
import dark.fluid.client.model.ModelTankSide;
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.machines.TileEntityTank;
|
import dark.fluid.common.machines.TileEntityTank;
|
||||||
import dark.hydraulic.api.ColorCode;
|
import dark.hydraulic.api.ColorCode;
|
||||||
import dark.hydraulic.helpers.LiquidRenderer;
|
import dark.hydraulic.helpers.LiquidRenderer;
|
||||||
import dark.library.DarkMain;
|
|
||||||
|
|
||||||
public class RenderTank extends TileEntitySpecialRenderer
|
public class RenderTank extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package dark.fluid.client.render.pipe;
|
package dark.fluid.client.render.pipe;
|
||||||
|
|
||||||
import dark.fluid.common.pipes.TileEntityPipe;
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
|
import dark.fluid.common.pipes.TileEntityPipe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for TileEntity Renders that extend the pipe class to use instead of extending
|
* Class for TileEntity Renders that extend the pipe class to use instead of extending
|
||||||
|
|
|
@ -8,6 +8,7 @@ import net.minecraftforge.liquids.LiquidStack;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
import universalelectricity.core.vector.Vector3;
|
||||||
import dark.fluid.client.model.ModelLargePipe;
|
import dark.fluid.client.model.ModelLargePipe;
|
||||||
import dark.fluid.common.FluidMech;
|
import dark.fluid.common.FluidMech;
|
||||||
import dark.fluid.common.pipes.TileEntityGenericPipe;
|
import dark.fluid.common.pipes.TileEntityGenericPipe;
|
||||||
|
@ -16,8 +17,6 @@ import dark.fluid.common.pipes.addon.IPipeExtention;
|
||||||
import dark.hydraulic.api.ColorCode;
|
import dark.hydraulic.api.ColorCode;
|
||||||
import dark.hydraulic.api.FluidRestrictionHandler;
|
import dark.hydraulic.api.FluidRestrictionHandler;
|
||||||
|
|
||||||
import universalelectricity.core.vector.Vector3;
|
|
||||||
|
|
||||||
public class RenderPipe extends TileEntitySpecialRenderer
|
public class RenderPipe extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
private ModelLargePipe SixPipe;
|
private ModelLargePipe SixPipe;
|
||||||
|
@ -103,7 +102,7 @@ public class RenderPipe extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
bool = false;
|
bool = false;
|
||||||
}
|
}
|
||||||
bindTextureByName(this.getPipeTexture(meta, bool));
|
bindTextureByName(RenderPipe.getPipeTexture(meta, bool));
|
||||||
if (side[0])
|
if (side[0])
|
||||||
{
|
{
|
||||||
SixPipe.renderBottom();
|
SixPipe.renderBottom();
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
package dark.fluid.client.render.pipe;
|
package dark.fluid.client.render.pipe;
|
||||||
|
|
||||||
import dark.fluid.client.model.ModelLargePipe;
|
|
||||||
import dark.fluid.common.pipes.TileEntityPipe;
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
|
import dark.fluid.client.model.ModelLargePipe;
|
||||||
|
import dark.fluid.common.pipes.TileEntityPipe;
|
||||||
|
|
||||||
public class RenderPipeWindow implements IPipeExtentionRender
|
public class RenderPipeWindow implements IPipeExtentionRender
|
||||||
{
|
{
|
||||||
private ModelLargePipe SixPipe;
|
private ModelLargePipe SixPipe;
|
||||||
private boolean[] renderSide = new boolean[6];
|
|
||||||
|
|
||||||
public RenderPipeWindow()
|
public RenderPipeWindow()
|
||||||
{
|
{
|
||||||
|
@ -18,7 +17,7 @@ public class RenderPipeWindow implements IPipeExtentionRender
|
||||||
@Override
|
@Override
|
||||||
public void renderAModelAt(RenderPipe renderPipe, TileEntityPipe pipe, Vector3 location, float size, ForgeDirection facingDirection)
|
public void renderAModelAt(RenderPipe renderPipe, TileEntityPipe pipe, Vector3 location, float size, ForgeDirection facingDirection)
|
||||||
{
|
{
|
||||||
renderPipe.bindTextureForPipe(renderPipe.getPipeTexture(0,false));
|
renderPipe.bindTextureForPipe(RenderPipe.getPipeTexture(0,false));
|
||||||
this.render(facingDirection.ordinal());
|
this.render(facingDirection.ordinal());
|
||||||
System.out.println("Rendered Window Pipe");
|
System.out.println("Rendered Window Pipe");
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package dark.fluid.common;
|
package dark.fluid.common;
|
||||||
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
@ -39,8 +38,8 @@ import cpw.mods.fml.common.network.NetworkMod;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import dark.fluid.common.fluids.BlockWasteLiquid;
|
import dark.fluid.common.fluids.BlockWasteLiquid;
|
||||||
import dark.fluid.common.item.ItemParts;
|
import dark.fluid.common.item.ItemParts;
|
||||||
import dark.fluid.common.item.ItemTools;
|
|
||||||
import dark.fluid.common.item.ItemParts.Parts;
|
import dark.fluid.common.item.ItemParts.Parts;
|
||||||
|
import dark.fluid.common.item.ItemTools;
|
||||||
import dark.fluid.common.machines.BlockReleaseValve;
|
import dark.fluid.common.machines.BlockReleaseValve;
|
||||||
import dark.fluid.common.machines.BlockSink;
|
import dark.fluid.common.machines.BlockSink;
|
||||||
import dark.fluid.common.machines.BlockTank;
|
import dark.fluid.common.machines.BlockTank;
|
||||||
|
@ -69,7 +68,6 @@ import dark.mech.common.machines.BlockRod;
|
||||||
import dark.mech.common.machines.TileEntityGenerator;
|
import dark.mech.common.machines.TileEntityGenerator;
|
||||||
import dark.mech.common.machines.TileEntityRod;
|
import dark.mech.common.machines.TileEntityRod;
|
||||||
|
|
||||||
|
|
||||||
@ModstatInfo(prefix = "fluidmech")
|
@ModstatInfo(prefix = "fluidmech")
|
||||||
@Mod(modid = FluidMech.MOD_ID, name = FluidMech.MOD_NAME, version = FluidMech.VERSION, dependencies = "after:BasicComponents", useMetadata = true)
|
@Mod(modid = FluidMech.MOD_ID, name = FluidMech.MOD_NAME, version = FluidMech.VERSION, dependencies = "after:BasicComponents", useMetadata = true)
|
||||||
@NetworkMod(channels = { FluidMech.CHANNEL }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketManager.class)
|
@NetworkMod(channels = { FluidMech.CHANNEL }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketManager.class)
|
||||||
|
@ -161,21 +159,21 @@ public class FluidMech extends DummyModContainer
|
||||||
CONFIGURATION.load();
|
CONFIGURATION.load();
|
||||||
|
|
||||||
/* BLOCK DECLARATION -- CONFIG LOADER */
|
/* BLOCK DECLARATION -- CONFIG LOADER */
|
||||||
blockGenPipe = new BlockPipe(this.CONFIGURATION.getBlock("Pipes", BLOCK_ID_PREFIX).getInt());
|
blockGenPipe = new BlockPipe(FluidMech.CONFIGURATION.getBlock("Pipes", BLOCK_ID_PREFIX).getInt());
|
||||||
blockMachine = new BlockPumpMachine(this.CONFIGURATION.getBlock("Machines", BLOCK_ID_PREFIX + 1).getInt());
|
blockMachine = new BlockPumpMachine(FluidMech.CONFIGURATION.getBlock("Machines", BLOCK_ID_PREFIX + 1).getInt());
|
||||||
blockRod = new BlockRod(this.CONFIGURATION.getBlock("Mechanical Rod", BLOCK_ID_PREFIX + 3).getInt());
|
blockRod = new BlockRod(FluidMech.CONFIGURATION.getBlock("Mechanical Rod", BLOCK_ID_PREFIX + 3).getInt());
|
||||||
blockGenerator = new BlockGenerator((this.CONFIGURATION.getBlock("Generator", BLOCK_ID_PREFIX + 4).getInt()));
|
blockGenerator = new BlockGenerator((FluidMech.CONFIGURATION.getBlock("Generator", BLOCK_ID_PREFIX + 4).getInt()));
|
||||||
blockReleaseValve = new BlockReleaseValve((this.CONFIGURATION.getBlock("Release Valve", BLOCK_ID_PREFIX + 5).getInt()));
|
blockReleaseValve = new BlockReleaseValve((FluidMech.CONFIGURATION.getBlock("Release Valve", BLOCK_ID_PREFIX + 5).getInt()));
|
||||||
blockTank = new BlockTank(this.CONFIGURATION.getBlock("Tank", BLOCK_ID_PREFIX + 6).getInt());
|
blockTank = new BlockTank(FluidMech.CONFIGURATION.getBlock("Tank", BLOCK_ID_PREFIX + 6).getInt());
|
||||||
blockWasteLiquid = new BlockWasteLiquid(this.CONFIGURATION.getBlock("WasteLiquid", BLOCK_ID_PREFIX + 7).getInt());
|
blockWasteLiquid = new BlockWasteLiquid(FluidMech.CONFIGURATION.getBlock("WasteLiquid", BLOCK_ID_PREFIX + 7).getInt());
|
||||||
blockSink = new BlockSink(this.CONFIGURATION.getBlock("Sink", BLOCK_ID_PREFIX + 8).getInt());
|
blockSink = new BlockSink(FluidMech.CONFIGURATION.getBlock("Sink", BLOCK_ID_PREFIX + 8).getInt());
|
||||||
blockDrain = new BlockDrain(this.CONFIGURATION.getBlock("Drain", BLOCK_ID_PREFIX + 9).getInt());
|
blockDrain = new BlockDrain(FluidMech.CONFIGURATION.getBlock("Drain", BLOCK_ID_PREFIX + 9).getInt());
|
||||||
blockConPump = new BlockConstructionPump(this.CONFIGURATION.getBlock("ConstructionPump", BLOCK_ID_PREFIX + 10).getInt());
|
blockConPump = new BlockConstructionPump(FluidMech.CONFIGURATION.getBlock("ConstructionPump", BLOCK_ID_PREFIX + 10).getInt());
|
||||||
blockPipe = new BlockPipe(this.CONFIGURATION.getBlock("RestrictedPipes", BLOCK_ID_PREFIX + 11).getInt());
|
blockPipe = new BlockPipe(FluidMech.CONFIGURATION.getBlock("RestrictedPipes", BLOCK_ID_PREFIX + 11).getInt());
|
||||||
|
|
||||||
/* ITEM DECLARATION -- COFNGI LOADER */
|
/* ITEM DECLARATION -- COFNGI LOADER */
|
||||||
itemParts = new ItemParts(this.CONFIGURATION.getItem("Parts", ITEM_ID_PREFIX).getInt());
|
itemParts = new ItemParts(FluidMech.CONFIGURATION.getItem("Parts", ITEM_ID_PREFIX).getInt());
|
||||||
itemGauge = new ItemTools(this.CONFIGURATION.getItem("PipeGuage", ITEM_ID_PREFIX + 3).getInt());
|
itemGauge = new ItemTools(FluidMech.CONFIGURATION.getItem("PipeGuage", ITEM_ID_PREFIX + 3).getInt());
|
||||||
if (CONFIGURATION.hasChanged())
|
if (CONFIGURATION.hasChanged())
|
||||||
{
|
{
|
||||||
CONFIGURATION.save();
|
CONFIGURATION.save();
|
||||||
|
@ -234,7 +232,6 @@ public class FluidMech extends DummyModContainer
|
||||||
/* LANG LOADING */
|
/* LANG LOADING */
|
||||||
FMLog.info(" Loaded: " + TranslationHelper.loadLanguages(LANGUAGE_PATH, LANGUAGES_SUPPORTED) + " Languages.");
|
FMLog.info(" Loaded: " + TranslationHelper.loadLanguages(LANGUAGE_PATH, LANGUAGES_SUPPORTED) + " Languages.");
|
||||||
|
|
||||||
|
|
||||||
/* ORE DIRECTORY REGISTER */
|
/* ORE DIRECTORY REGISTER */
|
||||||
OreDictionary.registerOre("bronzeTube", new ItemStack(itemParts, 1, Parts.Bronze.ordinal()));
|
OreDictionary.registerOre("bronzeTube", new ItemStack(itemParts, 1, Parts.Bronze.ordinal()));
|
||||||
OreDictionary.registerOre("ironTube", new ItemStack(itemParts, 1, Parts.Iron.ordinal()));
|
OreDictionary.registerOre("ironTube", new ItemStack(itemParts, 1, Parts.Iron.ordinal()));
|
||||||
|
@ -266,7 +263,7 @@ public class FluidMech extends DummyModContainer
|
||||||
// generator
|
// generator
|
||||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(this.blockGenerator, 1), new Object[] { "@T@", "OVO", "@T@", 'T', new ItemStack(FluidMech.blockRod, 1), '@', "plateSteel", 'O', "basicCircuit", 'V', "motor" }));
|
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(new ItemStack(this.blockGenerator, 1), new Object[] { "@T@", "OVO", "@T@", 'T', new ItemStack(FluidMech.blockRod, 1), '@', "plateSteel", 'O', "basicCircuit", 'V', "motor" }));
|
||||||
// pipe gauge
|
// pipe gauge
|
||||||
GameRegistry.addRecipe(new ItemStack(this.itemGauge, 1, 0), new Object[] { "TVT", " T ", 'V', new ItemStack(itemParts, 1, Parts.Valve.ordinal()), 'T', new ItemStack(itemParts, 1, Parts.Iron.ordinal()) });
|
GameRegistry.addRecipe(new ItemStack(FluidMech.itemGauge, 1, 0), new Object[] { "TVT", " T ", 'V', new ItemStack(itemParts, 1, Parts.Valve.ordinal()), 'T', new ItemStack(itemParts, 1, Parts.Iron.ordinal()) });
|
||||||
// iron tube
|
// iron tube
|
||||||
GameRegistry.addRecipe(new ItemStack(itemParts, 4, Parts.Iron.ordinal()), new Object[] { "@@@", '@', Item.ingotIron });
|
GameRegistry.addRecipe(new ItemStack(itemParts, 4, Parts.Iron.ordinal()), new Object[] { "@@@", '@', Item.ingotIron });
|
||||||
// bronze tube
|
// bronze tube
|
||||||
|
|
|
@ -2,10 +2,9 @@ package dark.fluid.common.item;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A metadata item containing parts of various machines in Liquid Mechanics Mod.
|
* A metadata item containing parts of various machines in Liquid Mechanics Mod.
|
||||||
|
|
|
@ -3,15 +3,14 @@ package dark.fluid.common.item;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
import dark.hydraulic.api.IReadOut;
|
|
||||||
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
import dark.hydraulic.api.IReadOut;
|
||||||
|
|
||||||
public class ItemTools extends ItemBasic
|
public class ItemTools extends ItemBasic
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,9 +2,6 @@ package dark.fluid.common.machines;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
@ -12,6 +9,8 @@ import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
|
||||||
public class BlockReleaseValve extends BlockAdvanced
|
public class BlockReleaseValve extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,13 +3,6 @@ package dark.fluid.common.machines;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import dark.fluid.client.render.BlockRenderHelper;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
import dark.hydraulic.api.FluidRestrictionHandler;
|
|
||||||
import dark.hydraulic.api.INetworkPart;
|
|
||||||
import dark.hydraulic.api.INetworkPipe;
|
|
||||||
import dark.hydraulic.helpers.FluidHelper;
|
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -22,6 +15,11 @@ import net.minecraftforge.common.ForgeDirection;
|
||||||
import net.minecraftforge.liquids.LiquidContainerRegistry;
|
import net.minecraftforge.liquids.LiquidContainerRegistry;
|
||||||
import net.minecraftforge.liquids.LiquidStack;
|
import net.minecraftforge.liquids.LiquidStack;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.client.render.BlockRenderHelper;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
import dark.hydraulic.api.FluidRestrictionHandler;
|
||||||
|
import dark.hydraulic.api.INetworkPart;
|
||||||
|
import dark.hydraulic.helpers.FluidHelper;
|
||||||
|
|
||||||
public class BlockTank extends BlockAdvanced
|
public class BlockTank extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,11 +3,6 @@ package dark.fluid.common.pipes;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
import dark.hydraulic.api.FluidRestrictionHandler;
|
|
||||||
import dark.hydraulic.api.INetworkPipe;
|
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
@ -17,6 +12,10 @@ import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.liquids.ILiquidTank;
|
import net.minecraftforge.liquids.ILiquidTank;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
import dark.hydraulic.api.FluidRestrictionHandler;
|
||||||
|
import dark.hydraulic.api.INetworkPipe;
|
||||||
|
|
||||||
public class BlockPipe extends BlockAdvanced
|
public class BlockPipe extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package dark.fluid.common.pipes;
|
package dark.fluid.common.pipes;
|
||||||
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
|
||||||
public class ItemBlockPipe extends ItemBlock
|
public class ItemBlockPipe extends ItemBlock
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
package dark.fluid.common.pipes;
|
package dark.fluid.common.pipes;
|
||||||
|
|
||||||
import dark.hydraulic.api.ColorCode;
|
|
||||||
import dark.hydraulic.helpers.FluidHelper;
|
|
||||||
import dark.hydraulic.network.PipeNetwork;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import net.minecraftforge.liquids.ILiquidTank;
|
import net.minecraftforge.liquids.ILiquidTank;
|
||||||
import net.minecraftforge.liquids.LiquidContainerRegistry;
|
|
||||||
import net.minecraftforge.liquids.LiquidStack;
|
import net.minecraftforge.liquids.LiquidStack;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import universalelectricity.core.vector.VectorHelper;
|
import universalelectricity.core.vector.VectorHelper;
|
||||||
|
import dark.hydraulic.api.ColorCode;
|
||||||
|
import dark.hydraulic.helpers.FluidHelper;
|
||||||
|
import dark.hydraulic.network.PipeNetwork;
|
||||||
|
|
||||||
public class TileEntityGenericPipe extends TileEntityPipe
|
public class TileEntityGenericPipe extends TileEntityPipe
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package dark.fluid.common.pipes.addon;
|
package dark.fluid.common.pipes.addon;
|
||||||
|
|
||||||
import dark.fluid.common.pipes.TileEntityPipe;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.prefab.network.IPacketReceiver;
|
import universalelectricity.prefab.network.IPacketReceiver;
|
||||||
|
import dark.fluid.common.pipes.TileEntityPipe;
|
||||||
|
|
||||||
public interface IPipeExtention extends IPacketReceiver
|
public interface IPipeExtention extends IPacketReceiver
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,11 +3,6 @@ package dark.fluid.common.pump;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import dark.fluid.client.render.BlockRenderHelper;
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
import dark.hydraulic.network.HydraulicNetworkHelper;
|
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
@ -22,6 +17,10 @@ import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.client.render.BlockRenderHelper;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
import dark.hydraulic.network.HydraulicNetworkHelper;
|
||||||
|
|
||||||
public class BlockConstructionPump extends BlockAdvanced
|
public class BlockConstructionPump extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
package dark.fluid.common.pump;
|
package dark.fluid.common.pump;
|
||||||
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.entity.EntityLiving;
|
import net.minecraft.entity.EntityLiving;
|
||||||
|
@ -14,6 +12,8 @@ import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
|
||||||
public class BlockDrain extends BlockAdvanced
|
public class BlockDrain extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,13 +6,12 @@ import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import dark.hydraulic.helpers.FluidHelper;
|
|
||||||
|
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraft.world.chunk.Chunk;
|
import net.minecraft.world.chunk.Chunk;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.core.vector.Vector2;
|
import universalelectricity.core.vector.Vector2;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
|
import dark.hydraulic.helpers.FluidHelper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simpler pathfinder based on Calclavia's PathFinder from UE api
|
* A simpler pathfinder based on Calclavia's PathFinder from UE api
|
||||||
|
|
|
@ -9,12 +9,6 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import dark.hydraulic.api.IDrain;
|
|
||||||
import dark.hydraulic.api.INetworkPipe;
|
|
||||||
import dark.hydraulic.helpers.FluidHelper;
|
|
||||||
import dark.hydraulic.prefab.tile.TileEntityFluidDevice;
|
|
||||||
|
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
@ -27,6 +21,10 @@ import net.minecraftforge.liquids.LiquidStack;
|
||||||
import universalelectricity.core.vector.Vector2;
|
import universalelectricity.core.vector.Vector2;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import universalelectricity.core.vector.VectorHelper;
|
import universalelectricity.core.vector.VectorHelper;
|
||||||
|
import dark.hydraulic.api.IDrain;
|
||||||
|
import dark.hydraulic.api.INetworkPipe;
|
||||||
|
import dark.hydraulic.helpers.FluidHelper;
|
||||||
|
import dark.hydraulic.prefab.tile.TileEntityFluidDevice;
|
||||||
|
|
||||||
public class TileEntityDrain extends TileEntityFluidDevice implements ITankContainer, IDrain
|
public class TileEntityDrain extends TileEntityFluidDevice implements ITankContainer, IDrain
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
package dark.mech.client.model;
|
package dark.mech.client.model;
|
||||||
|
|
||||||
import dark.mech.common.machines.TileEntityGenerator;
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import dark.mech.common.machines.TileEntityGenerator;
|
||||||
|
|
||||||
public class ModelGenerator extends ModelBase
|
public class ModelGenerator extends ModelBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,10 +2,6 @@ package dark.mech.common.machines;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import dark.fluid.client.render.BlockRenderHelper;
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.entity.EntityLiving;
|
import net.minecraft.entity.EntityLiving;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -15,6 +11,9 @@ import net.minecraft.util.MathHelper;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.client.render.BlockRenderHelper;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
|
||||||
public class BlockGenerator extends BlockAdvanced
|
public class BlockGenerator extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
package dark.mech.common.machines;
|
package dark.mech.common.machines;
|
||||||
|
|
||||||
import dark.fluid.client.render.BlockRenderHelper;
|
|
||||||
import dark.fluid.common.FluidMech;
|
|
||||||
import dark.fluid.common.TabFluidMech;
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.entity.EntityLiving;
|
import net.minecraft.entity.EntityLiving;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -13,6 +10,9 @@ import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.prefab.block.BlockAdvanced;
|
import universalelectricity.prefab.block.BlockAdvanced;
|
||||||
|
import dark.fluid.client.render.BlockRenderHelper;
|
||||||
|
import dark.fluid.common.FluidMech;
|
||||||
|
import dark.fluid.common.TabFluidMech;
|
||||||
|
|
||||||
public class BlockRod extends BlockAdvanced
|
public class BlockRod extends BlockAdvanced
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue