kerosene/remappedSrc/pm/j4/petroleum/modules/splash/SplashText.java

57 lines
1.6 KiB
Java
Raw Normal View History

2020-12-20 04:19:55 +00:00
package pm.j4.kerosene.modules.splash;
2020-12-19 23:30:50 +00:00
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.options.KeyBinding;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.LiteralText;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
2020-12-20 04:19:55 +00:00
import pm.j4.kerosene.PetroleumMod;
import pm.j4.kerosene.gui.PModuleConfigEntry;
import pm.j4.kerosene.util.config.ConfigManager;
import pm.j4.kerosene.util.module.ModuleBase;
import pm.j4.kerosene.util.module.option.BooleanOption;
import pm.j4.kerosene.util.module.option.ConfigurationOption;
import pm.j4.kerosene.util.module.option.KeybindOption;
2020-12-19 23:30:50 +00:00
/**
* The type Splash text.
*/
public class SplashText extends ModuleBase {
/**
* Instantiates a new Splash text.
*/
public SplashText() {
super("petroleum.splashtext",
"petroleum.misc",
false,
true,
true);
}
@Override
public List<PModuleConfigEntry> getConfigEntries() {
List<PModuleConfigEntry> entries = new ArrayList<>();
ConfigurationOption activeToggle = new BooleanOption("Show the main menu version text:");
PModuleConfigEntry activeEntry = new PModuleConfigEntry(activeToggle, new LiteralText("Active"));
entries.add(activeEntry);
return entries;
}
/**
* Get string.
*
* @return the string
*/
public static String get() {
if (PetroleumMod.modData != null) {
return "Petroleum v" + PetroleumMod.modData.getVersion().getFriendlyString();
}
return "Petroleum vUnknown";
}
}