-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a clockwork powered block and reworked time to use integers.
- Loading branch information
Showing
63 changed files
with
1,143 additions
and
437 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
src/main/java/lumaceon/mods/clockworkphase2/api/ITemporalMaterial.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ase2/api/steammachine/ISteamReceiver.java → ...kworkphase2/api/block/ISteamReceiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/lumaceon/mods/clockworkphase2/api/block/clockwork/IClockworkDestination.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package lumaceon.mods.clockworkphase2.api.block.clockwork; | ||
|
||
import net.minecraftforge.common.util.ForgeDirection; | ||
|
||
public interface IClockworkDestination extends IClockworkTile | ||
{ | ||
public boolean canReceiveFrom(ForgeDirection direction); | ||
|
||
/** | ||
* Called to transfer clockwork energy into this destination. | ||
* | ||
* @param maxReception The amount of energy this destination is being exposed to. | ||
* @return The amount of energy taken by this destination. | ||
*/ | ||
public int receiveClockworkEnergy(ForgeDirection from, int maxReception); | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/lumaceon/mods/clockworkphase2/api/block/clockwork/IClockworkSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package lumaceon.mods.clockworkphase2.api.block.clockwork; | ||
|
||
import net.minecraftforge.common.util.ForgeDirection; | ||
|
||
public interface IClockworkSource extends IClockworkTile | ||
{ | ||
public boolean canDistributeTo(ForgeDirection direction); | ||
|
||
/** | ||
* Called to transfer clockwork energy from this source outward. | ||
* | ||
* @param maxExtraction The amount of energy trying to be extracted. | ||
* @return The amount of energy taken from this source. | ||
*/ | ||
public int distributeClockworkEnergy(ForgeDirection direction, int maxExtraction); | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/lumaceon/mods/clockworkphase2/api/block/clockwork/IClockworkTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package lumaceon.mods.clockworkphase2.api.block.clockwork; | ||
|
||
public interface IClockworkTile | ||
{ | ||
public int getMaxCapacity(); | ||
public int getEnergyStored(); | ||
|
||
/** | ||
* All clockwork tiles can be wound up, regardless of whether they are a destination or not. | ||
* @param tension Tension to wind. | ||
* @return The tension that was wound. | ||
*/ | ||
public int wind(int tension); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/main/java/lumaceon/mods/clockworkphase2/api/item/timestream/IReversableTimestream.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/main/java/lumaceon/mods/clockworkphase2/api/item/timestream/ITimestream.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/main/java/lumaceon/mods/clockworkphase2/api/steammachine/ISteamProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.