Record Class TextInput.MultilineOptions
java.lang.Object
java.lang.Record
net.minecraft.server.dialog.input.TextInput.MultilineOptions
- Enclosing class:
TextInput
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TextInput.MultilineOptions> The field for theheightrecord component.static final intThe field for themaxLinesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMultilineOptions(Optional<Integer> maxLines, Optional<Integer> height) Creates an instance of aMultilineOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.maxLines()Returns the value of themaxLinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
maxLines
-
height
-
MAX_HEIGHT
public static final int MAX_HEIGHT- See Also:
-
CODEC
-
-
Constructor Details
-
MultilineOptions
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
maxLines
-
height
-