-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add maintenance hatches * fix crash * add internal maintenance system into controllers * add maintenance hatches to multiblocks * fix tape overlay * add maintenance and duct tape recipes * start work on mufflers * fix large gas turbine not forming * turbine work * shift clipboard TE id * add maintenance and muffler functionality to workables * add muffler recipes and tooltips * fix muffler outputting to one slot * use interfaces for mufflers and maintenance in api code * fix bad lce structure * clean up maintenance hatch handling Co-authored-by: DStrand1 <dane@strandboge.com>
- Loading branch information
1 parent
cbc2ea4
commit 62cc800
Showing
65 changed files
with
1,484 additions
and
146 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/main/java/gregtech/api/capability/IMaintenanceHatch.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,37 @@ | ||
package gregtech.api.capability; | ||
|
||
import net.minecraft.util.Tuple; | ||
|
||
public interface IMaintenanceHatch { | ||
|
||
/** | ||
* | ||
* @return int corresponding to maintenance hatch type, bounded [0,3) | ||
*/ | ||
int getType(); | ||
|
||
/** | ||
* Sets this Maintenance Hatch as being duct taped | ||
* @param isTaped is the state of the hatch being taped or not | ||
*/ | ||
void setTaped(boolean isTaped); | ||
|
||
/** | ||
* Stores maintenance data to this MetaTileEntity | ||
* @param maintenanceProblems is the byte value representing the problems | ||
* @param timeActive is the int value representing the total time the parent multiblock has been active | ||
*/ | ||
void storeMaintenanceData(byte maintenanceProblems, int timeActive); | ||
|
||
/** | ||
* | ||
* @return whether this maintenance hatch has maintenance data | ||
*/ | ||
boolean hasMaintenanceData(); | ||
|
||
/** | ||
* reads this MetaTileEntity's maintenance data | ||
* @return Tuple of Byte, Integer corresponding to the maintenance problems, and total time active | ||
*/ | ||
Tuple<Byte, Integer> readMaintenanceData(); | ||
} |
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,15 @@ | ||
package gregtech.api.capability; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
import java.util.List; | ||
|
||
public interface IMufflerHatch { | ||
|
||
void recoverItemsTable(List<ItemStack> recoveryItems); | ||
|
||
/** | ||
* @return true if front face is free and contains only air blocks in 1x1 area | ||
*/ | ||
boolean isFrontFaceFree(); | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/gregtech/api/capability/MultiblockDataCodes.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,9 @@ | ||
package gregtech.api.capability; | ||
|
||
public class MultiblockDataCodes { | ||
public static final int IS_TAPED = 550; | ||
public static final int STORE_MAINTENANCE = 551; | ||
public static final int STORE_TAPED = 552; | ||
public static final int RECIPE_MAP_INDEX = 553; | ||
public static final int IS_FRONT_FACE_FREE = 554; | ||
} |
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.