pylon-core
Toggle table of contents
1.0.0-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
pylon-core
pylon-core
/
io.github.pylonmc.pylon.core.i18n
/
PylonTranslator
/
Companion
Companion
object
Companion
:
Listener
(
source
)
Members
Properties
translator
Link copied to clipboard
@
JvmStatic
@get:
JvmName
(
name
=
"getTranslatorForAddon"
)
val
PylonAddon
.
translator
:
PylonTranslator
Functions
translate
Link copied to clipboard
@
JvmStatic
@
JvmOverloads
@
JvmName
(
name
=
"translateItem"
)
fun
ItemStack
.
translate
(
locale
:
Locale
,
arguments
:
List
<
PylonArgument
>
=
emptyList()
)
Modifies the
ItemStack
to translate its name and lore into the specified
locale
.
wrap
Text
Link copied to clipboard
@
JvmStatic
fun
wrapText
(
text
:
String
,
limit
:
Int
)
:
List
<
String
>