Record Class Input
java.lang.Object
java.lang.Record
net.minecraft.server.dialog.Input
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInput(String key, InputControl control) Creates an instance of aInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontrol()Returns the value of thecontrolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
key
The field for thekeyrecord component. -
control
The field for thecontrolrecord component. -
CODEC
-
-
Constructor Details
-
Input
Creates an instance of aInputrecord class.- Parameters:
key- the value for thekeyrecord componentcontrol- the value for thecontrolrecord component
-
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
control
Returns the value of thecontrolrecord component.- Returns:
- the value of the
controlrecord component
-