Record Class NativeUiInput.Pointer
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Pointer
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Pointer(int result, NativeUiInput.Hover hover, boolean pointerEvent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPointer(int result, NativeUiInput.Hover hover, boolean pointerEvent) Creates an instance of aPointerrecord 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.hover()Returns the value of thehoverrecord component.booleanReturns the value of thepointerEventrecord component.intresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Pointer
Creates an instance of aPointerrecord class.- Parameters:
result- the value for theresultrecord componenthover- the value for thehoverrecord componentpointerEvent- the value for thepointerEventrecord 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. -
result
public int result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
hover
Returns the value of thehoverrecord component.- Returns:
- the value of the
hoverrecord component
-
pointerEvent
public boolean pointerEvent()Returns the value of thepointerEventrecord component.- Returns:
- the value of the
pointerEventrecord component
-