Class ViaDialogInput
java.lang.Object
io.github.projectunified.unidialog.viaversion.input.ViaDialogInput
- Direct Known Subclasses:
ViaBooleanInput,ViaNumberRangeInput,ViaSingleOptionInput,ViaTextInput
A ViaVersion-based base class for dialog inputs.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedViaDialogInput(Function<String, com.viaversion.viaversion.libs.mcstructs.text.TextComponent> componentDeserializer) Constructor for ViaDialogInput -
Method Summary
Modifier and TypeMethodDescriptionGet the component deserializerabstract voidwrite(com.viaversion.nbt.tag.CompoundTag tag, com.viaversion.viaversion.util.SerializerVersion baseVersion, com.viaversion.viaversion.util.SerializerVersion targetVersion) Write the type-specific fields of this input into the given tag
-
Constructor Details
-
Method Details
-
write
public abstract void write(com.viaversion.nbt.tag.CompoundTag tag, com.viaversion.viaversion.util.SerializerVersion baseVersion, com.viaversion.viaversion.util.SerializerVersion targetVersion) Write the type-specific fields of this input into the given tag- Parameters:
tag- the tag to write intobaseVersion- the serializer of the server version the dialog is created fortargetVersion- the serializer of the version the dialog is sent to
-
getComponentDeserializer
public Function<String,com.viaversion.viaversion.libs.mcstructs.text.TextComponent> getComponentDeserializer()Get the component deserializer- Returns:
- the component deserializer
-