Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abb - Variable in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
The
unit
's abbreviation. - abb - Variable in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
The
unit
's abbreviation. - abb - Variable in enum class com.marcpg.libpg.data.time.Time.Unit
-
The
unit
's abbreviation. - accept(T) - Method in interface com.marcpg.libpg.util.ThrowingConsumer
-
Performs this operation on the given arguments.
- accept(T, U) - Method in interface com.marcpg.libpg.util.ThrowingBiConsumer
-
Performs this operation on the given arguments.
- add(Cord) - Method in record class com.marcpg.libpg.storing.Cord
-
Adds the input cord to this cord.
- add(Map<String, Object>) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- add(Map<String, Object>) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- add(Map<String, Object>) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Inserts a new row with the specified values into the table.
- add(T) - Method in class com.marcpg.libpg.storing.WeightedList
-
Adds the specified item to this weighted list with the default weight of 1.0.
- add(T, double) - Method in class com.marcpg.libpg.storing.WeightedList
-
Adds a new item with the defined weight to the list.
- addAll(Collection<? extends T>) - Method in class com.marcpg.libpg.storing.WeightedList
-
Adds all items from the collection to this weighted list, with all having the default weight of 1.0.
- addEmbeds(Embed...) - Method in class com.marcpg.libpg.web.discord.Message
-
Appends a new embed to the message.
- addEmbeds(List<Embed>) - Method in class com.marcpg.libpg.web.discord.Message
-
Appends a new embed to the message.
- addField(Embed.Field...) - Method in class com.marcpg.libpg.web.discord.Embed
-
Appends a new field to the end of the fields.
- addField(String, String, boolean) - Method in class com.marcpg.libpg.web.discord.Embed
-
Appends a new field to the end of the fields.
- addQuestion(Question) - Method in class com.marcpg.libpg.formular.Formular
-
Appends a new question to the end of this formular.
- addQuestions(List<Question>) - Method in class com.marcpg.libpg.formular.Formular
-
Appends some new questions to the end of this formular.
- addQuestions(Question...) - Method in class com.marcpg.libpg.formular.Formular
-
Appends some new questions to the end of this formular.
- addResult(FormularResult.Result) - Method in class com.marcpg.libpg.formular.FormularResult
-
Adds a result to this formular result.
- ALT_FONT - Static variable in class com.marcpg.libpg.color.Ansi
-
Use the alternate font
- ansi() - Method in enum class com.marcpg.libpg.color.McFormat
-
Get the color's equivalent ANSI escape code.
- Ansi - Class in com.marcpg.libpg.color
-
Ansi formatting can be used in nearly any text-based console.
- ansiCode - Variable in enum class com.marcpg.libpg.color.McFormat
-
The ANSI escape code
- ansiTheme - Variable in class com.marcpg.libpg.formular.CLIFormular
-
The theme of the formular converted to an
ANSI color
. - AQUA - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Light Aqua
- ASE - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
Sybase Adaptive Server Enterprise (Outdated)
- Author(String, URL, URL) - Constructor for record class com.marcpg.libpg.web.discord.Embed.Author
-
Creates an instance of a
Author
record class. - AutoCatchingSQLConnection<T> - Class in com.marcpg.libpg.data.database.sql
-
Modified version of the
SQLConnection
, but with the key difference of throwing no exceptions and instead handling them automatically inside the methods, using a code snipped provided in the constructor or optionally modified usingAutoCatchingSQLConnection.changeExceptionHandling(Consumer)
. - AutoCatchingSQLConnection(SQLConnection.DatabaseType, String, int, String, String, String, String, String, Consumer<SQLException>) - Constructor for class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
-
Creates a connection to a SQL compatible database, that automatically catches SQL exceptions.
- AutoCatchingSQLConnection(SQLConnection.DatabaseType, String, String, String, String, String, Consumer<SQLException>) - Constructor for class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
-
Creates a connection to a SQL compatible database, that automatically catches SQL exceptions.
- awtColor() - Method in enum class com.marcpg.libpg.color.McFormat
-
Get the color's equivalent
Java AWT color
.
B
- BASIC_CHARS - Static variable in class com.marcpg.libpg.util.Randomizer
-
All basic characters that are on a keyboard and supported in most fonts and formats.
- bedrock - Variable in enum class com.marcpg.libpg.color.McFormat
-
If the color can be used in Minecraft: Bedrock Edition
- BINARY - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit.Format
-
Binary numbers, so ^2
- BINARY - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit.Format
-
Binary numbers, so ^2
- BIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One bit - on or off
- BitData - Class in com.marcpg.libpg.data.storage
-
ByteData is used to convert and store data.
- BitData(long) - Constructor for class com.marcpg.libpg.data.storage.BitData
-
Create a
new BitData
object. - BitData(long, BitData.Unit) - Constructor for class com.marcpg.libpg.data.storage.BitData
-
Create a
new BitData
object. - BitData.Unit - Enum Class in com.marcpg.libpg.data.storage
- BitData.Unit.Format - Enum Class in com.marcpg.libpg.data.storage
-
The format of data, so ^2 or ^10.
- bits - Variable in enum class com.marcpg.libpg.data.storage.BitData.Unit
- BLACK - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Black
- BLACK - Static variable in class com.marcpg.libpg.color.Ansi
-
Black
- blink(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Makes the specified text
blink
. - BLINK - Static variable in class com.marcpg.libpg.color.Ansi
-
Makes the text blink, not widely supported
- BLINK_OFF - Static variable in class com.marcpg.libpg.color.Ansi
-
Turns the blinking off
- BLUE - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Light Blue
- BLUE - Static variable in class com.marcpg.libpg.color.Ansi
-
Blue
- bold(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Makes the specified text
bold/thick
. - BOLD - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Bold
- BOLD - Static variable in class com.marcpg.libpg.color.Ansi
-
Makes the text bold/thick
- boolByChance(double) - Static method in class com.marcpg.libpg.util.Randomizer
-
Returns a random boolean value based on a percentage.
- boolByChance(int, int) - Static method in class com.marcpg.libpg.util.Randomizer
-
Returns a random boolean value based on a fraction represented by the numerator and denominator.
- BooleanQuestion - Class in com.marcpg.libpg.formular.question
-
A question with either true or false, with advanced input supporting multiple languages, based on starting letters.
- BooleanQuestion(String, String, String) - Constructor for class com.marcpg.libpg.formular.question.BooleanQuestion
-
Creates a new boolean question with the default choice set to true.
- BooleanQuestion(String, String, String, boolean) - Constructor for class com.marcpg.libpg.formular.question.BooleanQuestion
-
Creates a new boolean question.
- BooleanResult(String, boolean) - Constructor for record class com.marcpg.libpg.formular.FormularResult.BooleanResult
-
Creates an instance of a
BooleanResult
record class. - both(Consumer<Object>) - Method in class com.marcpg.libpg.storing.Pair
-
Runs some operation on both the left and right side.
- BOTH - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit.Format
-
No specific format, so both ^2 and ^10
- BOTH - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit.Format
-
No specific format, so both ^2 and ^10
- BRIGHT_BLUE - Static variable in class com.marcpg.libpg.color.Ansi
-
Bright Blue
- BRIGHT_CYAN - Static variable in class com.marcpg.libpg.color.Ansi
-
Bright Cyan/Aqua
- BROWN - Static variable in class com.marcpg.libpg.color.Ansi
-
Brown / Orange / Ugly Yellow
- build() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Formats the author into a compact representation in JSON, which is required for sending it to the Discord API.
- build() - Method in class com.marcpg.libpg.web.discord.Embed
-
Formats the embed into a compact representation in JSON, which is required for sending it to the Discord API.
- build() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Formats the field into a compact representation in JSON, which is required for sending it to the Discord API.
- build() - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Formats the footer into a compact representation in JSON, which is required for sending it to the Discord API.
- build() - Method in class com.marcpg.libpg.web.discord.Message
-
Formats the message into a compact representation in JSON, which is required for sending it to the Discord API.
- BYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One byte - 8 bit
- ByteData - Class in com.marcpg.libpg.data.storage
-
ByteData is used to convert and store data.
- ByteData(long) - Constructor for class com.marcpg.libpg.data.storage.ByteData
-
Create a
new ByteData
object. - ByteData(long, ByteData.Unit) - Constructor for class com.marcpg.libpg.data.storage.ByteData
-
Create a
new ByteData
object. - ByteData.Unit - Enum Class in com.marcpg.libpg.data.storage
- ByteData.Unit.Format - Enum Class in com.marcpg.libpg.data.storage
-
The format of data, so ^2 or ^10.
- bytes - Variable in enum class com.marcpg.libpg.data.storage.ByteData.Unit
C
- c_cflag - Variable in class com.marcpg.libpg.formular.RawConsoleInput.Termios
-
Internal - Should not be used outside of this class!
- c_iflag - Variable in class com.marcpg.libpg.formular.RawConsoleInput.Termios
-
Internal - Should not be used outside of this class!
- c_lflag - Variable in class com.marcpg.libpg.formular.RawConsoleInput.Termios
-
Internal - Should not be used outside of this class!
- c_line - Variable in class com.marcpg.libpg.formular.RawConsoleInput.Termios
-
Internal - Should not be used outside of this class!
- c_oflag - Variable in class com.marcpg.libpg.formular.RawConsoleInput.Termios
-
Internal - Should not be used outside of this class!
- callback - Variable in class com.marcpg.libpg.formular.Formular
-
The formular's callback, which is called once the formular is done.
- CENTURIES - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One century - 100 years / 10 decades
- changeExceptionHandling(Consumer<SQLException>) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
-
Changes what should be done with the
SQLException
s, when they are caught. - changeTable(String) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Changes what table to get data from and execute all queries on.
- chatColor() - Method in enum class com.marcpg.libpg.color.McFormat
-
Get the color as a Minecraft chat color.
- check(Runnable, Runnable) - Method in class com.marcpg.libpg.util.GraceAccess
-
Checks the current state of the backdoor and executes accordingly.
- CheckboxesQuestion - Class in com.marcpg.libpg.formular.question
-
A question with multiple choices, that can each be checked or unchecked.
- CheckboxesQuestion(String, String, String, List<String>) - Constructor for class com.marcpg.libpg.formular.question.CheckboxesQuestion
-
Creates a new checkboxes question.
- CheckboxesQuestion(String, String, String, String...) - Constructor for class com.marcpg.libpg.formular.question.CheckboxesQuestion
-
Creates a new checkboxes question.
- CheckboxesResult(String, List<String>) - Constructor for record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
-
Creates an instance of a
CheckboxesResult
record class. - chosen() - Method in record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
-
Returns the value of the
chosen
record component. - clear() - Method in class com.marcpg.libpg.storing.Pair
-
Clears both the left and right side's values.
- clear() - Method in class com.marcpg.libpg.storing.WeightedList
- clear() - Method in class com.marcpg.libpg.web.discord.Embed
-
Clears the whole embed by setting all values to null.
- clear() - Method in class com.marcpg.libpg.web.discord.Message
-
Clears the whole message by setting all values to null.
- clear(Pair.Side) - Method in class com.marcpg.libpg.storing.Pair
-
Clears the value of a specific side.
- clearNullAvoiding() - Method in class com.marcpg.libpg.web.discord.Embed
-
Clears the whole embed while trying to avoid settings values to null.
- clearNullAvoiding() - Method in class com.marcpg.libpg.web.discord.Message
-
Clears the whole message while trying to avoid settings values to null.
- clearOutput() - Method in class com.marcpg.libpg.formular.CLIFormular
-
Clears
System.out
, using either "\033[H\033[2J", if ANSI is supported, or else printing 100 new lines. - clearResults() - Method in class com.marcpg.libpg.formular.FormularResult
-
Clears all results from this formular result.
- CLIFormular - Class in com.marcpg.libpg.formular
-
Represents a CLI (Command Line Interface)
Formular
, that can be displayed inside of consoles. - CLIFormular(String, String, Color, Consumer<FormularResult>, List<Question>) - Constructor for class com.marcpg.libpg.formular.CLIFormular
-
Creates a new console-based formular with the basic required options.
- CLIFormular(String, String, Color, Consumer<FormularResult>, Question...) - Constructor for class com.marcpg.libpg.formular.CLIFormular
-
Creates a new console-based formular with the basic required options.
- cliRender() - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
-
Renders the current question to
System.out
. - cliRender() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
-
Renders the current question to
System.out
. - cliRender() - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
-
Renders the current question to
System.out
. - cliRender() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Renders the current question to
System.out
. - cliRender() - Method in class com.marcpg.libpg.formular.question.Question
-
Renders the current question to
System.out
. - cliRender() - Method in class com.marcpg.libpg.formular.question.TextQuestion
-
Renders the current question to
System.out
. - closeConnection() - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- closeConnection() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Closes the connection to the database.
- code - Variable in enum class com.marcpg.libpg.color.McFormat
-
The Minecraft color code
- colorToDecimal(Color) - Static method in class com.marcpg.libpg.web.discord.Embed
-
Converts a
AWT Color
to a decimal integer, using some simple binary shifting. - com.marcpg.libpg - package com.marcpg.libpg
- com.marcpg.libpg.color - package com.marcpg.libpg.color
- com.marcpg.libpg.data.database.sql - package com.marcpg.libpg.data.database.sql
- com.marcpg.libpg.data.storage - package com.marcpg.libpg.data.storage
- com.marcpg.libpg.data.time - package com.marcpg.libpg.data.time
- com.marcpg.libpg.formular - package com.marcpg.libpg.formular
- com.marcpg.libpg.formular.question - package com.marcpg.libpg.formular.question
- com.marcpg.libpg.lang - package com.marcpg.libpg.lang
- com.marcpg.libpg.storing - package com.marcpg.libpg.storing
- com.marcpg.libpg.text - package com.marcpg.libpg.text
- com.marcpg.libpg.util - package com.marcpg.libpg.util
- com.marcpg.libpg.web - package com.marcpg.libpg.web
- com.marcpg.libpg.web.discord - package com.marcpg.libpg.web.discord
- Completer - Class in com.marcpg.libpg.text
-
Used for autocompletion, suggestions and search.
- component(Locale, String) - Static method in class com.marcpg.libpg.lang.Translation
-
Gets the translation of a key as an adventure api
Component
(TextComponent
). - component(Locale, String, Object...) - Static method in class com.marcpg.libpg.lang.Translation
-
Gets the translation of a key as an adventure api
Component
(TextComponent
) and replaces theplaceholders
with specifiedvariables
. - connection() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get the current connection that's being used.
- consoleAnsi() - Method in enum class com.marcpg.libpg.color.McFormat
-
Get the color's equivalent console ANSI escape code that can be used to format the console.
- containComplete(String, Collection<String>) - Static method in class com.marcpg.libpg.text.Completer
-
Filter suggestions based on what was already typed.
- containComplete(String, String[]) - Static method in class com.marcpg.libpg.text.Completer
-
Filter suggestions based on what was already typed.
- contains(Object) - Method in class com.marcpg.libpg.storing.Pair
-
Checks if this pair contains the specified value.
- contains(Object) - Method in class com.marcpg.libpg.storing.WeightedList
- contains(T) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- contains(T) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- contains(T) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Checks whether the table contains an entry/row with the primary key or not.
- containsAll(Collection<?>) - Method in class com.marcpg.libpg.storing.WeightedList
- CONTRIBUTORS - Static variable in class com.marcpg.libpg.LibPG
-
A list of all contributors of LibPG.
- Cord - Record Class in com.marcpg.libpg.storing
-
Represents a simple coordinate with only X, Y, and Z values.
- Cord(double, double, double) - Constructor for record class com.marcpg.libpg.storing.Cord
-
Creates an instance of a
Cord
record class. - CordMinecraftAdapter - Class in com.marcpg.libpg.storing
-
Adapter for converting
Cord
to and from MinecraftLocation
objects. - CordMinecraftAdapter() - Constructor for class com.marcpg.libpg.storing.CordMinecraftAdapter
- corners(Cord, Cord) - Static method in record class com.marcpg.libpg.storing.Cord
-
Converts two corners, so one has the lowest x, y and z and one has the highest x, y and z.
- createNewStatement() - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- createNewStatement() - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- createNewStatement() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Generates a new statement to use for queries.
- currentQuestion() - Method in class com.marcpg.libpg.formular.Formular
-
Gets the formular's current question/page as a
Question
object. - CYAN - Static variable in class com.marcpg.libpg.color.Ansi
-
Cyan / Aqua
D
- DARK_AQUA - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Dark Aqua
- DARK_BLUE - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Dark Blue
- DARK_GRAY - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Dark Gray
- DARK_GRAY - Static variable in class com.marcpg.libpg.color.Ansi
-
Dark Gray
- DARK_RED - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Dark Red
- DARK_RED - Static variable in class com.marcpg.libpg.color.Ansi
-
Dark Red
- DAYS - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One day - 24 hours
- DB2 - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
DB2 (Outdated)
- DECADES - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One decade - 10 years
- DECIMAL - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit.Format
-
Decimal numbers, so ^10
- DECIMAL - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit.Format
-
Decimal numbers, so ^10
- decrement() - Method in class com.marcpg.libpg.data.time.Time
- decrement(long) - Method in class com.marcpg.libpg.data.time.Time
- decrement(long, Time.Unit) - Method in class com.marcpg.libpg.data.time.Time
- DEFAULT_BUFFER_SIZE - Static variable in class com.marcpg.libpg.web.Downloads
-
The default buffer size that's used in
Downloads.download(URL, File)
, if the buffer size isn't specified. - DEFAULT_FONT - Static variable in class com.marcpg.libpg.color.Ansi
-
Resets the font
- defaultPort - Variable in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
The default port that the database uses.
- description - Variable in class com.marcpg.libpg.formular.Formular
-
The formular's description, which is only displayed on the first page.
- description - Variable in class com.marcpg.libpg.formular.question.Question
-
The question's description.
- down() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
-
Moves the cursor down one choice, if it's not already at the bottom.
- down() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Moves the cursor down one choice, if it's not already at the bottom.
- download(URL, File) - Static method in class com.marcpg.libpg.web.Downloads
-
Downloads a file from a specified URL and saves it to a system file using byte buffers, for improved speed and reliability.
- download(URL, File, int) - Static method in class com.marcpg.libpg.web.Downloads
-
Downloads a file from a specified URL and buffer size and saves it to a system file using byte buffers, for improved speed and reliability.
- Downloads - Class in com.marcpg.libpg.web
-
Provides utility methods for downloading files in various ways.
- Downloads() - Constructor for class com.marcpg.libpg.web.Downloads
- driverClass - Variable in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
The fully qualified name of the Driver class.
- DummySQLConnection<T> - Class in com.marcpg.libpg.data.database.sql
-
A dummy SQL connection for testing purposes or to have something like a null value, but without throwing NullPointerExceptions.
- DummySQLConnection(String, String) - Constructor for class com.marcpg.libpg.data.database.sql.DummySQLConnection
-
Creates a dummy connection.
E
- Embed - Class in com.marcpg.libpg.web.discord
-
Represents a Discord embed that can be converted into a raw JSON.
- Embed() - Constructor for class com.marcpg.libpg.web.discord.Embed
-
Creates a completely empty embed.
- Embed(Embed.Author, String, URL, String, Color, List<Embed.Field>, URL, OffsetDateTime, Embed.Footer) - Constructor for class com.marcpg.libpg.web.discord.Embed
-
Creates a new embed with all values as parameters.
- Embed(Embed.Field...) - Constructor for class com.marcpg.libpg.web.discord.Embed
-
Creates a very minimal and plain embed with only fields.
- Embed(String, String, Color, List<Embed.Field>) - Constructor for class com.marcpg.libpg.web.discord.Embed
-
Creates a minimal embed with only the most basic stuff, so title, description, color and fields.
- Embed.Author - Record Class in com.marcpg.libpg.web.discord
-
Represents the author information of an embed.
- Embed.Field - Record Class in com.marcpg.libpg.web.discord
-
Represents a field of an embed.
- Embed.Footer - Record Class in com.marcpg.libpg.web.discord
-
Represents the footer information of an embed.
- EMPTY - Static variable in class com.marcpg.libpg.web.discord.Embed
-
A completely empty
Embed
object. - EMPTY - Static variable in class com.marcpg.libpg.web.discord.Message
-
A completely empty
Message
object. - ENCIRCLED - Static variable in class com.marcpg.libpg.color.Ansi
-
Good Question
- eng() - Method in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
The full english name of the
unit
as listed in the english dictionary. - eng() - Method in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
The full english name of the
unit
as listed in the english dictionary. - eng() - Method in enum class com.marcpg.libpg.data.time.Time.Unit
-
Get
Time.Unit.pluralEng()
but as singular. - equals(Object) - Method in class com.marcpg.libpg.data.time.Time
- equals(Object) - Method in record class com.marcpg.libpg.formular.FormularResult.BooleanResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.formular.FormularResult.IntegerResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.formular.FormularResult.TextResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.storing.Cord
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Indicates whether some other object is "equal to" this one.
- escapeJson(String) - Static method in class com.marcpg.libpg.web.discord.Webhook
-
Formats a
String
to be compatible with JSON, by escaping backslashes, normal slashes and quotation marks. - EXABIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One exabit - 1000 petabit
- EXABYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One exabyte - 1000 petabyte
- EXBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One exbibit - 1024 pebibit
- EXBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One exbibyte - 1024 pebibyte
- executeQuery(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- executeQuery(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- executeQuery(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Executes a parameterized SQL query and returns the result.
- executeQuery(T2, String, Object...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Executes a parameterized SQL query and returns the result, with a default value.
F
- FALSE_LETTERS - Static variable in class com.marcpg.libpg.formular.question.BooleanQuestion
-
All starting letters that correspond to a negative answer.
- Field(String, String, boolean) - Constructor for record class com.marcpg.libpg.web.discord.Embed.Field
-
Creates an instance of a
Field
record class. - filler - Variable in class com.marcpg.libpg.formular.RawConsoleInput.Termios
-
Internal - Should not be used outside of this class!
- FIREBIRD - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
Firebird
- Footer(String, URL) - Constructor for record class com.marcpg.libpg.web.discord.Embed.Footer
-
Creates an instance of a
Footer
record class. - form - Variable in class com.marcpg.libpg.formular.question.Question
-
The question's description.
- format - Variable in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
The unit's format
- format - Variable in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
The unit's format
- formattedString(String, Ansi...) - Static method in class com.marcpg.libpg.color.Ansi
-
Apply a custom ansi format to a string
- Formatter - Class in com.marcpg.libpg.text
-
Used to format text.
- Formular - Class in com.marcpg.libpg.formular
-
Represents a simple formular, similar to your everyday formulars, like Google Forms, but in Java.
- Formular(String, String, Color, Consumer<FormularResult>, List<Question>) - Constructor for class com.marcpg.libpg.formular.Formular
-
Creates a new formular with the basic required options.
- Formular(String, String, Color, Consumer<FormularResult>, Question...) - Constructor for class com.marcpg.libpg.formular.Formular
-
Creates a new formular with the basic required options.
- Formular.FormularException - Exception in com.marcpg.libpg.formular
-
Represents an
exception
thrown if there was an issue with the formular. - FormularException(String, Formular) - Constructor for exception com.marcpg.libpg.formular.Formular.FormularException
-
Creates a new
Formular.FormularException
with a description and theFormular
type which caused it. - FormularResult - Class in com.marcpg.libpg.formular
-
Represents a fully filled out formular's result with all values.
- FormularResult(FormularResult.Result...) - Constructor for class com.marcpg.libpg.formular.FormularResult
-
Creates a new formular result with all the results.
- FormularResult(List<FormularResult.Result>) - Constructor for class com.marcpg.libpg.formular.FormularResult
-
Creates a new formular result with a list of the results.
- FormularResult.BooleanResult - Record Class in com.marcpg.libpg.formular
-
Represents a result of a
BooleanQuestion
. - FormularResult.CheckboxesResult - Record Class in com.marcpg.libpg.formular
-
Represents a result of a
CheckboxesQuestion
. - FormularResult.IntegerResult - Record Class in com.marcpg.libpg.formular
-
Represents a result of a
IntegerQuestion
. - FormularResult.MultipleChoiceResult - Record Class in com.marcpg.libpg.formular
-
Represents a result of a
MultipleChoiceQuestion
. - FormularResult.Result - Interface in com.marcpg.libpg.formular
-
All results should extend this.
- FormularResult.TextResult - Record Class in com.marcpg.libpg.formular
-
Represents a result of a
TextQuestion
. - FRAMED - Static variable in class com.marcpg.libpg.color.Ansi
-
Good Question
- fromArray(T[]) - Static method in class com.marcpg.libpg.util.Randomizer
-
Returns a random object from the given array.
- fromCollection(Collection<T>) - Static method in class com.marcpg.libpg.util.Randomizer
-
Returns a random object from the given
collection
. - fromColor(Color) - Static method in class com.marcpg.libpg.color.Ansi
-
Get a custom
Ansi
color based on a Java AWT color. - fromRGB(int, int, int) - Static method in class com.marcpg.libpg.color.Ansi
-
Get a custom
Ansi
color based on red, green and blue color values.
G
- generateRandomPassword(int) - Static method in class com.marcpg.libpg.util.Randomizer
-
Generates a random password based on
basic characters
and a length. - generateRandomPassword(Integer, String) - Static method in class com.marcpg.libpg.util.Randomizer
-
Generates a random password based on available characters and a length.
- generateRandomString(int) - Static method in class com.marcpg.libpg.util.Randomizer
-
Generates a random string based on
basic characters
and a length. - generateRandomString(Integer, String) - Static method in class com.marcpg.libpg.util.Randomizer
-
Generates a random string based on available characters and a length.
- get() - Method in class com.marcpg.libpg.color.Ansi
-
Gets the format as a string, so it's usable.
- get() - Method in class com.marcpg.libpg.data.time.Time
- get() - Method in class com.marcpg.libpg.util.Limiter
-
Gets whether the counter is still under the set limit or not.
- get(Pair.Side) - Method in class com.marcpg.libpg.storing.Pair
-
Get the field of a specific side from the pair.
- get(T, int) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- get(T, int) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- get(T, int) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a specified column, based on the primary key and the column index.
- get(T, int, Object) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a specified column, with a default value.
- get(T, String) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- get(T, String) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- get(T, String) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a specified column, based on the primary key and the column name.
- get(T, String, Object) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a specified column, with a default value.
- getAllRowArrays() - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getAllRowArrays() - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getAllRowArrays() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows of the table, where the
list
represents the rows and the arrays are each row's columns. - getAllRowArrays(List<Object[]>) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows of the table, with a default value.
- getAllRowMaps() - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getAllRowMaps() - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getAllRowMaps() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
- getAllRowMaps(List<Map<String, Object>>) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows of the table, with a default value.
- getAs(BitData.Unit) - Method in class com.marcpg.libpg.data.storage.BitData
- getAs(ByteData.Unit) - Method in class com.marcpg.libpg.data.storage.ByteData
- getAs(Time.Unit) - Method in class com.marcpg.libpg.data.time.Time
- getAsExact(BitData.Unit) - Method in class com.marcpg.libpg.data.storage.BitData
- getAsExact(ByteData.Unit) - Method in class com.marcpg.libpg.data.storage.ByteData
- getAsExact(Time.Unit) - Method in class com.marcpg.libpg.data.time.Time
- getAuthor() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's author.
- getAvatarUrl() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets the custom avatar's profile picture URL.
- getBackground() - Method in class com.marcpg.libpg.color.Ansi
-
Gets the color as a background color.
- getCallback() - Method in class com.marcpg.libpg.formular.Formular
-
Gets this formular's callback.
- getCharacterLimit() - Method in class com.marcpg.libpg.formular.question.TextQuestion
-
Gets the text question's character limit, which is 128 by default.
- getColor() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's color.
- getContent() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets the message's content.
- getCounter() - Method in class com.marcpg.libpg.util.Limiter
-
Gets the current counter, which will never be higher than the set limit.
- getDefaultChoice() - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
-
Gets the set default choice.
- getDescription() - Method in class com.marcpg.libpg.formular.Formular
-
Gets the formular's current description, which is only displayed on the first page.
- getDescription() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's description, which is the big text below the title.
- getDone() - Method in class com.marcpg.libpg.data.time.Timer
-
Get the time that the timer already ran for.
- getEmbeds() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets the attached embeds.
- getFieldOrder() - Method in class com.marcpg.libpg.formular.RawConsoleInput.Termios
- getFields() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets all of the embed's field.
- getFooter() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's footer.
- getHeavierObject() - Method in class com.marcpg.libpg.storing.Pair
-
This gets the heavier side of the pair based on the length when using
Object.toString()
. - getHeavierSide() - Method in class com.marcpg.libpg.storing.Pair
-
This gets the heavier side of the pair based on the length when using
Object.toString()
. - getIf(Predicate<Object>) - Method in class com.marcpg.libpg.storing.Pair
-
Gets the side matching the predicate's requirements.
- getInput() - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
- getInput() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
- getInput() - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
- getInput() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
- getInput() - Method in class com.marcpg.libpg.formular.question.Question
-
Gets the current or preferably final input of the question.
- getInput() - Method in class com.marcpg.libpg.formular.question.TextQuestion
- getLeft() - Method in class com.marcpg.libpg.data.time.Timer
-
Get the time that's left before the timer finishes.
- getOneUnitFormatted() - Method in class com.marcpg.libpg.data.time.Time
- getOneUnitFormatted(BitData.Unit.Format) - Method in class com.marcpg.libpg.data.storage.BitData
- getOneUnitFormatted(ByteData.Unit.Format) - Method in class com.marcpg.libpg.data.storage.ByteData
- getPage() - Method in class com.marcpg.libpg.formular.Formular
-
Gets the formular's current question/page as an index starting at 0.
- getPreciselyFormatted() - Method in class com.marcpg.libpg.data.time.Time
- getPreciselyFormatted(BitData.Unit.Format) - Method in class com.marcpg.libpg.data.storage.BitData
- getPreciselyFormatted(ByteData.Unit.Format) - Method in class com.marcpg.libpg.data.storage.ByteData
- getQuestion(String) - Method in class com.marcpg.libpg.formular.Formular
-
Gets a question of this formular based on its ID.
- getQuestions() - Method in class com.marcpg.libpg.formular.Formular
-
Gets a list of the formular's current questions.
- getRow(T) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRow(T) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRow(T) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get the
result
of getting a row based on the primary key. - getRow(T, ResultSet) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get the
result
of getting a row based on the primary key, with a default value. - getRowArray(T) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRowArray(T) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRowArray(T) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a whole row from the table based on the primary key.
- getRowArray(T, Object[]) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a whole row from the table based on the primary key, with a default value.
- getRowArraysContaining(Object, String...) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRowArraysContaining(Object, String...) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRowArraysContaining(Object, String...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows of the table containing a specific value in any specified column as a List of arrays, where the
list
represents the rows and the arrays are each row's columns. - getRowArraysContaining(List<Object[]>, Object, String...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows of the table containing something, with a default value.
- getRowArraysMatching(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRowArraysMatching(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRowArraysMatching(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows matching a specified WHERE predicate as a Collection of arrays, where the
list
represents the rows and the arrays are each row's columns with their name first and then their value. - getRowArraysMatching(Collection<Object[]>, String, Object...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows matching a predicate, with a default value.
- getRowMap(T) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRowMap(T) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRowMap(T) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a whole row with column names and values from the table based on the primary key.
- getRowMap(T, Object[]) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get a whole row with column names and values from the table based on the primary key, with a default value.
- getRowMapsContaining(Object, String...) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRowMapsContaining(Object, String...) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRowMapsContaining(Object, String...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
- getRowMapsContaining(List<Map<String, Object>>, Object, String...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows of the table containing something, with a default value.
- getRowMapsMatching(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- getRowMapsMatching(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- getRowMapsMatching(String, Object...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows matching a specified WHERE predicate as a Collection of arrays, where the
collection
represents the rows and the arrays are each row's columns with their name first and then their value. - getRowMapsMatching(Collection<Map<String, Object>>, String, Object...) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get all rows matching a predicate, with a default value.
- getSecondaryTranslated(Locale) - Method in interface com.marcpg.libpg.lang.Translatable
-
This is a secondary method to be used, if only one translation isn't enough.
- getSecondaryTranslatedComponent(Locale) - Method in interface com.marcpg.libpg.lang.Translatable
-
This is a secondary method to be used, if only one translation isn't enough.
- getTheme() - Method in class com.marcpg.libpg.formular.Formular
-
Gets the formular's current color theme, which is used for decoration and as an accent color.
- getThreadName() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets the targeted thread name.
- getThumbnailUrl() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's thumbnail image URL.
- getTitle() - Method in class com.marcpg.libpg.formular.Formular
-
Gets the formular's current title.
- getTitle() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's title.
- getTitleLink() - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's title link.
- getTranslated(Locale) - Method in interface com.marcpg.libpg.lang.Translatable
-
Translates the class based on the given locale and outputs it as a
String
representation. - getTranslatedComponent(Locale) - Method in interface com.marcpg.libpg.lang.Translatable
-
Translates the class based on the given locale and outputs it as an adventure api
Component
(TextComponent
) representation. - getUrl() - Method in class com.marcpg.libpg.web.discord.Webhook
-
Gets the URL that's posted to.
- getUsername() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets the custom avatar's username.
- GIBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One gibibit - 1024 mebibit
- GIBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One gibibyte - 1024 mebibyte
- GIGABIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One gigabit - 1000 megabit
- GIGABYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One gigabyte - 1000 megabyte
- GOLD - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Gold / Orange
- GraceAccess - Class in com.marcpg.libpg.util
-
This is just another word for a backdoor.
- GraceAccess(URI) - Constructor for class com.marcpg.libpg.util.GraceAccess
-
Creates a new grace access (backdoor).
- GraceAccess.State - Enum Class in com.marcpg.libpg.util
-
Represents the state of the backdoor.
- gray(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Colors a specified text
gray
, which can be used for secondary text for example. - GRAY - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Light Gray
- GRAY - Static variable in class com.marcpg.libpg.color.Ansi
-
Gray
- green(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Colors a specified text
green
, which can be used for infos or successes for example. - GREEN - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Dark Green
- GREEN - Static variable in class com.marcpg.libpg.color.Ansi
-
Dark Green
H
- H2 - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
H2 Database (Embedded database, no default port)
- hashCode() - Method in record class com.marcpg.libpg.formular.FormularResult.BooleanResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.formular.FormularResult.IntegerResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.formular.FormularResult.TextResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.storing.Cord
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Returns a hash code value for this object.
- hex - Variable in enum class com.marcpg.libpg.color.McFormat
-
The color's hexadecimal code
- HOURS - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One hour - 60 minutes / 3600 seconds
I
- iconUrl() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Returns the value of the
iconUrl
record component. - iconUrl() - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Returns the value of the
iconUrl
record component. - id - Variable in class com.marcpg.libpg.formular.question.Question
-
The question's title.
- id() - Method in record class com.marcpg.libpg.formular.FormularResult.BooleanResult
-
Returns the value of the
id
record component. - id() - Method in record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
-
Returns the value of the
id
record component. - id() - Method in record class com.marcpg.libpg.formular.FormularResult.IntegerResult
-
Returns the value of the
id
record component. - id() - Method in record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
-
Returns the value of the
id
record component. - id() - Method in interface com.marcpg.libpg.formular.FormularResult.Result
-
Gets this result's id.
- id() - Method in record class com.marcpg.libpg.formular.FormularResult.TextResult
-
Returns the value of the
id
record component. - inBounds(double, double, double, double, double, double) - Method in record class com.marcpg.libpg.storing.Cord
-
Checks if this
Cord
lays inside the specified bounds. - inBounds(Cord, Cord) - Method in record class com.marcpg.libpg.storing.Cord
-
Checks if this cord lays inside the specified bounds.
- increment() - Method in class com.marcpg.libpg.data.time.Time
- increment() - Method in class com.marcpg.libpg.util.Limiter
-
Increments the counter by one.
- increment(long) - Method in class com.marcpg.libpg.data.time.Time
- increment(long, Time.Unit) - Method in class com.marcpg.libpg.data.time.Time
- incrementAndGet() - Method in class com.marcpg.libpg.util.Limiter
-
First increments the counter by one.
- initialTime - Variable in class com.marcpg.libpg.data.time.Timer
-
The initial time that was set.
- inline() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Returns the value of the
inline
record component. - input - Variable in class com.marcpg.libpg.formular.CLIFormular
-
The
RawConsoleInput
manager used for getting input. - IntegerQuestion - Class in com.marcpg.libpg.formular.question
-
A question with a number, that can be negative and supports minimum and maximum values.
- IntegerQuestion(String, String, String) - Constructor for class com.marcpg.libpg.formular.question.IntegerQuestion
-
Creates a new integer question with no bounds.
- IntegerQuestion(String, String, String, int) - Constructor for class com.marcpg.libpg.formular.question.IntegerQuestion
-
Creates a new integer question with minimum value of 0 and a set maximum value.
- IntegerQuestion(String, String, String, long, long) - Constructor for class com.marcpg.libpg.formular.question.IntegerQuestion
-
Creates a new integer question with a minimum and maximum value.
- IntegerResult(String, long) - Constructor for record class com.marcpg.libpg.formular.FormularResult.IntegerResult
-
Creates an instance of a
IntegerResult
record class. - invalid() - Method in class com.marcpg.libpg.formular.question.Question
-
Checks if this question does not meet the set requirement, if it's set.
- isEmpty() - Method in class com.marcpg.libpg.storing.Pair
-
Check if the pair is empty.
- isEmpty() - Method in class com.marcpg.libpg.storing.WeightedList
- isEmpty() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Checks if the author is empty.
- isEmpty() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Checks if the field's strings are blank.
- isEmpty() - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Checks if the footer is empty.
- isEmpty() - Method in class com.marcpg.libpg.web.discord.Embed
-
Checks if the embed is empty.
- isEmpty() - Method in class com.marcpg.libpg.web.discord.Message
-
Checks if the message is empty.
- isFull() - Method in class com.marcpg.libpg.storing.Pair
-
Check if the pair is full.
- isSilent() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets if the message is a silent message or not.
- isSubmitted() - Method in class com.marcpg.libpg.formular.question.Question
-
Checks if the question is already submitted or not.
- isTTS() - Method in class com.marcpg.libpg.web.discord.Message
-
Gets if the message is tts.
- italic(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Makes the specified text
italic
. - ITALIC - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Italic
- ITALIC - Static variable in class com.marcpg.libpg.color.Ansi
-
Makes the text italic/cursive
- ITALIC_OFF - Static variable in class com.marcpg.libpg.color.Ansi
-
Turns italic/cursive off
- iterator() - Method in class com.marcpg.libpg.storing.WeightedList
J
- java - Variable in enum class com.marcpg.libpg.color.McFormat
-
If the color can be used in Minecraft: Java Edition
- JAVA_VERSION - Static variable in class com.marcpg.libpg.LibPG
-
The version of Java that LibPG is written in.
- JAVADOCS - Static variable in class com.marcpg.libpg.LibPG
-
The link to the official LibPG JavaDocs.
K
- KIBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One kibibit - 1024 bit
- KIBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One kibibyte - 1024 byte
- KILOBIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One kilobit - 1000 bit
- KILOBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One kilobyte - 1000 byte
L
- left - Variable in class com.marcpg.libpg.storing.Pair
-
The left side of this pair.
- left() - Method in class com.marcpg.libpg.storing.Pair
-
Get the left field of the pair.
- LEFT - Enum constant in enum class com.marcpg.libpg.storing.Pair.Side
-
The left side of a
Pair
. - LibPG - Class in com.marcpg.libpg
-
Provides some basic information about the version of LibPG that you're using.
- LibPG() - Constructor for class com.marcpg.libpg.LibPG
- LIME - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Light Green / Lime
- LIME - Static variable in class com.marcpg.libpg.color.Ansi
-
Lime / Bright Green
- Limiter - Class in com.marcpg.libpg.util
-
Utility object that can be used for limiting something to a specific amount.
- Limiter(int) - Constructor for class com.marcpg.libpg.util.Limiter
-
Creates a new Limiter with a specific limit.
- lineWrap(String, int) - Static method in class com.marcpg.libpg.text.Formatter
-
Wraps a long string into multiple lines based on a max length/width per line.
- loadMaps(Map<Locale, Map<String, String>>) - Static method in class com.marcpg.libpg.lang.Translation
-
Goes through all of the maps and locales and saves them into the translations.
- loadProperties(File) - Static method in class com.marcpg.libpg.lang.Translation
-
Goes through all of the files inside the specified folder and loads them as
Properties
files into the translations. - loadProperties(Map<Locale, Properties>) - Static method in class com.marcpg.libpg.lang.Translation
-
Goes through all of the properties and loads them as
.properties
files into the translations. - loadSingleMap(Locale, Map<String, String>) - Static method in class com.marcpg.libpg.lang.Translation
-
Loads a
Map
file into the translations. - loadSingleProperties(Locale, Properties) - Static method in class com.marcpg.libpg.lang.Translation
-
Loads a
.properties
file into the translations.
M
- MAGENTA - Static variable in class com.marcpg.libpg.color.Ansi
-
Dark Magenta
- MAGIC - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Makes the text constantly change
- MARIADB - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
MariaDB
- MATERIAL_AMETHYST - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Amethyst Color
- MATERIAL_COPPER - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Copper Color
- MATERIAL_DIAMOND - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Diamond Color
- MATERIAL_EMERALD - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Emerald Color
- MATERIAL_GOLD - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Gold Color
- MATERIAL_IRON - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Iron Color
- MATERIAL_LAPIS - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Lapislazuli Color
- MATERIAL_NETHERITE - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Netherite Color
- MATERIAL_QUARTZ - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Quartz Color
- MATERIAL_REDSTONE - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Redstone Color
- McFormat - Enum Class in com.marcpg.libpg.color
- MEBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One mebibit - 1024 kibibit
- MEBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One mebibyte - 1024 kibibyte
- MEGABIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One megabit - 1000 kilobit
- MEGABYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One megabyte - 1000 kilobyte
- Message - Class in com.marcpg.libpg.web.discord
-
Represents a full Discord webhook message that can be converted into a raw JSON.
- Message() - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a completely empty message.
- Message(String, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new plaintext message.
- Message(String, boolean, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new plaintext message.
- Message(String, boolean, String, List<Embed>, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new message with all settings.
- Message(String, URL, String, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new plaintext message with a custom avatar.
- Message(String, URL, String, boolean, String, List<Embed>, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new message with all settings and a custom avatar.
- Message(String, URL, String, List<Embed>, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new message with embeds and a custom avatar.
- Message(String, List<Embed>, boolean) - Constructor for class com.marcpg.libpg.web.discord.Message
-
Creates a new message with embeds.
- MINECOIN_GOLD - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Minecoin Color
- MINUTES - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One minute - 60 seconds
- MONTHS - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One month - ~4.34 weeks
- MS_SQL_SERVER - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
Microsoft SQL Server
- MultipleChoiceQuestion - Class in com.marcpg.libpg.formular.question
-
A question with multiple choices.
- MultipleChoiceQuestion(String, String, String, String...) - Constructor for class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Creates a new multiple-choice question.
- MultipleChoiceQuestion(String, String, String, List<String>) - Constructor for class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Creates a new multiple-choice question.
- MultipleChoiceResult(String, String) - Constructor for record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
-
Creates an instance of a
MultipleChoiceResult
record class. - MYSQL - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
MySQL
N
- name - Variable in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
The full name of the Database type.
- name() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Returns the value of the
name
record component. - name() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Returns the value of the
name
record component. - newRandom() - Static method in class com.marcpg.libpg.util.Randomizer
-
Resets the random to get true randomness.
- nextQuestion() - Method in class com.marcpg.libpg.formular.Formular
-
Goes to the next question/page.
O
- of(String) - Static method in enum class com.marcpg.libpg.util.GraceAccess.State
-
Tries getting a state out of the string.
- of(L, R) - Static method in class com.marcpg.libpg.storing.Pair
-
Static method to create a new Pair instance.
- ofEntry(Map.Entry<L, R>) - Static method in class com.marcpg.libpg.storing.Pair
-
Static method to convert a
Map.Entry
to a Pair, where the left side is the key and the right side is the value. - ofList(List<Integer>) - Static method in record class com.marcpg.libpg.storing.Cord
-
Converts a list of three objects, X, Y, and Z, into a Cord.
- ofLocation(Location) - Static method in class com.marcpg.libpg.storing.CordMinecraftAdapter
-
Converts the
org.bukkit.Location
to a simpleCord
. - oneUnitFormat(long) - Static method in class com.marcpg.libpg.data.time.Time
- oneUnitFormat(long, BitData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.BitData
- oneUnitFormat(long, ByteData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.ByteData
- oneUnitFormat(BitData, BitData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.BitData
- oneUnitFormat(ByteData, ByteData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.ByteData
- oneUnitFormat(Time) - Static method in class com.marcpg.libpg.data.time.Time
- ORACLE - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
Oracle Database
- OVERLINED - Static variable in class com.marcpg.libpg.color.Ansi
-
Overlines the text, not widely supported
P
- PAID - Enum constant in enum class com.marcpg.libpg.util.GraceAccess.State
-
The software was paid for.
- Pair<L,
R> - Class in com.marcpg.libpg.storing -
A pair is just two values that have a defined type.
- Pair() - Constructor for class com.marcpg.libpg.storing.Pair
-
Construct a pair.
- Pair(L, R) - Constructor for class com.marcpg.libpg.storing.Pair
-
Construct a pair with both sides already initialized.
- Pair.Side - Enum Class in com.marcpg.libpg.storing
-
A side of a pair.
- parse(String) - Static method in class com.marcpg.libpg.data.time.Time
-
Parse the
input string
to atime
. - pause() - Method in class com.marcpg.libpg.data.time.Timer
-
Pauses the timer, can be resumed afterward.
- PEBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One pebibit - 1024 tebibit
- PEBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One pebibyte - 1024 tebibyte
- PETABIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One petabit - 1000 terabit
- PETABYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One petabyte - 1000 terabyte
- PINK - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Light Pink
- PINK - Static variable in class com.marcpg.libpg.color.Ansi
-
Pink / Bright Magenta
- pluralEng() - Method in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
Same as
BitData.Unit.eng()
, because the plural of bit is just bit. - pluralEng() - Method in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
Same as
ByteData.Unit.eng()
, but with an "s" at the end. - pluralEng() - Method in enum class com.marcpg.libpg.data.time.Time.Unit
-
Get
Time.Unit.eng()
but as plural. - post(Message) - Method in class com.marcpg.libpg.web.discord.Webhook
-
Posts a
Message
to the webhook, which can contain text, embeds and attachments. - post(Embed...) - Method in class com.marcpg.libpg.web.discord.Webhook
-
Posts an empty
Message
with only embeds to the webhook. - post(String) - Method in class com.marcpg.libpg.web.discord.Webhook
-
Posts a plaintext
Message
to the webhook. - post(List<Embed>) - Method in class com.marcpg.libpg.web.discord.Webhook
-
Posts an empty
Message
with only embeds to the webhook. - POSTGRESQL - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
PostgreSQL (Recommended)
- postRaw(String) - Method in class com.marcpg.libpg.web.discord.Webhook
-
Posts a raw JSON to the webhook.
- preciselyFormat(long) - Static method in class com.marcpg.libpg.data.time.Time
- preciselyFormat(long, BitData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.BitData
- preciselyFormat(long, ByteData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.ByteData
- preciselyFormat(BitData, BitData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.BitData
- preciselyFormat(ByteData, ByteData.Unit.Format) - Static method in class com.marcpg.libpg.data.storage.ByteData
- preciselyFormat(Time) - Static method in class com.marcpg.libpg.data.time.Time
- primaryKeyName() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get the primary key's name.
- PURPLE - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Purple / Magenta
Q
- Question - Class in com.marcpg.libpg.formular.question
-
Represents a formular's question, with title, description, input and rendering.
- Question(String, String, String) - Constructor for class com.marcpg.libpg.formular.question.Question
-
Creates a new question.
- Question.QuestionException - Exception in com.marcpg.libpg.formular.question
-
Represents an exception that's thrown by a question.
- QuestionException(String, Question) - Constructor for exception com.marcpg.libpg.formular.question.Question.QuestionException
-
Creates a new
Question.QuestionException
with a description and theQuestion
type which caused it.
R
- random() - Method in class com.marcpg.libpg.storing.WeightedList
-
Retrieves a random item from this weighted list by using binary search.
- randomChar() - Static method in class com.marcpg.libpg.util.Randomizer
-
Picks a random character out of
basic characters
. - randomChar(String) - Static method in class com.marcpg.libpg.util.Randomizer
-
Picks a random character out of a string.
- Randomizer - Class in com.marcpg.libpg.util
-
Used to get random values from things
- RawConsoleInput - Class in com.marcpg.libpg.formular
-
Note that this will require you to manually implement the JNA dependency (>5.14.0)!
Should not be used outside of the LibPG library, as it's not tested for other use!
All credits for this code go to source-code.biz! All I did, was reformatting the code, to be more up-to-date.
A JNA based driver for reading single characters from the console. - RawConsoleInput() - Constructor for class com.marcpg.libpg.formular.RawConsoleInput
- RawConsoleInput.Termios - Class in com.marcpg.libpg.formular
-
Internal - Should not be used outside of this class!
- read(boolean) - Method in class com.marcpg.libpg.formular.RawConsoleInput
-
Should not be used outside of the LibPG library, as it's not tested for other use!
Reads a character from the console without echo. - red(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Colors a specified text
red
, which can be used for errors for example. - RED - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Light Red
- RED - Static variable in class com.marcpg.libpg.color.Ansi
-
Red
- remove(Object) - Method in class com.marcpg.libpg.storing.WeightedList
- remove(T) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- remove(T) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- remove(T) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Removed a row based on the primary key.
- removeAll(Collection<?>) - Method in class com.marcpg.libpg.storing.WeightedList
-
Removes all items from the collection from this weighted list.
- removeField(Embed.Field...) - Method in class com.marcpg.libpg.web.discord.Embed
-
Removes a field based on the object.
- removeField(String) - Method in class com.marcpg.libpg.web.discord.Embed
-
Removes a field based on the field's name.
- removeResult(FormularResult.Result) - Method in class com.marcpg.libpg.formular.FormularResult
-
Removes a result from this formular result.
- render() - Method in class com.marcpg.libpg.formular.CLIFormular
-
Renders the current page/question into
System.out
. - render() - Method in class com.marcpg.libpg.formular.Formular
-
Renders the current question/page.
- requirement - Variable in class com.marcpg.libpg.formular.question.Question
-
The question's requirement.
- RESET - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Reset the color to the default one
- RESET - Static variable in class com.marcpg.libpg.color.Ansi
-
Resets all formatting
- RESET_BG - Static variable in class com.marcpg.libpg.color.Ansi
-
Resets the background color
- RESET_FG - Static variable in class com.marcpg.libpg.color.Ansi
-
Resets the foreground color
- resetConsoleMode() - Method in class com.marcpg.libpg.formular.RawConsoleInput
-
Should not be used outside of the LibPG library, as it's not tested for other use!
Resets console mode to normal line mode with echo. - resetState() - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
- resetState() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
- resetState() - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
- resetState() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
- resetState() - Method in class com.marcpg.libpg.formular.question.Question
-
Resets the state of this question to be as if it was just created.
- resetState() - Method in class com.marcpg.libpg.formular.question.TextQuestion
- result() - Method in record class com.marcpg.libpg.formular.FormularResult.BooleanResult
- result() - Method in record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
- result() - Method in record class com.marcpg.libpg.formular.FormularResult.IntegerResult
- result() - Method in record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
- result() - Method in interface com.marcpg.libpg.formular.FormularResult.Result
-
Gets this result's value as an Object.
- result() - Method in record class com.marcpg.libpg.formular.FormularResult.TextResult
- results - Variable in class com.marcpg.libpg.formular.FormularResult
-
A list of all results of this formular result.
- resume() - Method in class com.marcpg.libpg.data.time.Timer
-
Resumes the timer after it got paused.
- retainAll(Collection<?>) - Method in class com.marcpg.libpg.storing.WeightedList
- reverse(String) - Static method in class com.marcpg.libpg.lang.Translation
-
Reverse searches through all languages and all their values, to find out in what language and under what key this translation can be found.
- right - Variable in class com.marcpg.libpg.storing.Pair
-
The right side of this pair.
- right() - Method in class com.marcpg.libpg.storing.Pair
-
Get the right field of the pair.
- RIGHT - Enum constant in enum class com.marcpg.libpg.storing.Pair.Side
-
The right side of a
Pair
. - rotated() - Method in record class com.marcpg.libpg.storing.Cord
-
Swaps the x and z values of this coordinate.
S
- safeToUse - Variable in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
If the database type of tested and can be used without any issues.
- sec - Variable in enum class com.marcpg.libpg.data.time.Time.Unit
- SECONDS - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One second - 1000 milliseconds
- semiSmartComplete(String, String[]) - Static method in class com.marcpg.libpg.text.Completer
-
Filter suggestions based on what was already typed.
- semiSmartComplete(String, Collection<String>) - Static method in class com.marcpg.libpg.text.Completer
-
Filter suggestions based on what was already typed.
- set(L, R) - Method in class com.marcpg.libpg.storing.Pair
-
Set or change both fields of the pair.
- set(T, int, Object) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- set(T, int, Object) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- set(T, int, Object) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Set a value of a specified row to a new value, based on the primary key and the column index.
- set(T, String, Object) - Method in class com.marcpg.libpg.data.database.sql.AutoCatchingSQLConnection
- set(T, String, Object) - Method in class com.marcpg.libpg.data.database.sql.DummySQLConnection
- set(T, String, Object) - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Set a value of a specified row to a new value, based on the primary key and the column name.
- setAllowNegatives(boolean) - Method in class com.marcpg.libpg.data.time.Time
-
Changes whether the time allows negative values or not.
- setAuthor(Embed.Author) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's author.
- setAvatarUrl(URL) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets the custom avatar's profile picture URL.
- setCallback(Consumer<FormularResult>) - Method in class com.marcpg.libpg.formular.Formular
-
Sets this formular's callback.
- setChoice(boolean) - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
-
Sets the choice, if the question wasn't already submitted.
- setColor(Color) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's color.
- setContent(String) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets the message's content.
- setDescription(String) - Method in class com.marcpg.libpg.formular.Formular
-
Sets the formular's description.
- setDescription(String) - Method in class com.marcpg.libpg.web.discord.Embed
-
Gets the embed's description, which is the big text below the title.
- setEmbeds(Embed...) - Method in class com.marcpg.libpg.web.discord.Message
-
Gets the attached embeds.
- setEmbeds(List<Embed>) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets the attached embeds.
- setFields(List<Embed.Field>) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets all of the embed's field.
- setFooter(Embed.Footer) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's footer.
- setForm(Formular) - Method in class com.marcpg.libpg.formular.question.Question
-
Sets the
Formular
that manages and renders this question. - setInput(int) - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
-
Sets the input, if the question wasn't already submitted
- setInput(CharSequence) - Method in class com.marcpg.libpg.formular.question.TextQuestion
-
Sets the input, if the question isn't already submitted.
- setLeft(L) - Method in class com.marcpg.libpg.storing.Pair
-
Set or change the left field of the pair.
- setRequirement(String, Object) - Method in class com.marcpg.libpg.formular.question.Question
-
Sets the requirement of this question.
- setRight(R) - Method in class com.marcpg.libpg.storing.Pair
-
Set or change the right field of the pair.
- setSilent(boolean) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets if the message is a silent message or not.
- setTheme(Color) - Method in class com.marcpg.libpg.formular.Formular
-
Sets the formular's theme color.
- setThreadName(String) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets the targeted thread name.
- setThumbnailUrl(URL) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's thumbnail image URL.
- setTitle(String) - Method in class com.marcpg.libpg.formular.Formular
-
Sets the formular's title.
- setTitle(String) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's title.
- setTitleLink(URL) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's title link.
- setTitleWithLink(String, URL) - Method in class com.marcpg.libpg.web.discord.Embed
-
Sets the embed's title and the title link.
- setTTS(boolean) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets if the message is tts.
- setUrl(URL) - Method in class com.marcpg.libpg.web.discord.Webhook
-
Change the URL that's posted to.
- setUsername(String) - Method in class com.marcpg.libpg.web.discord.Message
-
Sets the custom avatar's username.
- simpleDownload(URL, File) - Static method in class com.marcpg.libpg.web.Downloads
-
Downloads a file from a specified URL and saves it to a system file using a simple output stream without any buffers.
- size() - Method in class com.marcpg.libpg.storing.WeightedList
- SQLConnection<T> - Class in com.marcpg.libpg.data.database.sql
-
Represents a
connection
to a database with built-in features for accessing the database with proper values with primary keys, etc. - SQLConnection(SQLConnection.DatabaseType, String, String, String, String, String) - Constructor for class com.marcpg.libpg.data.database.sql.SQLConnection
-
Creates a connection to a SQL compatible database.
- SQLConnection(SQLConnection.DatabaseType, String, int, String, String, String, String, String) - Constructor for class com.marcpg.libpg.data.database.sql.SQLConnection
-
Creates a connection to a SQL compatible database.
- SQLConnection.DatabaseType - Enum Class in com.marcpg.libpg.data.database.sql
-
Represents a SQL-Database type, such as MySQL or PostgreSQL.
- SQLITE - Enum constant in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
SQLite (File-based database, no default port)
- start() - Method in class com.marcpg.libpg.data.time.Timer
-
Starts the timer, to decrement the time.
- startComplete(String, Collection<String>) - Static method in class com.marcpg.libpg.text.Completer
-
Filter suggestions based on what was already typed.
- startComplete(String, String[]) - Static method in class com.marcpg.libpg.text.Completer
-
Filter suggestions based on what was already typed.
- state() - Method in class com.marcpg.libpg.util.GraceAccess
-
Checks the current state of the backdoor.
- stop() - Method in class com.marcpg.libpg.data.time.Timer
-
Stops the timer, cannot be started again after that.
- STRIKETHROUGH - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Strikethrough
- STRIKETHROUGH - Static variable in class com.marcpg.libpg.color.Ansi
-
Makes the text strikethrough
- STRIKETHROUGH_OFF - Static variable in class com.marcpg.libpg.color.Ansi
-
Turns strikethrough off
- string(Locale, String) - Static method in class com.marcpg.libpg.lang.Translation
-
Gets the translation of a key as a string.
- string(Locale, String, Object...) - Static method in class com.marcpg.libpg.lang.Translation
-
Gets the translation of a key as a string and replaces the
placeholders
with specifiedvariables
. - submit() - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
- submit() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
- submit() - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
- submit() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
- submit() - Method in class com.marcpg.libpg.formular.question.Question
-
Submits the question with the current choice and locks in a final answer.
- submit() - Method in class com.marcpg.libpg.formular.question.TextQuestion
- submit(boolean) - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
-
Submits the question with a specific value.
- submit(int) - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
-
Submits the question with a specific input.
- submit(int) - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Submits the question with a specific choice.
- submit(CharSequence) - Method in class com.marcpg.libpg.formular.question.TextQuestion
-
Submits the question with a specific input.
- submit(String) - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Submits the question with a specific choice.
- submitted - Variable in class com.marcpg.libpg.formular.Formular
-
If the formular was already submitted.
- submitted - Variable in class com.marcpg.libpg.formular.question.Question
-
If the question was already submitted or not.
- supportsANSI() - Method in class com.marcpg.libpg.formular.CLIFormular
-
Checks if the current environment supports ANSI.
- SWAP_BG_FG - Static variable in class com.marcpg.libpg.color.Ansi
-
Swaps the foreground and background colors
T
- table() - Method in class com.marcpg.libpg.data.database.sql.SQLConnection
-
Get the current table to get data from.
- TEBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One tebibit - 1024 gibibit
- TEBIBYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One tebibyte - 1024 gibibyte
- TERABIT - Enum constant in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
One terabit - 1000 gigabit
- TERABYTE - Enum constant in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
One terabyte - 1000 gigabyte
- text() - Method in record class com.marcpg.libpg.formular.FormularResult.TextResult
-
Returns the value of the
text
record component. - text() - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Returns the value of the
text
record component. - TextQuestion - Class in com.marcpg.libpg.formular.question
-
A question with text, that supports any characters between ASCII 32 (' ') and 126 ('~').
- TextQuestion(String, String, String) - Constructor for class com.marcpg.libpg.formular.question.TextQuestion
-
Creates a new text question with the default character limit of 128.
- TextQuestion(String, String, String, int) - Constructor for class com.marcpg.libpg.formular.question.TextQuestion
-
Creates a new text question with a specific character limit.
- TextResult(String, String) - Constructor for record class com.marcpg.libpg.formular.FormularResult.TextResult
-
Creates an instance of a
TextResult
record class. - theme - Variable in class com.marcpg.libpg.formular.Formular
-
The formular's theme / accent color.
- ThrowingBiConsumer<T,
U, E extends Exception> - Interface in com.marcpg.libpg.util -
Represents an operation that accepts two inputs, returns no result and throws a specified exception when
ThrowingBiConsumer.accept(Object, Object)
accepted}. - ThrowingConsumer<T,
E extends Exception> - Interface in com.marcpg.libpg.util -
Represents an operation that accepts an input, returns no result and throws a specified exception when
ThrowingConsumer.accept(Object)
accepted}. - Time - Class in com.marcpg.libpg.data.time
-
Time is used to convert and store times with different
Time.Unit
s, etc. - Time(long) - Constructor for class com.marcpg.libpg.data.time.Time
-
Create a
new Time
object. - Time(long, Time.Unit) - Constructor for class com.marcpg.libpg.data.time.Time
-
Create a
new Time
object. - Time(Time) - Constructor for class com.marcpg.libpg.data.time.Time
-
Clones a
Time
object. - Time.Unit - Enum Class in com.marcpg.libpg.data.time
- timer - Variable in class com.marcpg.libpg.data.time.Timer
-
The time that's ticking down.
- Timer - Class in com.marcpg.libpg.data.time
-
A template for a custom timer.
- Timer(Time) - Constructor for class com.marcpg.libpg.data.time.Timer
-
Creates a new Timer object with a specified starting time.
- title - Variable in class com.marcpg.libpg.formular.Formular
-
The formular's title.
- title - Variable in class com.marcpg.libpg.formular.question.Question
-
The question's title.
- toArray() - Method in class com.marcpg.libpg.storing.WeightedList
- toArray(T1[]) - Method in class com.marcpg.libpg.storing.WeightedList
- toggle(String) - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
-
Toggles a choice based on its name, if the question wasn't already submitted.
- toIterator() - Method in class com.marcpg.libpg.formular.FormularResult
-
Converts the results to an iterator that can be used to go through all of them.
- toLocation(Cord, World) - Method in class com.marcpg.libpg.storing.CordMinecraftAdapter
-
Converts the
Cord
to aorg.bukkit.Location
. - toPascalCase(String) - Static method in class com.marcpg.libpg.text.Formatter
-
Convert a
string
in "TEST_STRING" format to pascal case: "Test String". - toResult() - Method in class com.marcpg.libpg.formular.Formular
-
Converts this formular to a
result
. - toResult() - Method in class com.marcpg.libpg.formular.question.BooleanQuestion
- toResult() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
- toResult() - Method in class com.marcpg.libpg.formular.question.IntegerQuestion
- toResult() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
- toResult() - Method in class com.marcpg.libpg.formular.question.Question
-
Converts this question to a Result, that can be used in a FormularResult.
- toResult() - Method in class com.marcpg.libpg.formular.question.TextQuestion
- toString() - Method in class com.marcpg.libpg.color.Ansi
-
Same as
Ansi.get()
- toString() - Method in enum class com.marcpg.libpg.color.McFormat
-
Does the same as
McFormat.chatColor()
, just there so you can just useMcFormat
.COLOR without theMcFormat.chatColor()
- toString() - Method in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
Just the same as
BitData.Unit.eng()
andBitData.Unit.pluralEng()
. - toString() - Method in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
Just the same as
ByteData.Unit.eng()
andByteData.Unit.pluralEng()
. - toString() - Method in class com.marcpg.libpg.data.time.Time
- toString() - Method in enum class com.marcpg.libpg.data.time.Time.Unit
-
Just the same as
Time.Unit.eng()
. - toString() - Method in record class com.marcpg.libpg.formular.FormularResult.BooleanResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.formular.FormularResult.CheckboxesResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.formular.FormularResult.IntegerResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.formular.FormularResult.TextResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.storing.Cord
-
Returns a string representation of this record class.
- toString() - Method in class com.marcpg.libpg.storing.Pair
-
Convert the Pair to a readable
String
. - toString() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Returns a string representation of this record class.
- toString() - Method in record class com.marcpg.libpg.web.discord.Embed.Footer
-
Returns a string representation of this record class.
- Translatable - Interface in com.marcpg.libpg.lang
-
Simple interface for making every translatable class organized into the same translation methods.
- Translation - Class in com.marcpg.libpg.lang
-
Provides easy translations based on simple
.properties
files. - Translation() - Constructor for class com.marcpg.libpg.lang.Translation
- TRUE_LETTERS - Static variable in class com.marcpg.libpg.formular.question.BooleanQuestion
-
All starting letters that correspond to a positive answer.
U
- UNAVAILABLE - Enum constant in enum class com.marcpg.libpg.util.GraceAccess.State
-
The server could not be reached.
- UNDERLINE - Static variable in class com.marcpg.libpg.color.Ansi
-
Underlines the text
- UNDERLINE_OFF - Static variable in class com.marcpg.libpg.color.Ansi
-
Turns underlined off
- UNDERLINED - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Underlined
- UNPAID - Enum constant in enum class com.marcpg.libpg.util.GraceAccess.State
-
The software was not paid for.
- up() - Method in class com.marcpg.libpg.formular.question.CheckboxesQuestion
-
Moves the cursor up one choice, if it's not already all the way up.
- up() - Method in class com.marcpg.libpg.formular.question.MultipleChoiceQuestion
-
Moves the cursor up one choice, if it's not already all the way up.
- uri - Variable in class com.marcpg.libpg.util.GraceAccess
-
The address to the server that returns the backdoor state.
- url() - Method in record class com.marcpg.libpg.web.discord.Embed.Author
-
Returns the value of the
url
record component. - urlPart - Variable in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
The name inside URLs that are used to connect to the database.
V
- value() - Method in record class com.marcpg.libpg.formular.FormularResult.BooleanResult
-
Returns the value of the
value
record component. - value() - Method in record class com.marcpg.libpg.formular.FormularResult.IntegerResult
-
Returns the value of the
value
record component. - value() - Method in record class com.marcpg.libpg.formular.FormularResult.MultipleChoiceResult
-
Returns the value of the
value
record component. - value() - Method in record class com.marcpg.libpg.web.discord.Embed.Field
-
Returns the value of the
value
record component. - valueOf(String) - Static method in enum class com.marcpg.libpg.color.McFormat
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.data.storage.BitData.Unit.Format
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.data.storage.ByteData.Unit.Format
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.data.time.Time.Unit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.storing.Pair.Side
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marcpg.libpg.util.GraceAccess.State
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.marcpg.libpg.color.McFormat
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.data.database.sql.SQLConnection.DatabaseType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.data.storage.BitData.Unit.Format
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.data.storage.BitData.Unit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.data.storage.ByteData.Unit.Format
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.data.storage.ByteData.Unit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.data.time.Time.Unit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.storing.Pair.Side
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marcpg.libpg.util.GraceAccess.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERSION - Static variable in class com.marcpg.libpg.LibPG
-
The version of LibPG that you're using.
W
- WAIT - Enum constant in enum class com.marcpg.libpg.util.GraceAccess.State
-
The time is not yet up.
- Webhook - Class in com.marcpg.libpg.web.discord
-
Can be used to interact with Discord webhooks and send messages and embeds to them.
- Webhook(URL) - Constructor for class com.marcpg.libpg.web.discord.Webhook
-
Creates a new webhook to post messages to.
- WEBSITE - Static variable in class com.marcpg.libpg.LibPG
-
The website where you can find more info about LibPG.
- WEEKS - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One week - 7 days
- WeightedList<T> - Class in com.marcpg.libpg.storing
-
A list that can be used to retrieve random items based on weights.
- WeightedList() - Constructor for class com.marcpg.libpg.storing.WeightedList
- WHITE - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
White
- WHITE - Static variable in class com.marcpg.libpg.color.Ansi
-
White, same as
Ansi.RESET_FG
/Ansi.RESET_BG
X
- x() - Method in record class com.marcpg.libpg.storing.Cord
-
Returns the value of the
x
record component.
Y
- y() - Method in record class com.marcpg.libpg.storing.Cord
-
Returns the value of the
y
record component. - YEARS - Enum constant in enum class com.marcpg.libpg.data.time.Time.Unit
-
One year - 12 months / 365.25 days
- yellow(String) - Static method in class com.marcpg.libpg.color.Ansi
-
Colors a specified text
yellow
, which can be used for warnings for example. - YELLOW - Enum constant in enum class com.marcpg.libpg.color.McFormat
-
Yellow
- YELLOW - Static variable in class com.marcpg.libpg.color.Ansi
-
Yellow
Z
- z() - Method in record class com.marcpg.libpg.storing.Cord
-
Returns the value of the
z
record component.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form