Starting on mechanic blocks in AL

Better pistons & frames. Pistons will be an extended version of the
pistons found in minecraft. Frames will be my own take on the redpower
frames, and the solution to creating cranes & quarries. Though they will
be much easier to use then the redpower frames.
This commit is contained in:
DarkGuardsman 2013-11-13 11:16:14 -05:00
parent 40fea038be
commit fa2bcfc279
7 changed files with 117 additions and 0 deletions

View file

@ -0,0 +1,13 @@
package dark.assembly.machine.frame;
import net.minecraft.block.material.Material;
import dark.core.common.DarkMain;
import dark.core.prefab.machine.BlockMachine;
public class BlockFrame extends BlockMachine
{
public BlockFrame()
{
super(DarkMain.CONFIGURATION, "DMFrame", Material.iron);
}
}

View file

@ -0,0 +1,9 @@
package dark.assembly.machine.frame;
/** All frames, there movers, connections, and sub machines are handled by this network class
*
* @author DarkGuardsman */
public class NetworkFrameDesign
{
}

View file

@ -0,0 +1,10 @@
package dark.assembly.machine.frame;
/** This is a sub network for the frames that handles only one rail of frames
*
* @author DarkGuardsman */
public class NetworkFrameRail
{
/** Animation rotation of the frame wheels */
private float getRotation = 0;
}

View file

@ -0,0 +1,48 @@
package dark.assembly.machine.frame;
import java.util.List;
import dark.api.parts.INetworkPart;
import dark.api.parts.ITileNetwork;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
public class TileEntityFrame extends TileEntity implements INetworkPart
{
@Override
public boolean canTileConnect(Connection type, ForgeDirection dir)
{
// TODO Auto-generated method stub
return false;
}
@Override
public List<TileEntity> getNetworkConnections()
{
// TODO Auto-generated method stub
return null;
}
@Override
public void refresh()
{
// TODO Auto-generated method stub
}
@Override
public ITileNetwork getTileNetwork()
{
// TODO Auto-generated method stub
return null;
}
@Override
public void setTileNetwork(ITileNetwork network)
{
// TODO Auto-generated method stub
}
}

View file

@ -0,0 +1,11 @@
package dark.assembly.machine.frame;
import dark.core.prefab.machine.TileEntityEnergyMachine;
public class TileEntityFrameMotor extends TileEntityEnergyMachine
{
/** Number of times this motor revolves a second of run time */
private float revolutionsASecond = 10;
/** Max limit of blocks this motor can move */
private float getStrenght = 20;
}

View file

@ -0,0 +1,18 @@
package dark.assembly.machine.red;
import net.minecraft.block.material.Material;
import dark.core.common.DarkMain;
import dark.core.prefab.machine.BlockMachine;
/** This will be a piston that can extend from 1 - 20 depending on teir and user settings
*
* @author Guardsman */
public class BlockPistonPlus extends BlockMachine
{
public BlockPistonPlus()
{
super(DarkMain.CONFIGURATION, "DMPiston", Material.piston);
}
}

View file

@ -0,0 +1,8 @@
package dark.assembly.machine.red;
import dark.core.prefab.machine.TileEntityMachine;
public class TileEntityPistonPlus extends TileEntityMachine
{
}