Record Class BedrockFormScene.Fallback
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.form.BedrockFormScene.Fallback
- Enclosing class:
BedrockFormScene
public static record BedrockFormScene.Fallback(String title, String content, int sourceButtonCount, List<BedrockFormScene.FallbackButton> buttons)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFallback(String title, String content, int sourceButtonCount, List<BedrockFormScene.FallbackButton> buttons) Creates an instance of aFallbackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuttons()Returns the value of thebuttonsrecord component.content()Returns the value of thecontentrecord 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 thesourceButtonCountrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fallback
public Fallback(String title, String content, int sourceButtonCount, List<BedrockFormScene.FallbackButton> buttons) Creates an instance of aFallbackrecord class.- Parameters:
title- the value for thetitlerecord componentcontent- the value for thecontentrecord componentsourceButtonCount- the value for thesourceButtonCountrecord componentbuttons- the value for thebuttonsrecord 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. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
sourceButtonCount
public int sourceButtonCount()Returns the value of thesourceButtonCountrecord component.- Returns:
- the value of the
sourceButtonCountrecord component
-
buttons
Returns the value of thebuttonsrecord component.- Returns:
- the value of the
buttonsrecord component
-