Record Class BedrockFormScene.FallbackButton
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.form.BedrockFormScene.FallbackButton
- Enclosing class:
BedrockFormScene
-
Constructor Summary
ConstructorsConstructorDescriptionFallbackButton(int responseIndex, String caption) Creates an instance of aFallbackButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theresponseIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FallbackButton
Creates an instance of aFallbackButtonrecord class.- Parameters:
responseIndex- the value for theresponseIndexrecord componentcaption- the value for thecaptionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
responseIndex
public int responseIndex()Returns the value of theresponseIndexrecord component.- Returns:
- the value of the
responseIndexrecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-