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:
parent
40fea038be
commit
fa2bcfc279
7 changed files with 117 additions and 0 deletions
13
src/dark/assembly/machine/frame/BlockFrame.java
Normal file
13
src/dark/assembly/machine/frame/BlockFrame.java
Normal 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);
|
||||
}
|
||||
}
|
9
src/dark/assembly/machine/frame/NetworkFrameDesign.java
Normal file
9
src/dark/assembly/machine/frame/NetworkFrameDesign.java
Normal 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
|
||||
{
|
||||
|
||||
}
|
10
src/dark/assembly/machine/frame/NetworkFrameRail.java
Normal file
10
src/dark/assembly/machine/frame/NetworkFrameRail.java
Normal 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;
|
||||
}
|
48
src/dark/assembly/machine/frame/TileEntityFrame.java
Normal file
48
src/dark/assembly/machine/frame/TileEntityFrame.java
Normal 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
|
||||
|
||||
}
|
||||
|
||||
}
|
11
src/dark/assembly/machine/frame/TileEntityFrameMotor.java
Normal file
11
src/dark/assembly/machine/frame/TileEntityFrameMotor.java
Normal 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;
|
||||
}
|
18
src/dark/assembly/machine/red/BlockPistonPlus.java
Normal file
18
src/dark/assembly/machine/red/BlockPistonPlus.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
8
src/dark/assembly/machine/red/TileEntityPistonPlus.java
Normal file
8
src/dark/assembly/machine/red/TileEntityPistonPlus.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package dark.assembly.machine.red;
|
||||
|
||||
import dark.core.prefab.machine.TileEntityMachine;
|
||||
|
||||
public class TileEntityPistonPlus extends TileEntityMachine
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in a new issue