Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractTranslationsRegistry - Class in net.minheur.potoflux.translations
-
Abstract registry for a lang
- AbstractTranslationsRegistry(String) - Constructor for class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Creates a reg, from the modID
- AbstractTranslationsRegistry.TranslationBuilder - Class in net.minheur.potoflux.translations
-
Builder for translations
- ActionRun - Record Class in net.minheur.potoflux.actionRuns.regs
-
This class creates an action run
- ActionRun(ResourceLocation, Runnable) - Constructor for record class net.minheur.potoflux.actionRuns.regs.ActionRun
-
Creates an instance of a
ActionRunrecord class. - ActionRunRunnable - Class in net.minheur.potoflux.actionRuns.regs
-
This class stores all potoflux action run runnable
- ActionRunRunnable() - Constructor for class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
- ActionRuns - Class in net.minheur.potoflux.actionRuns
-
the potoflux reg for the action runs
- add(String) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Creates a
AbstractTranslationsRegistry.TranslationBuilderwith a raw key - add(String, String...) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Creates a
AbstractTranslationsRegistry.TranslationBuilderwith a main key and children (separated by a.) - add(ActionRun) - Method in class net.minheur.potoflux.actionRuns.regs.CloseRunRegistry
-
Adds an action run to the on close actions
- add(ActionRun) - Method in class net.minheur.potoflux.actionRuns.regs.StartLogicRunRegistry
-
Adds an action run to the on logic start actions
- add(ActionRun) - Method in class net.minheur.potoflux.actionRuns.regs.StartUiRunRegistry
-
Adds an action run to the on UI start actions
- add(Mod, boolean, String) - Static method in class net.minheur.potoflux.loader.mod.update.ModUpdateReg
- add(Candidate) - Static method in class net.minheur.potoflux.loader.mod.update.ModUpdateReg
- add(Tab) - Method in class net.minheur.potoflux.screen.tabs.TabRegistry
-
Adds a tab to the reg
- add(Command) - Method in class net.minheur.potoflux.terminal.CommandRegistry
-
Adds a command to the reg
- add(T) - Method in interface net.minheur.potoflux.registry.IRegistry
-
Adds an item to the reg
- add(T) - Method in class net.minheur.potoflux.registry.RegistryList
-
Method to add an item to the registry.
- addCommand(String, String...) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Adds a translation for a command
- addCommandUse(String, String...) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Adds a translation for a command usage
- addListener(Class<E>, Consumer<E>) - Method in class net.minheur.potoflux.loader.mod.ModEventBus
-
Adds a listener with an event class and a consumer of this event.
This requires the registering mod to explicitly say which event is used. - addListener(EventListener<E>) - Method in class net.minheur.potoflux.loader.mod.ModEventBus
-
Only method references are supported (no lambda expressions).
The listener method must take exactly one parameter.
No inline listeners, ase -> handle(e)ore -> System.out.println() - AddonLoader - Class in net.minheur.potoflux.loader.mod
- AddonLoader() - Constructor for class net.minheur.potoflux.loader.mod.AddonLoader
- addTab(String, String...) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Adds a translation for a tab
- app - Static variable in class net.minheur.potoflux.PotoFlux
-
The actual app.
This contains the JFrame and will be instantiated when the app will run. - appendNoCommand() - Static method in class net.minheur.potoflux.terminal.CommandProcessor
-
Method to write in the terminal that no commands has been found.
- appendOutput(String) - Static method in class net.minheur.potoflux.terminal.CommandProcessor
-
Method used to print something in the terminal.
- argAmountCheck(int, int, List<String>) - Static method in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
Checks for an amount of args, contained between a min and a max
- argAmountCheck(int, List<String>) - Static method in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
Checks for an amount of args, being a fixed amount
- argAmountCheck(List<String>, int...) - Static method in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
Checks for an amount of args, being contained in a given list of allowed amounts
- ASCII - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
asciicommand.
B
- BaseTab - Class in net.minheur.potoflux.screen.tabs
-
The base tab, overridden to create your own tabs.
- BaseTab() - Constructor for class net.minheur.potoflux.screen.tabs.BaseTab
-
Constructor for the tab.
It will do the preset if enabled, and execute (or invokeLater) theBaseTab.setPanel()method, to add data to theBaseTab.PANEL. - browse(String) - Static method in class net.minheur.potoflux.Functions
- buildASCII() - Static method in class net.minheur.potoflux.terminal.Terminal
-
Write the ASCII (the one set in the user prefs).
By default, usingbig - buildPrefix(String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Builder retuning
PtfLogger.buildPrefix(List), but with the categories as a vararg. - buildPrefix(List<String>) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Method to get the prefix of the command.
It contains the time, and all the components given in args. - buildWithCategory(String, String, List<String>) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Builds the message with a main category
C
- Candidate - Record Class in net.minheur.potoflux.loader.mod.update
- Candidate(Mod, boolean, String) - Constructor for record class net.minheur.potoflux.loader.mod.update.Candidate
-
Creates an instance of a
Candidaterecord class. - CATALOG - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs about the mod catalog
- CHECK_POTOFLUX_UPDATE - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
- CHECK_RICK_ROLL - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
- checkNoArgs(List<String>) - Static method in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
Checks if there are no args
- checkRickRoll() - Static method in class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
- checkUpdates() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks online for a newer version of potoflux.
If there is one available, tells the user. - CLEAR - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
clearcommand. - clearArea() - Static method in class net.minheur.potoflux.terminal.CommandProcessor
-
Empties all the terminal content
- close() - Static method in class net.minheur.potoflux.loader.mod.update.ModUpdateReg
- close() - Method in class net.minheur.potoflux.screen.LoadingScreen
- closeReg - Variable in class net.minheur.potoflux.loader.mod.events.RegisterRunsEvent
- CloseRunRegistry - Class in net.minheur.potoflux.actionRuns.regs
-
The main registry for all close action runs
- CloseRunRegistry() - Constructor for class net.minheur.potoflux.actionRuns.regs.CloseRunRegistry
- code - Variable in enum class net.minheur.potoflux.translations.Lang
-
The code of the translations.
Used to get from the user pref - code() - Method in interface net.minheur.potoflux.logger.ILogCategory
-
Getter to override to get the code.
- code() - Method in enum class net.minheur.potoflux.logger.LogCategories
-
Getter for the code
- Command - Record Class in net.minheur.potoflux.terminal
-
A class used to register a command.
- Command(ResourceLocation, String, Consumer<List<String>>) - Constructor for record class net.minheur.potoflux.terminal.Command
-
Creates the command.
It is a hidden command - Command(ResourceLocation, String, Consumer<List<String>>, String) - Constructor for record class net.minheur.potoflux.terminal.Command
-
Creates the command.
It is a normal command - Command(ResourceLocation, String, Consumer<List<String>>, String, boolean) - Constructor for record class net.minheur.potoflux.terminal.Command
-
Creates an instance of a
Commandrecord class. - CommandActions - Class in net.minheur.potoflux.terminal.commands
-
The class containing all potoflux command actions
- CommandActions() - Constructor for class net.minheur.potoflux.terminal.commands.CommandActions
- commandHelp() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns the value of the
commandHelprecord component. - CommandHelp - Class in net.minheur.potoflux.terminal.commands
-
The class containing all potoflux command helps
- CommandHelp() - Constructor for class net.minheur.potoflux.terminal.commands.CommandHelp
- CommandHistorySaver - Class in net.minheur.potoflux.terminal
- CommandHistorySaver() - Constructor for class net.minheur.potoflux.terminal.CommandHistorySaver
- CommandMakerHelpers - Class in net.minheur.potoflux.terminal.commands
- CommandMakerHelpers() - Constructor for class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
- commandOutput() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns the value of the
commandOutputrecord component. - CommandProcessor - Class in net.minheur.potoflux.terminal
-
This class is used to handle the processing of the commands, the input and the output
- CommandProcessor() - Constructor for class net.minheur.potoflux.terminal.CommandProcessor
- CommandRegistry - Class in net.minheur.potoflux.terminal
-
Reg containing all commands of the app.
Commands should be added to this - CommandRegistry() - Constructor for class net.minheur.potoflux.terminal.CommandRegistry
- Commands - Class in net.minheur.potoflux.terminal.commands
-
Registry of all commands of potoflux
- Commands() - Constructor for class net.minheur.potoflux.terminal.commands.Commands
-
Builder to check of the reg has already generated
- CommonTranslations - Class in net.minheur.potoflux.translations.register
-
Translation registry for all common words, that can be used a lot.
- CommonTranslations() - Constructor for class net.minheur.potoflux.translations.register.CommonTranslations
- compatible() - Method in record class net.minheur.potoflux.loader.mod.update.Candidate
-
Returns the value of the
compatiblerecord component. - compatibleVersions() - Element in annotation interface net.minheur.potoflux.loader.mod.Mod
-
The list of all potoflux versions your mod is compatible with.
Should take the form ofcompatibleVersions = {"6.0", "6.1"} - compatibleVersionUrl() - Element in annotation interface net.minheur.potoflux.loader.mod.Mod
-
An online URL, leading to a JSON file.
The file must contain a JSON object.
The object must contain 1 entry by version :
The key of the entry is the version (same as set inMod.version()),
and the content an array of strings. - containsKey(String) - Static method in class net.minheur.potoflux.terminal.CommandRegistry
-
Checks if a key is already used by another command
- createInstance() - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Creates an instance of the tab class (
Tab.tabClass) - createTitle() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
D
- de(String) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
-
Utility to create a German translation
- DE - Enum constant in enum class net.minheur.potoflux.translations.Lang
-
German translations
- declaredLastest() - Method in record class net.minheur.potoflux.loader.mod.update.Candidate
-
Returns the value of the
declaredLastestrecord component. - decompose(String, char) - Static method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Decompose a single string into an array containing the modId and the ID
- DISPLAY_MOD_UPDATES - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
- displayModUpdates() - Static method in class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
- doPreset() - Method in class net.minheur.potoflux.screen.tabs.all.TerminalTab
-
Disable the preset
- doPreset() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
-
Handles if the preset should be executed.
True by default.
E
- ECHO - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
echocommand. - en(String) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
-
Utility to create an English translation
- EN - Enum constant in enum class net.minheur.potoflux.translations.Lang
-
English translations
- enable() - Static method in class net.minheur.potoflux.log.LogSaver
-
Enables the log saving system
- equals(Object) - Method in record class net.minheur.potoflux.actionRuns.regs.ActionRun
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class net.minheur.potoflux.loader.mod.update.Candidate
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class net.minheur.potoflux.terminal.Command
-
Indicates whether some other object is "equal to" this one.
- error(String, String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Print an error log message, with a content and optional categories
- error(String, ILogCategory, String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Print an error log message, with a content, a main log category (in the form of an
ILogCategory) and optional categories - es(String) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
-
Utility to create a Espagnol translation
- ES - Enum constant in enum class net.minheur.potoflux.translations.Lang
-
Espagnol translations
- escapeHtml(String) - Static method in class net.minheur.potoflux.Functions
-
Method to remove characters used in HTML code from a
String - EventListener<E> - Interface in net.minheur.potoflux.utils
-
Used to add event listeners to mod event bus, without telling explicitly the event
- exit(int, int) - Static method in class net.minheur.potoflux.Functions
-
This method is used to call exiting with a delay.
F
- FileTranslations - Class in net.minheur.potoflux.translations.register
-
Registry for all file related translations
- FileTranslations() - Constructor for class net.minheur.potoflux.translations.register.FileTranslations
- FILL_TERMINAL - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
-
This action fills the terminal when the UI starts
- fillOutputTextArea() - Method in class net.minheur.potoflux.terminal.Terminal
-
Fills the output area with the content of the terminal, saved in the files
- fillTerminal() - Static method in class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
-
The action to execute for the terminal filling
- flush() - Method in class net.minheur.potoflux.log.TeeOutputStream
- flushAndSave() - Static method in class net.minheur.potoflux.log.LogSaver
-
Saves the logs to file
- formatMessage(String, Object...) - Static method in class net.minheur.potoflux.Functions
-
Format a message with placeholders.
- fr(String) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
-
Utility to create a French translation
- FR - Enum constant in enum class net.minheur.potoflux.translations.Lang
-
French translations
- fromModId(String) - Static method in class net.minheur.potoflux.PotoFlux
-
PotoFlux's reserved method to get a
ResourceLocationdirectly with PotoFlux's modId. - Functions - Class in net.minheur.potoflux
-
This class stores useful methods for all potoflux.
- Functions() - Constructor for class net.minheur.potoflux.Functions
G
- get() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Getter for the only loading context instance
- get() - Static method in class net.minheur.potoflux.terminal.CommandHistorySaver
- get(String) - Static method in class net.minheur.potoflux.translations.Translations
-
Get a translation in the
Translations.loadedLangfrom its key - get(String) - Static method in class net.minheur.potoflux.translations.TranslationsOld
-
Deprecated.
- getAll() - Static method in class net.minheur.potoflux.actionRuns.regs.CloseRunRegistry
-
Gets all action runs
- getAll() - Static method in class net.minheur.potoflux.actionRuns.regs.StartLogicRunRegistry
-
Gets all action runs
- getAll() - Static method in class net.minheur.potoflux.actionRuns.regs.StartUiRunRegistry
-
Gets all action runs
- getAll() - Static method in class net.minheur.potoflux.loader.mod.update.ModUpdateReg
- getAll() - Static method in class net.minheur.potoflux.screen.tabs.TabRegistry
-
Getter for all the tabs
- getAll() - Static method in class net.minheur.potoflux.terminal.CommandRegistry
-
Getter for all commands
- getAsciiFileContent(String) - Static method in class net.minheur.potoflux.terminal.Terminal
-
Gets the content of an ascii (in the files)
- getCapturingInstance(Object) - Static method in class net.minheur.potoflux.utils.LambdaUtils
-
Tries to extract caught instance (this) if the reference method is an instance reference.
WARNING: this works in most cases (method references non-static), but can fail for certains lambda types (ex : lambdas without captures). - getCommandWithKey(String) - Static method in class net.minheur.potoflux.terminal.CommandRegistry
-
Gets a command object from his key
- getCurrentClassLoader() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Gets the active
ClassLoader.
Used when switching from main to mod class loader - getDevScanUrls() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Used to get the URLs to scan for mods in dev environment
- getFrame() - Method in class net.minheur.potoflux.screen.PotoScreen
-
Getter for the
PotoScreen.frame - getFromObject(String, String) - Static method in class net.minheur.potoflux.utils.Json
-
Gets a string item from an online JSON object
- getFromResourceLoc(ResourceLocation) - Method in class net.minheur.potoflux.screen.PotoScreen
-
Gets the tab from its resource location
- getImplMethod(Serializable) - Static method in class net.minheur.potoflux.utils.LambdaUtils
-
Gets the real method implemented by the reference / lambda.
- getLoadedMods() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Getter for a list of all loaded mods
- getLogAmount() - Static method in class net.minheur.potoflux.utils.LogAmountManager
- getModDataDir() - Static method in class net.minheur.potoflux.PotoFlux
-
Getter for the mod common folder in the appData folder.
Mods should use this to resolve their modIds: this will be their own appData folder - getModEventBus() - Method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Getter for the only mod event bus
- getModProdEnv() - Static method in class net.minheur.potoflux.loader.mod.AddonLoader
- getModsClassLoader() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Getter for the mod class loader (prod)
- getModVersion(String) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Gets a version of a mod.
- getNamespace() - Method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Get the namespace (modID) of the loc
- getOnlineJsonObject(String) - Static method in class net.minheur.potoflux.utils.Json
-
Gets a JSON object from an online file
- getOptionalFeatures() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Getter for the optional features
- getOutputArea() - Method in class net.minheur.potoflux.terminal.Terminal
-
Getter for the
Terminal.outputArea - getPanel() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
-
Getter for the
BaseTab.PANEL. - getPath() - Method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Get the ID of the loc
- getPotofluxModDir() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Getter for the potoflux mods dir
- getProgramDir() - Static method in class net.minheur.potoflux.PotoFlux
-
Getter for the main program AppData folder.
- getStrictUserLang() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Getter for the user lang (direct)
- getTabMap() - Method in class net.minheur.potoflux.screen.PotoScreen
-
Getter for the
PotoScreen.tabMap - getTerminal() - Method in class net.minheur.potoflux.screen.tabs.all.TerminalTab
-
Getter for the
TerminalTab.terminal - getTerminalASCII() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Getter for the terminal's ASCII
- getTheme() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Getter for the user's theme
- getTitle() - Method in class net.minheur.potoflux.screen.tabs.all.HomeTab
-
Used to set the title.
- getTitle() - Method in class net.minheur.potoflux.screen.tabs.all.SettingsTab
-
Used to set the title.
- getTitle() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
-
Used to set the title.
- getTranslations() - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Getter for the
AbstractTranslationsRegistry.modTranslations. - getUserLang() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Getter for the user lang (asking if null)
- getVersion() - Static method in class net.minheur.potoflux.PotoFlux
-
Getter for the app's version.
If unable to get the version, return null. - GSON - Static variable in class net.minheur.potoflux.utils.Json
-
Use this to do your simple JSON commands.
H
- hashCode() - Method in record class net.minheur.potoflux.actionRuns.regs.ActionRun
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.minheur.potoflux.loader.mod.update.Candidate
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns a hash code value for this object.
- HELLO_WORLD - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
hellocommand. - HELP - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
helpcommand. - hidden() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns the value of the
hiddenrecord component. - HIDDEN - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
hidecommand.
It's hidden - HOME - Variable in class net.minheur.potoflux.screen.tabs.Tabs
-
The item of the home tab (
HomeTab). - HomeTab - Class in net.minheur.potoflux.screen.tabs.all
-
Tab class for the home tab
- HomeTab() - Constructor for class net.minheur.potoflux.screen.tabs.all.HomeTab
I
- id() - Method in record class net.minheur.potoflux.actionRuns.regs.ActionRun
-
Returns the value of the
idrecord component. - id() - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Returns the value of the
idrecord component. - id() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns the value of the
idrecord component. - ID - Static variable in class net.minheur.potoflux.PotoFlux
-
The ID for potoflux (namespace)
- ILogCategory - Interface in net.minheur.potoflux.logger
-
Class for creating log categories.
You should implement this in anEnum - info(String, String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Print an info log message, with a content and optional categories
- info(String, ILogCategory, String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Print an info log message, with a content, a main log category (in the form of an
ILogCategory) and optional categories - init() - Static method in class net.minheur.potoflux.log.LogSaver
-
Runs to set up the log saving system
- init() - Static method in class net.minheur.potoflux.utils.LogAmountManager
- INSTANCE - Static variable in class net.minheur.potoflux.actionRuns.ActionRuns
-
The instance of the reg, used to access action runs
- INSTANCE - Static variable in class net.minheur.potoflux.screen.tabs.Tabs
-
The instance of this class, used to keep a link to the tab def
- INSTANCE - Static variable in class net.minheur.potoflux.terminal.commands.Commands
-
The only instance of the reg that should exist
- invokeLater() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
-
Deprecated.
- IRegistry<T extends IRegistryType> - Interface in net.minheur.potoflux.registry
-
A registry for an event.
- IRegistryType - Interface in net.minheur.potoflux.registry
-
Used to tag objects that can be stored in registry lists and registered in events, like tabs or commands.
- isDevEnv() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks if the env is dev
- isModListed(String) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks if a mod is listed (known)
- isModListed(Mod) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks if a mod is listed (known)
- isModLoaded(String) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks if a mod is loaded
- isModLoaded(Mod) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks if a mod is loaded
- isProdEnv() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Checks if the env is prod
- isValidNamespace(String) - Static method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Checks if the namespace is valid
- isValidPath(String) - Static method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Checks if the path is correct
J
- Json - Class in net.minheur.potoflux.utils
-
Class to get a
Gson.
This allows to have less as possible in the project.
K
- key() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns the value of the
keyrecord component.
L
- LambdaUtils - Class in net.minheur.potoflux.utils
-
Utility class for lambas, mainly used in loading mods
- lang(Lang, String) - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
-
Adds an actual translation with the key
- Lang - Enum Class in net.minheur.potoflux.translations
-
This contains all languages supported by potoflux.
- listFromObject(JsonObject, String) - Static method in class net.minheur.potoflux.utils.Json
- listMod(Mod, Class<?>) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Registers a mod to the listed
- listResourceFiles(String) - Static method in class net.minheur.potoflux.Functions
-
Deprecated.
- load(String) - Static method in class net.minheur.potoflux.translations.Translations
-
Allow to change
Translations.loadedLang, by a lang code (String) - load(String) - Static method in class net.minheur.potoflux.translations.TranslationsOld
-
Deprecated.
- load(Lang) - Static method in class net.minheur.potoflux.translations.Translations
-
Allow to change
Translations.loadedLang - load(Lang) - Static method in class net.minheur.potoflux.translations.TranslationsOld
-
Deprecated.
- LOAD_COMMAND_HISTORY - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
- loadAddons() - Method in class net.minheur.potoflux.loader.mod.AddonLoader
- loadCommandHistory() - Static method in class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
- loadFeatures() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Called to load optional features from the file
- loadFrom(List<String>) - Static method in class net.minheur.potoflux.terminal.CommandHistorySaver
- LoadingScreen - Class in net.minheur.potoflux.screen
- LoadingScreen() - Constructor for class net.minheur.potoflux.screen.LoadingScreen
- loadMods() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Load mods that in
PotoFluxLoadingContext.listedModsand compatible. - loadStringArray(String) - Static method in class net.minheur.potoflux.utils.Json
- LOG_DIR - Variable in class net.minheur.potoflux.terminal.commands.Commands
- LogAmountManager - Class in net.minheur.potoflux.utils
- LogAmountManager() - Constructor for class net.minheur.potoflux.utils.LogAmountManager
- LogCategories - Enum Class in net.minheur.potoflux.logger
-
Enum containing all potoflux log categories
- LogSaver - Class in net.minheur.potoflux.log
-
Class responsible for saving logs.
M
- main(String[]) - Static method in class net.minheur.potoflux.PotoFlux
-
The main method, that runs PotoFlux.
It will first check for args, then enable devEnv if args contains it.
We then get version and log it, load all optionalFeatures, set the theme and set the loaded translations.
We get the loading bus, register all into it then list and load mods.
We post all events to the bus, and invoke the app. - makeTranslation() - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Actual method to register translations.
- makeTranslation() - Method in class net.minheur.potoflux.translations.register.CommonTranslations
-
Actual registering
- makeTranslation() - Method in class net.minheur.potoflux.translations.register.FileTranslations
-
Actual registering
- makeTranslation() - Method in class net.minheur.potoflux.translations.register.PotoFluxTranslations
-
Actually add translation
- MAX_SIZE - Static variable in class net.minheur.potoflux.terminal.CommandHistorySaver
- mkModClassLoader() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Create and fill a class loader in prod environment
- mod() - Method in record class net.minheur.potoflux.loader.mod.update.Candidate
-
Returns the value of the
modrecord component. - Mod - Annotation Interface in net.minheur.potoflux.loader.mod
-
The class to annotate your main mod class with.
This contains all main data for the mod (that doesn't need to create the mod to be accessed). - MOD_DIR - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
modDircommand. - MOD_LIST - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
modListcommand. - MOD_LOADER - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs related to loading mods
- MOD_UPDATE - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs in
LogCategories.MOD_LOADERcategory, under mod update - ModEventBus - Class in net.minheur.potoflux.loader.mod
-
Bus for registering all listeners in potoflux.
Mods add theirs methods to the event listeners, so they can be executed on need. - ModEventBus() - Constructor for class net.minheur.potoflux.loader.mod.ModEventBus
- modId() - Element in annotation interface net.minheur.potoflux.loader.mod.Mod
-
The mod ID of your mod.
- ModUpdateReg - Class in net.minheur.potoflux.loader.mod.update
- ModUpdateReg() - Constructor for class net.minheur.potoflux.loader.mod.update.ModUpdateReg
- more() - Method in interface net.minheur.potoflux.logger.ILogCategory
- more() - Method in enum class net.minheur.potoflux.logger.LogCategories
N
- name() - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Returns the value of the
namerecord component. - net.minheur.potoflux - package net.minheur.potoflux
- net.minheur.potoflux.actionRuns - package net.minheur.potoflux.actionRuns
- net.minheur.potoflux.actionRuns.regs - package net.minheur.potoflux.actionRuns.regs
- net.minheur.potoflux.loader - package net.minheur.potoflux.loader
- net.minheur.potoflux.loader.mod - package net.minheur.potoflux.loader.mod
- net.minheur.potoflux.loader.mod.events - package net.minheur.potoflux.loader.mod.events
- net.minheur.potoflux.loader.mod.update - package net.minheur.potoflux.loader.mod.update
- net.minheur.potoflux.log - package net.minheur.potoflux.log
- net.minheur.potoflux.logger - package net.minheur.potoflux.logger
- net.minheur.potoflux.registry - package net.minheur.potoflux.registry
- net.minheur.potoflux.screen - package net.minheur.potoflux.screen
- net.minheur.potoflux.screen.tabs - package net.minheur.potoflux.screen.tabs
- net.minheur.potoflux.screen.tabs.all - package net.minheur.potoflux.screen.tabs.all
- net.minheur.potoflux.terminal - package net.minheur.potoflux.terminal
- net.minheur.potoflux.terminal.commands - package net.minheur.potoflux.terminal.commands
- net.minheur.potoflux.translations - package net.minheur.potoflux.translations
- net.minheur.potoflux.translations.register - package net.minheur.potoflux.translations.register
- net.minheur.potoflux.utils - package net.minheur.potoflux.utils
- net.minheur.potoflux.utils.ressourcelocation - package net.minheur.potoflux.utils.ressourcelocation
- NOPE - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
nopecommand.
It's hidden
O
- OnlineReader - Class in net.minheur.potoflux.utils
-
Utility class to read online files.
- OnlineReader() - Constructor for class net.minheur.potoflux.utils.OnlineReader
- openUpdateDialog(Mod, boolean, String) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
P
- PANEL - Variable in class net.minheur.potoflux.screen.tabs.BaseTab
-
The actual
JPanel, that will be added to the tabbed pane. - post(Object) - Method in class net.minheur.potoflux.loader.mod.ModEventBus
-
This actually posts the events.
When an event is posted, the param given to this method (the event) is then transferred to all method subscribing to the event. - POTATO_COMMAND - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
An Easter egg for Mathis (aka.
- PotoFlux - Class in net.minheur.potoflux
-
Main class for PotoFlux.
- PotoFlux() - Constructor for class net.minheur.potoflux.PotoFlux
- PotoFluxLoadingContext - Class in net.minheur.potoflux.loader
-
This is the main class which handles the loading of potoflux and all mods related compounds
- PotoFluxTranslations - Class in net.minheur.potoflux.translations.register
-
Registry for all potoflux translations
- PotoFluxTranslations() - Constructor for class net.minheur.potoflux.translations.register.PotoFluxTranslations
-
Calls the constructor to set the modID
- PotoScreen - Class in net.minheur.potoflux.screen
-
The handler for the main potoflux screen
- PotoScreen() - Constructor for class net.minheur.potoflux.screen.PotoScreen
-
Constructor for creating the screen
- preset() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
-
The preset, that is by default enabled.
It sets the layout and add the title. - processCommand(String) - Static method in class net.minheur.potoflux.terminal.CommandProcessor
-
Process a raw command to an output in the terminal
- PtfLogger - Class in net.minheur.potoflux.logger
-
Class used to log in potoflux.
- PtfLogger() - Constructor for class net.minheur.potoflux.logger.PtfLogger
Q
- QUIT - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
quitcommand.
R
- read(String) - Static method in class net.minheur.potoflux.utils.OnlineReader
-
Reads the content of an online file as a string
- reg - Variable in class net.minheur.potoflux.loader.mod.events.RegisterCommandsEvent
-
Registry containing all commands.
- reg - Variable in class net.minheur.potoflux.loader.mod.events.RegisterTabsEvent
-
Registry containing all tabs.
- register(RegisterCommandsEvent) - Static method in class net.minheur.potoflux.terminal.commands.Commands
-
Registers the commands to the reg
- register(RegisterRunsEvent) - Static method in class net.minheur.potoflux.actionRuns.ActionRuns
-
This registers all action runs to the main reg
- register(RegisterTabsEvent) - Static method in class net.minheur.potoflux.screen.tabs.Tabs
-
Create the instance of the class, then add the tabs to the events.
This is called on the tab register event. - register(IRegistry<T>) - Method in class net.minheur.potoflux.registry.RegistryList
-
Registering all items in an actual registry.
- registerAll() - Static method in class net.minheur.potoflux.translations.TranslationsOld
-
Deprecated.
- registerByStream(Lang, InputStream) - Static method in class net.minheur.potoflux.translations.TranslationsOld
-
Deprecated.
- RegisterCommandsEvent - Class in net.minheur.potoflux.loader.mod.events
-
Event to register your commands.
- RegisterCommandsEvent() - Constructor for class net.minheur.potoflux.loader.mod.events.RegisterCommandsEvent
- registerLang(AbstractTranslationsRegistry) - Method in class net.minheur.potoflux.loader.mod.events.RegisterLangEvent
-
Call this to add your lang registry to the list
- RegisterLangEvent - Class in net.minheur.potoflux.loader.mod.events
-
Event to register your lang registries.
- RegisterLangEvent() - Constructor for class net.minheur.potoflux.loader.mod.events.RegisterLangEvent
- RegisterRunsEvent - Class in net.minheur.potoflux.loader.mod.events
- RegisterRunsEvent() - Constructor for class net.minheur.potoflux.loader.mod.events.RegisterRunsEvent
- RegisterTabsEvent - Class in net.minheur.potoflux.loader.mod.events
-
Event to register your lang tabs.
- RegisterTabsEvent() - Constructor for class net.minheur.potoflux.loader.mod.events.RegisterTabsEvent
- registerTranslations() - Method in class net.minheur.potoflux.translations.AbstractTranslationsRegistry
-
Actually fill up
AbstractTranslationsRegistry.modTranslations. - registerTranslations(AbstractTranslationsRegistry) - Static method in class net.minheur.potoflux.translations.Translations
-
Adds a translation registry to
Translations.allTranslations - RegistryList<T extends IRegistryType> - Class in net.minheur.potoflux.registry
-
This class is used to store all elements of an event, for a specific mod.
Create one in your registering class, then add your items to it. - RegistryList() - Constructor for class net.minheur.potoflux.registry.RegistryList
- removeProhibitedChar(String) - Static method in class net.minheur.potoflux.Functions
-
Method to remove all characters that could be dangerous in a
Stringinputted by the user - resetTerminalAscii() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Runs the reset for the terminal's ASCII
- resetTheme() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Runs the reset for the theme
- resetUserLang() - Static method in class net.minheur.potoflux.utils.UserPrefsManager
-
Runs the reset for the user lang
- ResourceLocation - Class in net.minheur.potoflux.utils.ressourcelocation
-
The ResourceLocation is used to have a unique identifier from the mod's namespace and the item id
- ResourceLocation(String) - Constructor for class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Creates a resourceLocation with a unique string, that gets decomposed
- ResourceLocation(String, String) - Constructor for class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Creates a ResourceLocation from a namespace and an ID
- ResourceLocationException - Exception in net.minheur.potoflux.utils.ressourcelocation
-
This is thrown when there's an error in a
ResourceLocation - ResourceLocationException(String) - Constructor for exception net.minheur.potoflux.utils.ressourcelocation.ResourceLocationException
-
Throws the exception
- ResourceLocationException(String, Throwable) - Constructor for exception net.minheur.potoflux.utils.ressourcelocation.ResourceLocationException
-
Throws the exception with a cause
- run() - Method in record class net.minheur.potoflux.actionRuns.regs.ActionRun
-
Returns the value of the
runrecord component. - runProgramClosing(int) - Static method in class net.minheur.potoflux.PotoFlux
-
This method should be used to close the app.
- runSaveTerminal() - Static method in class net.minheur.potoflux.terminal.CommandProcessor
-
Saves the terminal content to the file
S
- save(String) - Static method in class net.minheur.potoflux.terminal.CommandHistorySaver
- SAVE_COMMAND_HISTORY - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
- SAVE_TERMINAL - Variable in class net.minheur.potoflux.actionRuns.ActionRuns
-
This action saves the terminal when the app closes
- saveCommandHistory() - Static method in class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
- saveTerminal() - Static method in class net.minheur.potoflux.actionRuns.regs.ActionRunRunnable
-
The action to execute for the terminal saving
- SCREEN - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs about the main screen system
- setDevEnv(boolean) - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
This should only be called once in the scope, setting the environment
- setModClassLoader() - Static method in class net.minheur.potoflux.loader.PotoFluxLoadingContext
-
Turns on the mod class loader
- setOpenedTab(Tab) - Method in class net.minheur.potoflux.screen.PotoScreen
-
Sets the opened tab in the app.
- setPanel() - Method in class net.minheur.potoflux.screen.tabs.all.HomeTab
-
This is the actual method to set the panel.
The overriding class will have to use this to add content to theBaseTab.PANEL. - setPanel() - Method in class net.minheur.potoflux.screen.tabs.all.SettingsTab
-
This is the actual method to set the panel.
The overriding class will have to use this to add content to theBaseTab.PANEL. - setPanel() - Method in class net.minheur.potoflux.screen.tabs.all.TerminalTab
-
This is the actual method to set the panel.
The overriding class will have to use this to add content to theBaseTab.PANEL. - setPanel() - Method in class net.minheur.potoflux.screen.tabs.BaseTab
-
This is the actual method to set the panel.
The overriding class will have to use this to add content to theBaseTab.PANEL. - SETTINGS - Variable in class net.minheur.potoflux.screen.tabs.Tabs
-
The item of the settings tab (
SettingsTab). - SettingsTab - Class in net.minheur.potoflux.screen.tabs.all
-
The settings tab contains all user changeable vars (prefs)
- SettingsTab() - Constructor for class net.minheur.potoflux.screen.tabs.all.SettingsTab
- SOURCE - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
sourcecommand. - startLogicReg - Variable in class net.minheur.potoflux.loader.mod.events.RegisterRunsEvent
- StartLogicRunRegistry - Class in net.minheur.potoflux.actionRuns.regs
-
The main registry for all logic start action runs
- StartLogicRunRegistry() - Constructor for class net.minheur.potoflux.actionRuns.regs.StartLogicRunRegistry
- startUiReg - Variable in class net.minheur.potoflux.loader.mod.events.RegisterRunsEvent
- StartUiRunRegistry - Class in net.minheur.potoflux.actionRuns.regs
-
The main registry for all UI start action runs
- StartUiRunRegistry() - Constructor for class net.minheur.potoflux.actionRuns.regs.StartUiRunRegistry
T
- tab - Static variable in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
A contant for the tabulation
- Tab - Record Class in net.minheur.potoflux.screen.tabs
-
A registry item to make tabs
- Tab(ResourceLocation, String, Class<? extends BaseTab>) - Constructor for record class net.minheur.potoflux.screen.tabs.Tab
-
Creates an instance of a
Tabrecord class. - TAB - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
tabcommand. - TAB_LIST - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
tabListcommand. - tabArrow - Static variable in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
A constant for a tab, preceding an arrow (and space at the end)
- tabClass() - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Returns the value of the
tabClassrecord component. - tabLine - Static variable in class net.minheur.potoflux.terminal.commands.CommandMakerHelpers
-
A constant for a tabulation, preceded by a new line.
- TabRegistry - Class in net.minheur.potoflux.screen.tabs
-
Registry to stores all tabs.
All tabs should be added to it, otherwise they will not be found by the app. - TabRegistry() - Constructor for class net.minheur.potoflux.screen.tabs.TabRegistry
- Tabs - Class in net.minheur.potoflux.screen.tabs
-
Registry of the potoflux tabs
- TeeOutputStream - Class in net.minheur.potoflux.log
-
Custom output stream
- TeeOutputStream(OutputStream, OutputStream) - Constructor for class net.minheur.potoflux.log.TeeOutputStream
- Terminal - Class in net.minheur.potoflux.terminal
-
The main tab used to handle the terminal
- Terminal(JPanel) - Constructor for class net.minheur.potoflux.terminal.Terminal
-
Init the terminal
- TERMINAL - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs talking about the potoflux terminal
- TERMINAL - Variable in class net.minheur.potoflux.screen.tabs.Tabs
-
The item of the terminal tab (
TerminalTab). - TerminalTab - Class in net.minheur.potoflux.screen.tabs.all
-
The tab that contains the terminal of potoflux.
- TerminalTab() - Constructor for class net.minheur.potoflux.screen.tabs.all.TerminalTab
- THEME - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs about the theme
- TIME - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
timecommand. - toString() - Method in record class net.minheur.potoflux.actionRuns.regs.ActionRun
-
Returns a string representation of this record class.
- toString() - Method in record class net.minheur.potoflux.loader.mod.update.Candidate
-
Returns a string representation of this record class.
- toString() - Method in record class net.minheur.potoflux.screen.tabs.Tab
-
Returns a string representation of this record class.
- toString() - Method in record class net.minheur.potoflux.terminal.Command
-
Returns a string representation of this record class.
- toString() - Method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Merge correctly the loc together
- TranslationBuilder(String) - Constructor for class net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
-
Creates the builder
- Translations - Class in net.minheur.potoflux.translations
-
the class that handle translations
- Translations() - Constructor for class net.minheur.potoflux.translations.Translations
- TRANSLATIONS - Enum constant in enum class net.minheur.potoflux.logger.LogCategories
-
All logs about the translation system
- TranslationsOld - Class in net.minheur.potoflux.translations
-
Deprecated, for removal: This API element is subject to removal in a future version.
- TranslationsOld() - Constructor for class net.minheur.potoflux.translations.TranslationsOld
-
Deprecated.
U
- updateStage(String) - Method in class net.minheur.potoflux.screen.LoadingScreen
- UserPrefsManager - Class in net.minheur.potoflux.utils
-
This class is used to store and retrieve user preferences.
- UserPrefsManager() - Constructor for class net.minheur.potoflux.utils.UserPrefsManager
V
- validNamespaceChar(char) - Static method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Checks a char of the namespace
- validPathChar(char) - Static method in class net.minheur.potoflux.utils.ressourcelocation.ResourceLocation
-
Checks a char of the ID
- valueOf(String) - Static method in enum class net.minheur.potoflux.logger.LogCategories
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.minheur.potoflux.translations.Lang
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.minheur.potoflux.logger.LogCategories
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.minheur.potoflux.translations.Lang
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Element in annotation interface net.minheur.potoflux.loader.mod.Mod
-
The version of your mod.
- VERSION - Variable in class net.minheur.potoflux.terminal.commands.Commands
-
Command for the
ptfVersioncommand.
W
- warning(String, String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Print a warning log message, with a content and optional categories
- warning(String, ILogCategory, String...) - Static method in class net.minheur.potoflux.logger.PtfLogger
-
Print a warning log message, with a content, a main log category (in the form of an
ILogCategory) and optional categories - write(byte[], int, int) - Method in class net.minheur.potoflux.log.TeeOutputStream
- write(int) - Method in class net.minheur.potoflux.log.TeeOutputStream
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form