Record Class NativeUiInput.Context
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiInput.Context
- Enclosing class:
NativeUiInput
public static record NativeUiInput.Context(int flags, int mode, float x, float y, boolean inside, boolean insideClip, boolean insideAlternate, boolean touchFallback, long nanos, int handlerMask)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext(int flags, int mode, float x, float y, boolean inside, boolean insideClip, boolean insideAlternate, boolean touchFallback, long nanos, int handlerMask) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intflags()Returns the value of theflagsrecord component.intReturns the value of thehandlerMaskrecord component.final inthashCode()Returns a hash code value for this object.booleaninside()Returns the value of theinsiderecord component.booleanReturns the value of theinsideAlternaterecord component.booleanReturns the value of theinsideCliprecord component.intmode()Returns the value of themoderecord component.longnanos()Returns the value of thenanosrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetouchFallbackrecord component.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Constructor Details
-
Context
public Context(int flags, int mode, float x, float y, boolean inside, boolean insideClip, boolean insideAlternate, boolean touchFallback, long nanos, int handlerMask) Creates an instance of aContextrecord class.- Parameters:
flags- the value for theflagsrecord componentmode- the value for themoderecord componentx- the value for thexrecord componenty- the value for theyrecord componentinside- the value for theinsiderecord componentinsideClip- the value for theinsideCliprecord componentinsideAlternate- the value for theinsideAlternaterecord componenttouchFallback- the value for thetouchFallbackrecord componentnanos- the value for thenanosrecord componenthandlerMask- the value for thehandlerMaskrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
mode
public int mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
inside
public boolean inside()Returns the value of theinsiderecord component.- Returns:
- the value of the
insiderecord component
-
insideClip
public boolean insideClip()Returns the value of theinsideCliprecord component.- Returns:
- the value of the
insideCliprecord component
-
insideAlternate
public boolean insideAlternate()Returns the value of theinsideAlternaterecord component.- Returns:
- the value of the
insideAlternaterecord component
-
touchFallback
public boolean touchFallback()Returns the value of thetouchFallbackrecord component.- Returns:
- the value of the
touchFallbackrecord component
-
nanos
public long nanos()Returns the value of thenanosrecord component.- Returns:
- the value of the
nanosrecord component
-
handlerMask
public int handlerMask()Returns the value of thehandlerMaskrecord component.- Returns:
- the value of the
handlerMaskrecord component
-