Class MappedAdapter<M,T>
java.lang.Object
org.ships.config.messages.adapter.misc.MappedAdapter<M,T>
- All Implemented Interfaces:
MessageAdapter<M>
-
Constructor Summary
ConstructorsConstructorDescriptionMappedAdapter(@NotNull Class<?> type, @NotNull MessageAdapter<? super T> adapter, @NotNull Function<? super M, ? extends T> function) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>booleancontainsAdapter(@NotNull net.kyori.adventure.text.Component text) booleancontainsAdapter(String plain) examples()net.kyori.adventure.text.ComponentprocessMessage(M obj) net.kyori.adventure.text.ComponentprocessMessage(M obj, @NotNull net.kyori.adventure.text.Component message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ships.config.messages.adapter.MessageAdapter
containsAdapter, process, process
-
Constructor Details
-
MappedAdapter
-
-
Method Details
-
adapterText
- Specified by:
adapterTextin interfaceMessageAdapter<M>
-
adaptingType
- Specified by:
adaptingTypein interfaceMessageAdapter<M>
-
examples
- Specified by:
examplesin interfaceMessageAdapter<M>
-
categories
- Specified by:
categoriesin interfaceMessageAdapter<M>
-
processMessage
- Specified by:
processMessagein interfaceMessageAdapter<M>
-
processMessage
public net.kyori.adventure.text.Component processMessage(@NotNull M obj, @NotNull @NotNull net.kyori.adventure.text.Component message) - Specified by:
processMessagein interfaceMessageAdapter<M>
-
adapterTextFormat
- Specified by:
adapterTextFormatin interfaceMessageAdapter<M>
-
containsAdapter
- Specified by:
containsAdapterin interfaceMessageAdapter<M>
-
containsAdapter
public boolean containsAdapter(@NotNull @NotNull net.kyori.adventure.text.Component text) - Specified by:
containsAdapterin interfaceMessageAdapter<M>
-