CleanupFormatting
This commit is contained in:
parent
951b309c7d
commit
c0fbd23374
6 changed files with 8 additions and 45 deletions
|
@ -1,35 +0,0 @@
|
||||||
package dark.api.mech;
|
|
||||||
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
|
||||||
import dark.api.parts.ITileConnector;
|
|
||||||
|
|
||||||
/** Think of this in the same way as an electrical device from UE. getforce methods are designed to
|
|
||||||
* get the idea amount of force that a side should be outputting at the time. Apply force is the
|
|
||||||
* input for force for the tile, and should return the actually force the machine is using. Supply
|
|
||||||
* is when the code asks for your tile to output force on the side, just return the force value
|
|
||||||
* don't try to apply the force to other machines.
|
|
||||||
*
|
|
||||||
* Tip Supply should never equal load as everything will stop moving since your need more force to
|
|
||||||
* move an object than it creates as a load, 100Power - 100Load = 0Force/0Movement. The supply of
|
|
||||||
* force should be greater than the load required to do the work
|
|
||||||
*
|
|
||||||
* @author DarkGuardsman */
|
|
||||||
public interface IForceDevice extends ITileConnector
|
|
||||||
{
|
|
||||||
/** Applies force to this tile
|
|
||||||
*
|
|
||||||
* @param side - side its coming from
|
|
||||||
* @param force - amount of force
|
|
||||||
* @return amount of force actually loaded down */
|
|
||||||
public float applyForce(ForgeDirection side, float force);
|
|
||||||
|
|
||||||
/** @param side - side that force should be supplied in
|
|
||||||
* @return force to apply in direction */
|
|
||||||
public float supplyForce(ForgeDirection side);
|
|
||||||
|
|
||||||
/** Idea force to output on the given side. */
|
|
||||||
public float getForceOut(ForgeDirection side);
|
|
||||||
|
|
||||||
/** Idea force to load down on the given side */
|
|
||||||
public float getForceLoad(ForgeDirection side);
|
|
||||||
}
|
|
|
@ -10,7 +10,6 @@ import dark.api.fluid.INetworkFluidPart;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.parts.INetworkPart;
|
||||||
import dark.core.prefab.helpers.FluidHelper;
|
import dark.core.prefab.helpers.FluidHelper;
|
||||||
import dark.core.prefab.tilenetwork.NetworkHandler;
|
import dark.core.prefab.tilenetwork.NetworkHandler;
|
||||||
import dark.core.prefab.tilenetwork.NetworkTileEntities;
|
|
||||||
|
|
||||||
/** Basically the same as network Fluid tiles class with the only difference being in how it stores
|
/** Basically the same as network Fluid tiles class with the only difference being in how it stores
|
||||||
* the fluid. When it goes to sort the fluid it will use the fluid properties to adjust its position
|
* the fluid. When it goes to sort the fluid it will use the fluid properties to adjust its position
|
||||||
|
|
|
@ -10,7 +10,6 @@ import dark.api.parts.INetworkPart;
|
||||||
import dark.core.prefab.helpers.ConnectionHelper;
|
import dark.core.prefab.helpers.ConnectionHelper;
|
||||||
import dark.core.prefab.helpers.FluidHelper;
|
import dark.core.prefab.helpers.FluidHelper;
|
||||||
import dark.core.prefab.tilenetwork.NetworkHandler;
|
import dark.core.prefab.tilenetwork.NetworkHandler;
|
||||||
import dark.core.prefab.tilenetwork.NetworkTileEntities;
|
|
||||||
|
|
||||||
/** Extension on the fluid container network to provide a more advanced reaction to fluid passing
|
/** Extension on the fluid container network to provide a more advanced reaction to fluid passing
|
||||||
* threw each pipe. As well this doubled as a pressure network for those machines that support the
|
* threw each pipe. As well this doubled as a pressure network for those machines that support the
|
||||||
|
|
Loading…
Add table
Reference in a new issue