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

    Constructors
    Constructor
    Description
    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 a Context record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the flags record component.
    int
    Returns the value of the handlerMask record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the inside record component.
    boolean
    Returns the value of the insideAlternate record component.
    boolean
    Returns the value of the insideClip record component.
    int
    Returns the value of the mode record component.
    long
    Returns the value of the nanos record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the touchFallback record component.
    float
    x()
    Returns the value of the x record component.
    float
    y()
    Returns the value of the y record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Context record class.
      Parameters:
      flags - the value for the flags record component
      mode - the value for the mode record component
      x - the value for the x record component
      y - the value for the y record component
      inside - the value for the inside record component
      insideClip - the value for the insideClip record component
      insideAlternate - the value for the insideAlternate record component
      touchFallback - the value for the touchFallback record component
      nanos - the value for the nanos record component
      handlerMask - the value for the handlerMask record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • flags

      public int flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • mode

      public int mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • x

      public float x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public float y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • inside

      public boolean inside()
      Returns the value of the inside record component.
      Returns:
      the value of the inside record component
    • insideClip

      public boolean insideClip()
      Returns the value of the insideClip record component.
      Returns:
      the value of the insideClip record component
    • insideAlternate

      public boolean insideAlternate()
      Returns the value of the insideAlternate record component.
      Returns:
      the value of the insideAlternate record component
    • touchFallback

      public boolean touchFallback()
      Returns the value of the touchFallback record component.
      Returns:
      the value of the touchFallback record component
    • nanos

      public long nanos()
      Returns the value of the nanos record component.
      Returns:
      the value of the nanos record component
    • handlerMask

      public int handlerMask()
      Returns the value of the handlerMask record component.
      Returns:
      the value of the handlerMask record component