Record Class NativeUiButton
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiButton
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNativeUiButton(boolean consumeEvent, List<String> controls) Creates an instance of aNativeUiButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconsumeEventrecord component.controls()Returns the value of thecontrolsrecord component.final booleanIndicates whether some other object is "equal to" this one.inthandlerMask(boolean enabled) final inthashCode()Returns a hash code value for this object.static NativeUiButtonparse(com.google.gson.JsonObject properties) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NativeUiButton
-
-
Method Details
-
parse
-
handlerMask
public int handlerMask(boolean enabled) -
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. -
consumeEvent
public boolean consumeEvent()Returns the value of theconsumeEventrecord component.- Returns:
- the value of the
consumeEventrecord component
-
controls
-