aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorAbdiel Kavash <19243993+AbdielKavash@users.noreply.github.com>2024-10-17 05:03:06 -0600
committerGitHub <noreply@github.com>2024-10-17 11:03:06 +0000
commit37c33c050e5c6039f410c6b7360fb146b9aae7a2 (patch)
treeb62bcdf735423e3e0dc8f7834e7bf8da08f0b272 /src/main/java/gregtech/api/util
parentb3639bcb0949526ebad496bc9eeedbc2008ffcfb (diff)
downloadGT5-Unofficial-37c33c050e5c6039f410c6b7360fb146b9aae7a2.tar.gz
GT5-Unofficial-37c33c050e5c6039f410c6b7360fb146b9aae7a2.tar.bz2
GT5-Unofficial-37c33c050e5c6039f410c6b7360fb146b9aae7a2.zip
Reworked cleanroom structure check. (#3312)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/MultiblockTooltipBuilder.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/MultiblockTooltipBuilder.java b/src/main/java/gregtech/api/util/MultiblockTooltipBuilder.java
index 007a73d588..6c4b248aad 100644
--- a/src/main/java/gregtech/api/util/MultiblockTooltipBuilder.java
+++ b/src/main/java/gregtech/api/util/MultiblockTooltipBuilder.java
@@ -131,6 +131,7 @@ public class MultiblockTooltipBuilder {
* Add a separator line
*
* @return Instance this method was called on.
+ * @see #addStructureSeparator()
*/
public MultiblockTooltipBuilder addSeparator() {
return addSeparator(EnumChatFormatting.GRAY, 41);
@@ -721,6 +722,18 @@ public class MultiblockTooltipBuilder {
}
/**
+ * Add a separator line like this, to the structural hint:<br>
+ * -----------------------------------------
+ *
+ * @return Instance this method was called on.
+ * @see #addSeparator()
+ */
+ public MultiblockTooltipBuilder addStructureSeparator() {
+ sLines.add(TAB + "-----------------------------------------");
+ return this;
+ }
+
+ /**
* Use this method to add non-standard structural hint. This info will appear before the standard structural hint.
*
* @param info The line to be added. This should be an entry into minecraft's localization system.