Interface MessageLoader
-
- All Superinterfaces:
MessageHoldable
- All Known Implementing Classes:
AbstractMessageLoader
public interface MessageLoader extends MessageHoldable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMessageLoader.DuplicateKeyMessage
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanexistsFile()static @NotNull MessageLoaderfromFileConfiguration(@NotNull FileConfiguration config)static @NotNull MessageLoaderfromProperties(@NotNull Path path)@Nullable LocalegetLocale()@NotNull @Unmodifiable Set<MessageLoader.DuplicateKeyMessage>load()default booleanregisterToRegistry(@NotNull TranslationRegistry registry)voidsave(@NotNull Iterable<? extends KeyedMessage> messages)@NotNull Map<String,MessageFormat>toMessageFormatMap()-
Methods inherited from interface com.github.siroshun09.mcmessage.MessageHoldable
getMessage, getMessage, getMessage, getMessages
-
-
-
-
Method Detail
-
fromProperties
@NotNull static @NotNull MessageLoader fromProperties(@NotNull @NotNull Path path)
-
fromFileConfiguration
@NotNull static @NotNull MessageLoader fromFileConfiguration(@NotNull @NotNull FileConfiguration config)
-
existsFile
boolean existsFile()
-
load
@NotNull @NotNull @Unmodifiable Set<MessageLoader.DuplicateKeyMessage> load() throws IOException
- Throws:
IOException
-
save
void save(@NotNull @NotNull Iterable<? extends KeyedMessage> messages) throws IOException
- Throws:
IOException
-
toMessageFormatMap
@NotNull @NotNull Map<String,MessageFormat> toMessageFormatMap()
-
registerToRegistry
default boolean registerToRegistry(@NotNull @NotNull TranslationRegistry registry)
-
-