2020-10-05 05:41:50 +00:00
|
|
|
package pm.j4.petroleum.modules.splash;
|
|
|
|
|
2020-12-20 04:25:27 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import net.minecraft.text.LiteralText;
|
2020-10-05 05:41:50 +00:00
|
|
|
import pm.j4.petroleum.PetroleumMod;
|
2020-12-20 04:25:27 +00:00
|
|
|
import pm.j4.petroleum.gui.PModuleConfigEntry;
|
|
|
|
import pm.j4.petroleum.gui.PModuleConfigPane;
|
2020-10-08 04:58:13 +00:00
|
|
|
import pm.j4.petroleum.util.module.ModuleBase;
|
2020-12-20 04:25:27 +00:00
|
|
|
import pm.j4.petroleum.util.module.option.BooleanOption;
|
|
|
|
import pm.j4.petroleum.util.module.option.ConfigurationOption;
|
2020-10-05 05:41:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The type Splash text.
|
|
|
|
*/
|
|
|
|
public class SplashText extends ModuleBase {
|
|
|
|
/**
|
|
|
|
* Instantiates a new Splash text.
|
|
|
|
*/
|
|
|
|
public SplashText() {
|
|
|
|
super("petroleum.splashtext",
|
2020-10-08 04:58:13 +00:00
|
|
|
"petroleum.misc",
|
2020-12-20 04:25:27 +00:00
|
|
|
false,
|
2020-10-05 05:41:50 +00:00
|
|
|
true,
|
2020-12-20 04:25:27 +00:00
|
|
|
true);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<ConfigurationOption> getDefaultConfig() {
|
|
|
|
List<ConfigurationOption> options = new ArrayList<>();
|
|
|
|
options.add(new BooleanOption("petroleum.splashtext.active", "Show the main menu version text.", this));
|
|
|
|
return options;
|
2020-10-05 05:41:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get string.
|
|
|
|
*
|
|
|
|
* @return the string
|
|
|
|
*/
|
|
|
|
public static String get() {
|
|
|
|
if (PetroleumMod.modData != null) {
|
|
|
|
return "Petroleum v" + PetroleumMod.modData.getVersion().getFriendlyString();
|
|
|
|
}
|
|
|
|
return "Petroleum vUnknown";
|
|
|
|
}
|
|
|
|
}
|