Record Class NativeUiInput.HoverBinding
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.HoverBinding
- Enclosing class:
NativeUiInput
public static record NativeUiInput.HoverBinding(int target, NativeUiInput.Scope scope)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHoverBinding(int target, NativeUiInput.Scope scope) Creates an instance of aHoverBindingrecord 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.scope()Returns the value of thescoperecord component.inttarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HoverBinding
Creates an instance of aHoverBindingrecord class.- Parameters:
target- the value for thetargetrecord componentscope- the value for thescoperecord 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. -
target
public int target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-