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<?>
boolean
containsAdapter
(@NotNull net.kyori.adventure.text.Component text) boolean
containsAdapter
(String plain) examples()
net.kyori.adventure.text.Component
processMessage
(M obj) net.kyori.adventure.text.Component
processMessage
(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, wait
Methods inherited from interface org.ships.config.messages.adapter.MessageAdapter
containsAdapter, process, process
-
Constructor Details
-
MappedAdapter
-
-
Method Details
-
adapterText
- Specified by:
adapterText
in interfaceMessageAdapter<M>
-
adaptingType
- Specified by:
adaptingType
in interfaceMessageAdapter<M>
-
examples
- Specified by:
examples
in interfaceMessageAdapter<M>
-
categories
- Specified by:
categories
in interfaceMessageAdapter<M>
-
processMessage
- Specified by:
processMessage
in interfaceMessageAdapter<M>
-
processMessage
public net.kyori.adventure.text.Component processMessage(@NotNull M obj, @NotNull @NotNull net.kyori.adventure.text.Component message) - Specified by:
processMessage
in interfaceMessageAdapter<M>
-
adapterTextFormat
- Specified by:
adapterTextFormat
in interfaceMessageAdapter<M>
-
containsAdapter
- Specified by:
containsAdapter
in interfaceMessageAdapter<M>
-
containsAdapter
public boolean containsAdapter(@NotNull @NotNull net.kyori.adventure.text.Component text) - Specified by:
containsAdapter
in interfaceMessageAdapter<M>
-