MCPcopy Create free account

hub / github.com/Phoenix616/MineDown / functions

Functions134 in github.com/Phoenix616/MineDown

↓ 98 callersMethodappend
(ComponentBuilder<?, ?> builder)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:341
↓ 68 callersMethodparse
(String mineDownString, String... replacements)
src/test/java/de/themoep/minedown/adventure/tests/ParserTest.java:33
↓ 38 callersMethodvalue
(StringBuilder value)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:902
↓ 27 callersMethodstringify
(Component component)
src/test/java/de/themoep/minedown/adventure/tests/StringifyTest.java:45
↓ 25 callersMethodhoverEvent
(HoverEvent hoverEvent)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1027
↓ 23 callersMethodclickEvent
(ClickEvent clickEvent)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1018
↓ 23 callersMethodgetValue
(AtomicInteger i, String firstPart, List<String> defParts, boolean hasAction)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:850
↓ 19 callersMethodlenient
Get whether to accept malformed strings or not @return whether or not the accept malformed strings (Default: false)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1402
↓ 18 callersMethodreset
Remove a cached component and re-parse the next time {@link #toComponent} is called
src/main/java/de/themoep/minedown/adventure/MineDown.java:107
↓ 17 callersMethodplayerHead
(PlayerHeadObjectContents.Builder playerHead)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:955
↓ 17 callersMethodsprite
(Key sprite)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:937
↓ 14 callersMethodparser
Get the parser instance that is currently used @return The currently used parser instance
src/main/java/de/themoep/minedown/adventure/MineDown.java:384
↓ 13 callersMethodbuilder
()
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:893
↓ 13 callersMethodformat
(Map<TextDecoration, Boolean> format)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1000
↓ 13 callersMethodreplacer
Get the replacer instance that is currently used @return The currently used replacer instance
src/main/java/de/themoep/minedown/adventure/MineDown.java:376
↓ 12 callersMethodcolorChar
Get the character to use as a special color code. (Default: ampersand &amp;) @return the color character
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:540
↓ 12 callersMethodcolors
(List<Map.Entry<TextColor, Boolean>> colors)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:973
↓ 12 callersMethodinsertion
(String insertion)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:964
↓ 9 callersMethodappendValue
()
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:349
↓ 9 callersMethodfont
(String font)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:929
↓ 9 callersMethodtoComponent
Parse and convert the message to the component @return The parsed component message
src/main/java/de/themoep/minedown/adventure/MineDown.java:93
↓ 9 callersMethodurlDetection
Get whether or not urls in strings are detected and get events added to them? @return whether or not urls are detected (Default: true)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1420
↓ 8 callersMethodparse
Parse a MineDown string to components @param message The message to translate @param replacements Optional placeholder replacements @return
src/main/java/de/themoep/minedown/adventure/MineDown.java:76
↓ 8 callersMethodrainbowPhase
(Integer rainbowPhase)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:978
↓ 7 callersMethodcomponentReplacements
Get the map of placeholders with their component array replacements @return the replacement map
src/main/java/de/themoep/minedown/adventure/Replacer.java:419
↓ 7 callersMethodisEnabled
Check whether or not an option is enabled @param option The option to check for @return <code>true</code> if it's enabled; <code>false</code> if not
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1245
↓ 7 callersMethodreplacements
Get the map of placeholders with their string replacements @return the replacement map
src/main/java/de/themoep/minedown/adventure/Replacer.java:411
↓ 6 callersMethodcopy
Copy all the parser's setting to a new instance @return The new parser instance with all settings copied
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1152
↓ 6 callersMethodenabledOptions
Get all enabled options that will be used when parsing @return a modifiable set of options
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1365
↓ 6 callersMethodformattingIsLegacy
(boolean formattingIsLegacy)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1009
↓ 6 callersMethodplaceholderPrefix
Get the placeholder indicator's prefix string @return the prefix characters
src/main/java/de/themoep/minedown/adventure/Replacer.java:427
↓ 6 callersMethodplaceholderSuffix
Get the placeholder indicator's suffix string @return the suffix characters
src/main/java/de/themoep/minedown/adventure/Replacer.java:445
↓ 6 callersMethodpreferSimpleEvents
Get whether or not to use simple event definitions or specific ones (Default: true) @return whether or not to use simple events
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:486
↓ 6 callersMethodreplace
Add an array with placeholders and values that should get replaced in the message @param replacements The replacements, nth element is the placeholde
src/main/java/de/themoep/minedown/adventure/MineDown.java:139
↓ 6 callersMethodtranslationKey
(String translationKey)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:911
↓ 5 callersMethodatlas
(Key atlas)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:946
↓ 5 callersMethodfilteredOptions
Get all filtered options that will be parsed and then removed from the string @return a modifiable set of options
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1383
↓ 5 callersMethodformattingInEventDefinition
Get whether or not to put formatting in event definitions or use inline formatting definitions @return whether or not to put formatting in event defin
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:522
↓ 5 callersMethodisEscaped
Check if a character at a certain index is escaped @param string The string to check @param index The index of the character in the string to check @
src/main/java/de/themoep/minedown/adventure/Util.java:177
↓ 5 callersMethodurlHoverText
Get the text to display when hovering over an URL. Has a %url% placeholder.
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1437
↓ 5 callersMethoduseLegacyFormatting
Get whether or not to translate legacy formatting codes over MineDown ones @return whether or not to use legacy formatting codes (Default: false)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:468
↓ 4 callersMethodcolorChar
Get The character to use as a special color code. @return The color character (Default: ampersand &amp;)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1347
↓ 4 callersMethodcolorInEventDefinition
Get whether or not to put colors in event definitions or use inline color definitions @return whether or not to put colors in event definitions (Defau
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:504
↓ 4 callersMethodgetFormatFromLegacy
Get a TextFormat from its legacy color code as kyori-text-api does not support that @param code The legacy char @return The TextFormat or null i
src/main/java/de/themoep/minedown/adventure/Util.java:334
↓ 4 callersMethodignorePlaceholderCase
Replace the placeholder no matter what the case of it is @return whether or not to ignore the placeholder case (Default: true)
src/main/java/de/themoep/minedown/adventure/Replacer.java:463
↓ 4 callersMethodparse
Create a ComponentBuilder by parsing a {@link MineDown} message @param message The message to parse @return The parsed ComponentBuilder @throws Illega
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:153
↓ 4 callersMethodparseFormat
Parse a color/format definition @param colorString The string to parse @param prefix The color prefix e.g. ampersand (&amp;) @param lenient W
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1058
↓ 4 callersMethodreplaceStrings
Replace the placeholders in a string. Does not replace component replacements! @param string The String list to replace in @return The string with the
src/main/java/de/themoep/minedown/adventure/Replacer.java:364
↓ 3 callersMethodappendFormat
(StringBuilder sb, Component component)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:380
↓ 3 callersMethodautoAddUrlPrefix
Get whether or not to automatically add http to values of open_url when there doesn't exist any? @return whether or not to automatically add http to v
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1455
↓ 3 callersMethodfilter
Filter an option. This completely removes the characters of this option from the string ignoring whether the option is enabled or not. @param option
src/main/java/de/themoep/minedown/adventure/MineDown.java:325
↓ 3 callersMethodgetFormatString
Get the string that represents the format in MineDown @param format The format @return The MineDown string or an empty one if it's not a f
src/main/java/de/themoep/minedown/adventure/MineDown.java:416
↓ 3 callersMethodhoverTextWidth
Get the max width the hover text should have. Minecraft itself will wrap after 60 characters. Won't apply if the text already includes new lines.
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1474
↓ 3 callersMethodisFiltered
Check whether or not an option is filtered @param option The option to check for @return <code>true</code> if it's enabled; <code>false</code> if not
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1276
↓ 3 callersMethodparseRainbow
(String colorString, String prefix, boolean lenient)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1036
↓ 3 callersMethodreplace
Add an array with placeholders and values that should get replaced in the message @param replacements The replacements, nth element is the placeholder
src/main/java/de/themoep/minedown/adventure/Replacer.java:135
↓ 3 callersMethodshadow
(ShadowColor shadow)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:991
↓ 3 callersMethodtranslationArgs
(List<Component> translationArgs)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:920
↓ 3 callersMethoduseLegacyColors
Get whether or not to use legacy color codes @return whether or not to use legacy color codes when possible (Default: true)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:450
↓ 2 callersMethodappendColor
(StringBuilder sb, TextColor color)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:356
↓ 2 callersMethodappendFormatSuffix
(StringBuilder sb, Component component)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:413
↓ 2 callersMethodappendText
(StringBuilder sb, Component component)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:342
↓ 2 callersMethodcomponents
()
src/main/java/de/themoep/minedown/adventure/MineDown.java:388
↓ 2 callersMethodcopy
Copy all the parser's setting to a new instance @return The new parser instance with all settings copied
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:427
↓ 2 callersMethodgetChar
()
src/main/java/de/themoep/minedown/adventure/Util.java:552
↓ 2 callersMethodgetFormatFromString
Get the text format from a string, either its name or hex code @param formatString The string to get the format from @return The TextFormat @throws Il
src/main/java/de/themoep/minedown/adventure/Util.java:303
↓ 2 callersMethodgetFormats
Get a set of TextColor formats all formats that a component includes @param component The component to get the formats from @param ignoreParent Whe
src/main/java/de/themoep/minedown/adventure/Util.java:133
↓ 2 callersMethodgetLegacyFormatChar
Get the legacy color code from its format as kyori-text-api does not support that @param format The format @return The legacy color code o
src/main/java/de/themoep/minedown/adventure/Util.java:367
↓ 2 callersMethodgetUnescapedEndIndex
Gets the proper end index of a certain definition on the same depth while ignoring escaped chars. @param string The string to search @param startCh
src/main/java/de/themoep/minedown/adventure/Util.java:196
↓ 2 callersMethodisDouble
Check whether or not a character at a certain index of a string repeats itself @param string The string to check @param index The index at which to c
src/main/java/de/themoep/minedown/adventure/Util.java:114
↓ 2 callersMethodmessage
Get the set message that is to be parsed @return The to be parsed message
src/main/java/de/themoep/minedown/adventure/MineDown.java:357
↓ 1 callersMethodapplyFormat
Apply a collection of colors/formats to a component @param component The BaseComponent @param formats The collection of TextColor formats to apply @
src/main/java/de/themoep/minedown/adventure/Util.java:68
↓ 1 callersMethodcopy
Create a copy of this Replacer @return A copy of this Replacer
src/main/java/de/themoep/minedown/adventure/Replacer.java:388
↓ 1 callersMethodcreateGradient
Generate a gradient with certain colors @param length The length of the gradient @param gradient The colors of the gradient. @return the colors
src/main/java/de/themoep/minedown/adventure/Util.java:491
↓ 1 callersMethodcreateRainbow
Generate a rainbow with a certain length and phase @param length The length of the rainbow @param phase The phase of the rainbow. @return the c
src/main/java/de/themoep/minedown/adventure/Util.java:430
↓ 1 callersMethoddisable
Disable an option. Disabling an option will stop the parser from replacing this option's chars in the string. Use {@link #filter(Option)} to completel
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1266
↓ 1 callersMethodenable
Enable an option. @param option The option to enable @return The parser instace
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1254
↓ 1 callersMethodfilter
Filter an option. This enables the parsing of an option and completely removes the characters of this option from the string. @param option The option
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1286
↓ 1 callersMethodgetFormatFromChar
Get the TextColor format from a MineDown string @param c The character @return The TextColor of that format or <code>null</code> it none was found
src/main/java/de/themoep/minedown/adventure/MineDown.java:437
↓ 1 callersMethodgetPayloadType
Adventure 5 removed the ClickEvent.Action#payloadType method. We need to fall back on reflections for that. @param action The action to get the payloa
src/main/java/de/themoep/minedown/adventure/Util.java:571
↓ 1 callersMethodparseEvent
Parse a {@link MineDown} event string @param text The display text @param definitions The event definition string @return The parsed ComponentB
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:475
↓ 1 callersMethodparseShadow
Parse a color/format definition @param shadowString The string to parse @param prefix The shadow prefix @param lenient Whether to accept ma
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1097
↓ 1 callersMethodplaceholderPrefix
Set the placeholder indicator's prefix character @param placeholderPrefix The character to use as the placeholder indicator's prefix @return
src/main/java/de/themoep/minedown/adventure/MineDown.java:184
↓ 1 callersMethodplaceholderSuffix
Set the placeholder indicator's suffix character @param placeholderSuffix The character to use as the placeholder indicator's suffix @return
src/main/java/de/themoep/minedown/adventure/MineDown.java:203
↓ 1 callersMethodreplaceFirst
Set whether or not replacements should be replaced before or after the components are created. When replacing first it will not replace any placeholde
src/main/java/de/themoep/minedown/adventure/MineDown.java:118
↓ 1 callersMethodreplaceIn
Replace certain placeholders with values in string. This uses the % character as placeholder indicators (suffix and prefix) @param message The st
src/main/java/de/themoep/minedown/adventure/Replacer.java:100
↓ 1 callersMethodreset
Reset the parser state to the start @return The parser's instance
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1204
↓ 1 callersMethodstringify
Convert components to a MineDown string @param component The components to convert @return The components represented as a MineDown string
src/main/java/de/themoep/minedown/adventure/MineDown.java:85
↓ 1 callersMethodvalidate
Utility method to throw an IllegalArgumentException if the value is false @param value The value to validate @param message The message for the exce
src/main/java/de/themoep/minedown/adventure/Util.java:56
↓ 1 callersMethodwrap
Wrap a string if it is longer than the line length and contains no new line. Will try to wrap at spaces between words. @param string The string
src/main/java/de/themoep/minedown/adventure/Util.java:223
MethodMineDown
Create a new MineDown builder with a certain message @param message The message to parse
src/main/java/de/themoep/minedown/adventure/MineDown.java:66
MethodMineDownParser
()
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:143
MethodTextControl
(char c)
src/main/java/de/themoep/minedown/adventure/Util.java:548
MethodautoAddUrlPrefix
Automatically add http to values of open_url when there doesn't exist any? (Default: true) @param enabled Whether or not to automatically add http w
src/main/java/de/themoep/minedown/adventure/MineDown.java:265
MethodcolorChar
Set a special character to replace color codes by if translating legacy colors is enabled. @param colorChar The character to use as a special color co
src/main/java/de/themoep/minedown/adventure/MineDown.java:347
Methodcopy
Copy all MineDown settings to a new instance @return The new MineDown instance with all settings copied
src/main/java/de/themoep/minedown/adventure/MineDown.java:396
Methoddisable
Disable an option. Disabling an option will stop the parser from replacing this option's chars in the string. Use {@link #filter(MineDownParser.Option
src/main/java/de/themoep/minedown/adventure/MineDown.java:313
Methoddistance
Get the distance between two colors @param c1 Color A @param c2 Color B @return The distance or 0 if they are equal @deprecated Doesn't use perceived
src/main/java/de/themoep/minedown/adventure/Util.java:289
Methodenable
Enable an option. Unfilter it if you filtered it before. @param option The option to enable @return The MineDown instance
src/main/java/de/themoep/minedown/adventure/MineDown.java:300
Methodescape
Escape all MineDown formatting in a string. This will escape backslashes too! @param string The string to escape in @return The string wit
src/main/java/de/themoep/minedown/adventure/MineDown.java:458
next →1–100 of 134, ranked by callers