Class PaperTextBody
java.lang.Object
io.github.projectunified.unidialog.paper.body.PaperTextBody
- All Implemented Interfaces:
io.github.projectunified.unidialog.adventure.body.AdventureTextBody<PaperTextBody>,io.github.projectunified.unidialog.adventure.support.AdventureSupport,io.github.projectunified.unidialog.core.body.TextBody<PaperTextBody>,PaperDialogBody
public class PaperTextBody
extends Object
implements io.github.projectunified.unidialog.adventure.body.AdventureTextBody<PaperTextBody>, PaperDialogBody
-
Field Summary
Fields inherited from interface io.github.projectunified.unidialog.core.body.TextBody
DEFAULT_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionPaperTextBody(Function<String, net.kyori.adventure.text.Component> componentDeserializer) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport
deserializeMethods inherited from interface io.github.projectunified.unidialog.adventure.body.AdventureTextBody
text
-
Constructor Details
-
PaperTextBody
-
-
Method Details
-
getComponentDeserializer
- Specified by:
getComponentDeserializerin interfaceio.github.projectunified.unidialog.adventure.support.AdventureSupport
-
text
- Specified by:
textin interfaceio.github.projectunified.unidialog.adventure.body.AdventureTextBody<PaperTextBody>
-
width
- Specified by:
widthin interfaceio.github.projectunified.unidialog.core.body.TextBody<PaperTextBody>
-
getDialogBody
public io.papermc.paper.registry.data.dialog.body.PlainMessageDialogBody getDialogBody()- Specified by:
getDialogBodyin interfacePaperDialogBody
-