Record Class Click

java.lang.Object
java.lang.Record
net.minecraft.client.gui.Click
Record Components:
x -
y -
buttonInfo -
All Implemented Interfaces:
AbstractInput

@Environment(CLIENT) public record Click(double x, double y, MouseInput buttonInfo) extends Record implements AbstractInput
Mappings:
Namespace Name
named net/minecraft/client/gui/Click
intermediary net/minecraft/class_11909
official gti
named x
intermediary comp_4798
official b
named y
intermediary comp_4799
official c
named buttonInfo
intermediary comp_4800
official d
  • Field Details

    • x

      private final double x
      The field for the x record component.
    • y

      private final double y
      The field for the y record component.
    • buttonInfo

      private final MouseInput buttonInfo
      The field for the buttonInfo record component.
  • Constructor Details

    • Click

      public Click(double double2, double double3, MouseInput mouseInput)
  • Method Details

    • getKeycode

      public int getKeycode()
      Specified by:
      getKeycode in interface AbstractInput
      Mappings:
      Namespace Name Mixin selector
      named getKeycode Lnet/minecraft/client/input/AbstractInput;getKeycode()I
      intermediary method_74228 Lnet/minecraft/class_11907;method_74228()I
      official a Lgtg;a()I
    • button

      public int button()
      Mappings:
      Namespace Name Mixin selector
      named button Lnet/minecraft/client/gui/Click;button()I
      intermediary method_74245 Lnet/minecraft/class_11909;method_74245()I
      official s Lgti;s()I
    • modifiers

      public int modifiers()
      Specified by:
      modifiers in interface AbstractInput
      Mappings:
      Namespace Name Mixin selector
      named modifiers Lnet/minecraft/client/input/AbstractInput;modifiers()I
      intermediary comp_4797 Lnet/minecraft/class_11907;comp_4797()I
      official b Lgtg;b()I
    • 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 object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • x

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

      public double y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • buttonInfo

      public MouseInput buttonInfo()
      Returns the value of the buttonInfo record component.
      Returns:
      the value of the buttonInfo record component