Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addTo(R, long) - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
- adjustInto(R, long) - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- append(BrickChronoField, String) - Method in class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
-
Appends a format for the given
BrickChronoField
to the resulting format. - append(BrickChronoField, String, int) - Method in class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
-
Appends a format for the given
BrickChronoField
to the resulting format. - append(BrickChronoField, Function<Long, String>) - Method in class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
-
Appends a format for the given
BrickChronoField
to the resulting format. - append(BrickChronoField, Function<Long, String>, int) - Method in class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
-
Appends a format for the given
BrickChronoField
to the resulting format. - audience(CommandSender) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- audience(T) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
B
- BaseTranslator - Class in com.guflimc.brick.i18n.api.translator
- BaseTranslator(String, Locale) - Constructor for class com.guflimc.brick.i18n.api.translator.BaseTranslator
- between(Temporal, Temporal) - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
- BrickChronoField - Enum Class in com.guflimc.brick.i18n.api.time
- BrickChronoUnit - Enum Class in com.guflimc.brick.i18n.api.time
- build() - Method in class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
-
Create a new
DurationFormatter
with the previously added formats.
C
- center(int, Component) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- center(Component) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- com.guflimc.brick.i18n.api.converter - package com.guflimc.brick.i18n.api.converter
- com.guflimc.brick.i18n.api.time - package com.guflimc.brick.i18n.api.time
- com.guflimc.brick.i18n.api.translator - package com.guflimc.brick.i18n.api.translator
- com.guflimc.brick.i18n.spigot.api - package com.guflimc.brick.i18n.spigot.api
- COMPACT - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
Compact format with period and duration.
- convert(Object) - Static method in class com.guflimc.brick.i18n.api.converter.ObjectConverter
- COZY - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
Cozy format with period and duration.
D
- DAY - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of days in a
TemporalAmount
. - DAY_REMAINDER - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the remaining amount of days that do not make up for a whole month in a
TemporalAmount
. - defaultLocale - Variable in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- DIGITAL - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
Digital clock format.
- DurationFormatter - Class in com.guflimc.brick.i18n.api.time
- DurationFormatterBuilder - Class in com.guflimc.brick.i18n.api.time
- DurationFormatterBuilder() - Constructor for class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
- DurationParser - Class in com.guflimc.brick.i18n.api.time
- DurationParser() - Constructor for class com.guflimc.brick.i18n.api.time.DurationParser
E
- ExtendedTranslator<T> - Class in com.guflimc.brick.i18n.api.translator
- ExtendedTranslator(String, Locale) - Constructor for class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
F
- FLAG_SKIP_OUT_OF_LOWER_BOUND - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
A value of a temporal field will not be formatted in the final result if the temporal field's value and any subsequent temporal field's value in the format for the given temporal amount is zero.
- FLAG_SKIP_OUT_OF_UPPER_BOUND - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
A value of a temporal field will not be formatted in the final result if the temporal amount is less than the temporal field's base unit duration.
- FLAG_SKIP_ZERO - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
A value of a temporal field will not be formatted in the final result if the temporal field's value for the given temporal amount is zero.
- format(Duration) - Method in class com.guflimc.brick.i18n.api.time.DurationFormatter
G
- getBaseUnit() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- getDuration() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
- getFrom(TemporalAccessor) - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- getRangeUnit() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
H
- HIGHEST - Static variable in class com.guflimc.brick.i18n.api.time.DurationFormatter
-
Format only the highest unit of value.
- HOUR - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of hours in a
TemporalAmount
. - HOUR_REMAINDER - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the remaining amount of hours that do not make up for a whole day in a
TemporalAmount
. - hoverable(Locale, String, String) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- hoverable(Audience, String, String) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- hoverable(T, String, String) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
I
- id - Variable in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- id() - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- importTranslations(URL) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- importTranslations(URL, Locale) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- importTranslations(Path) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- importTranslations(JavaPlugin) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- importTranslations(JavaPlugin, String) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- isDateBased() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- isDateBased() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
- isDurationEstimated() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
-
Although the duration of these units is not accurate, e.g.
- isSupportedBy(TemporalAccessor) - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- isTimeBased() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- isTimeBased() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
L
- locale(CommandSender) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- locale(T) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
M
- maybeTranslate(Locale, Component) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
-
Translates the component if the given parameter is a
TranslatableComponent
. - maybeTranslate(Audience, Component) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- maybeTranslate(T, Component) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- menu(Audience, char, TextColor, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- menu(Audience, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- MILLISECOND - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of milliseconds in a
TemporalAmount
. - MILLISECOND_REMAINDER - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the remaining amount of milliseconds that do not make up for a whole second in a
TemporalAmount
. - MINUTE - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of minutes in a
TemporalAmount
. - MINUTE_REMAINDER - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the remaining amount of minutes that do not make up for a whole hour in a
TemporalAmount
. - MONTH - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of months in a
TemporalAmount
. - MONTH_REMAINDER - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the remaining amount of months that do not make up for a whole year in a
TemporalAmount
. - MONTHS - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
-
This unit replaces
ChronoUnit.MONTHS
with a fixed length of 30 days.
O
- ObjectConverter<T> - Class in com.guflimc.brick.i18n.api.converter
P
- paddingAround(int, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- paddingAround(Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- parse(String) - Static method in class com.guflimc.brick.i18n.api.time.DurationParser
-
Obtains a
DurationParser
from a text string such as "2Y 4D 3h 17m 6s
". - postProcessor(Function<String, String>) - Method in class com.guflimc.brick.i18n.api.time.DurationFormatterBuilder
-
Applies a post processor to the resulting format.
R
- range() - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- rangeRefinedBy(TemporalAccessor) - Method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
- register(Class<T>, Function<T, Component>) - Static method in class com.guflimc.brick.i18n.api.converter.ObjectConverter
- registry - Variable in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- renderer - Variable in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- renderTranslatable(TranslatableComponent, Locale) - Method in class com.guflimc.brick.i18n.api.translator.StandardComponentRenderer
S
- SECOND - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of seconds in a
TemporalAmount
. - SECOND_REMAINDER - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the remaining amount of seconds that do not make up for a whole minute in a
TemporalAmount
. - send(Audience, String) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- send(Audience, String, Object...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- send(Audience, String, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- send(Audience, TranslatableComponent) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- send(T, String) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- send(T, String, Object...) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- send(T, String, Component...) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- send(T, TranslatableComponent) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- SpigotTranslator - Class in com.guflimc.brick.i18n.spigot.api
- SpigotTranslator(JavaPlugin, Locale) - Constructor for class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- StandardComponentRenderer - Class in com.guflimc.brick.i18n.api.translator
- StandardComponentRenderer() - Constructor for class com.guflimc.brick.i18n.api.translator.StandardComponentRenderer
- string(Player, String) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- string(Player, String, Object...) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- string(Player, String, Component...) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
- string(Player, TranslatableComponent) - Method in class com.guflimc.brick.i18n.spigot.api.SpigotTranslator
T
- translatable(String, Object...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translatable(String, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Locale, String) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Locale, String, Object...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Locale, String, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Locale, Duration) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Locale, Duration, DurationFormatter) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
-
This will replace the following time placeholders with their respective translation: Y - time.year M - time.month D - time.day h - time.hour m - time.minute s - time.second
- translate(Locale, TranslatableComponent) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Audience, String) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Audience, String, Object...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Audience, String, Component...) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Audience, Duration) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Audience, Duration, DurationFormatter) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(Audience, TranslatableComponent) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
- translate(T, String) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- translate(T, String, Object...) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- translate(T, String, Component...) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- translate(T, TranslatableComponent) - Method in class com.guflimc.brick.i18n.api.translator.ExtendedTranslator
- type() - Method in class com.guflimc.brick.i18n.api.converter.ObjectConverter
U
- usingTranslationSource(Translator) - Static method in class com.guflimc.brick.i18n.api.translator.StandardComponentRenderer
V
- valueOf(String) - Static method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- width(Component) - Method in class com.guflimc.brick.i18n.api.translator.BaseTranslator
Y
- YEAR - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoField
-
Represents the total amount of years in a
TemporalAmount
. - YEARS - Enum constant in enum class com.guflimc.brick.i18n.api.time.BrickChronoUnit
-
This unit replaces
ChronoUnit.YEARS
with a fixed length of 360 days.
All Classes and Interfaces|All Packages|Constant Field Values