-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a mechanism for easily adding validation error messages for unique structure requirements. Many multis have specific requirements, but these requirements aren't communicated anywhere and there's no feedback for when the requirements aren't met. This PR allows multis to add error messages easily. For now, it's only implemented on the cryo freezer and gt++ multis, but if this is accepted other multis can add their own validations easily.
- Loading branch information
1 parent
e97c0d0
commit 37023cd
Showing
6 changed files
with
216 additions
and
22 deletions.
There are no files selected for viewing
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 gregtech.api.enums; | ||
|
||
/** | ||
* Used as a bit set for {@link gregtech.api.metatileentity.implementations.MTEMultiBlockBase#mStructureStatus}. | ||
* You can reorder these as needed. | ||
*/ | ||
public enum StructureError { | ||
MISSING_MAINTENANCE, | ||
MISSING_MUFFLER, | ||
UNNEEDED_MUFFLER, | ||
TOO_FEW_CASINGS, | ||
MISSING_CRYO_HATCH, | ||
TOO_MANY_CRYO_HATCHES; | ||
} |
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.