Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Phoenix616/MineDown
/ functions
Functions
134 in github.com/Phoenix616/MineDown
⨍
Functions
134
◇
Types & classes
9
↓ 98 callers
Method
append
(ComponentBuilder<?, ?> builder)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:341
↓ 68 callers
Method
parse
(String mineDownString, String... replacements)
src/test/java/de/themoep/minedown/adventure/tests/ParserTest.java:33
↓ 38 callers
Method
value
(StringBuilder value)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:902
↓ 27 callers
Method
stringify
(Component component)
src/test/java/de/themoep/minedown/adventure/tests/StringifyTest.java:45
↓ 25 callers
Method
hoverEvent
(HoverEvent hoverEvent)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1027
↓ 23 callers
Method
clickEvent
(ClickEvent clickEvent)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1018
↓ 23 callers
Method
getValue
(AtomicInteger i, String firstPart, List<String> defParts, boolean hasAction)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:850
↓ 19 callers
Method
lenient
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 callers
Method
reset
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 callers
Method
playerHead
(PlayerHeadObjectContents.Builder playerHead)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:955
↓ 17 callers
Method
sprite
(Key sprite)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:937
↓ 14 callers
Method
parser
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 callers
Method
builder
()
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:893
↓ 13 callers
Method
format
(Map<TextDecoration, Boolean> format)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1000
↓ 13 callers
Method
replacer
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 callers
Method
colorChar
Get the character to use as a special color code. (Default: ampersand &) @return the color character
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:540
↓ 12 callers
Method
colors
(List<Map.Entry<TextColor, Boolean>> colors)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:973
↓ 12 callers
Method
insertion
(String insertion)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:964
↓ 9 callers
Method
appendValue
()
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:349
↓ 9 callers
Method
font
(String font)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:929
↓ 9 callers
Method
toComponent
Parse and convert the message to the component @return The parsed component message
src/main/java/de/themoep/minedown/adventure/MineDown.java:93
↓ 9 callers
Method
urlDetection
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 callers
Method
parse
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 callers
Method
rainbowPhase
(Integer rainbowPhase)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:978
↓ 7 callers
Method
componentReplacements
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 callers
Method
isEnabled
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 callers
Method
replacements
Get the map of placeholders with their string replacements @return the replacement map
src/main/java/de/themoep/minedown/adventure/Replacer.java:411
↓ 6 callers
Method
copy
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 callers
Method
enabledOptions
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 callers
Method
formattingIsLegacy
(boolean formattingIsLegacy)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1009
↓ 6 callers
Method
placeholderPrefix
Get the placeholder indicator's prefix string @return the prefix characters
src/main/java/de/themoep/minedown/adventure/Replacer.java:427
↓ 6 callers
Method
placeholderSuffix
Get the placeholder indicator's suffix string @return the suffix characters
src/main/java/de/themoep/minedown/adventure/Replacer.java:445
↓ 6 callers
Method
preferSimpleEvents
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 callers
Method
replace
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 callers
Method
translationKey
(String translationKey)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:911
↓ 5 callers
Method
atlas
(Key atlas)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:946
↓ 5 callers
Method
filteredOptions
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 callers
Method
formattingInEventDefinition
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 callers
Method
isEscaped
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 callers
Method
urlHoverText
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 callers
Method
useLegacyFormatting
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 callers
Method
colorChar
Get The character to use as a special color code. @return The color character (Default: ampersand &)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1347
↓ 4 callers
Method
colorInEventDefinition
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 callers
Method
getFormatFromLegacy
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 callers
Method
ignorePlaceholderCase
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 callers
Method
parse
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 callers
Method
parseFormat
Parse a color/format definition @param colorString The string to parse @param prefix The color prefix e.g. ampersand (&) @param lenient W
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1058
↓ 4 callers
Method
replaceStrings
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 callers
Method
appendFormat
(StringBuilder sb, Component component)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:380
↓ 3 callers
Method
autoAddUrlPrefix
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 callers
Method
filter
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 callers
Method
getFormatString
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 callers
Method
hoverTextWidth
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 callers
Method
isFiltered
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 callers
Method
parseRainbow
(String colorString, String prefix, boolean lenient)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1036
↓ 3 callers
Method
replace
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 callers
Method
shadow
(ShadowColor shadow)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:991
↓ 3 callers
Method
translationArgs
(List<Component> translationArgs)
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:920
↓ 3 callers
Method
useLegacyColors
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 callers
Method
appendColor
(StringBuilder sb, TextColor color)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:356
↓ 2 callers
Method
appendFormatSuffix
(StringBuilder sb, Component component)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:413
↓ 2 callers
Method
appendText
(StringBuilder sb, Component component)
src/main/java/de/themoep/minedown/adventure/MineDownStringifier.java:342
↓ 2 callers
Method
components
()
src/main/java/de/themoep/minedown/adventure/MineDown.java:388
↓ 2 callers
Method
copy
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 callers
Method
getChar
()
src/main/java/de/themoep/minedown/adventure/Util.java:552
↓ 2 callers
Method
getFormatFromString
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 callers
Method
getFormats
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 callers
Method
getLegacyFormatChar
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 callers
Method
getUnescapedEndIndex
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 callers
Method
isDouble
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 callers
Method
message
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 callers
Method
applyFormat
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 callers
Method
copy
Create a copy of this Replacer @return A copy of this Replacer
src/main/java/de/themoep/minedown/adventure/Replacer.java:388
↓ 1 callers
Method
createGradient
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 callers
Method
createRainbow
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 callers
Method
disable
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 callers
Method
enable
Enable an option. @param option The option to enable @return The parser instace
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1254
↓ 1 callers
Method
filter
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 callers
Method
getFormatFromChar
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 callers
Method
getPayloadType
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 callers
Method
parseEvent
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 callers
Method
parseShadow
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 callers
Method
placeholderPrefix
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 callers
Method
placeholderSuffix
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 callers
Method
replaceFirst
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 callers
Method
replaceIn
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 callers
Method
reset
Reset the parser state to the start @return The parser's instance
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:1204
↓ 1 callers
Method
stringify
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 callers
Method
validate
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 callers
Method
wrap
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
Method
MineDown
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
Method
MineDownParser
()
src/main/java/de/themoep/minedown/adventure/MineDownParser.java:143
Method
TextControl
(char c)
src/main/java/de/themoep/minedown/adventure/Util.java:548
Method
autoAddUrlPrefix
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
Method
colorChar
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
Method
copy
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
Method
disable
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
Method
distance
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
Method
enable
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
Method
escape
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