Record Class NativeUiInput.Hover
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Hover
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Hover(int result, boolean hovered, boolean changed, List<NativeUiInput.ButtonEvent> events)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHover(int result, boolean hovered, boolean changed, List<NativeUiInput.ButtonEvent> events) Creates an instance of aHoverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchanged()Returns the value of thechangedrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.booleanhovered()Returns the value of thehoveredrecord component.intresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hover
Creates an instance of aHoverrecord class.- Parameters:
result- the value for theresultrecord componenthovered- the value for thehoveredrecord componentchanged- the value for thechangedrecord componentevents- the value for theeventsrecord 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
-
hovered
public boolean hovered()Returns the value of thehoveredrecord component.- Returns:
- the value of the
hoveredrecord component
-
changed
public boolean changed()Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-