Record Class KeyEntryRenderEvent

java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.KeyEntryRenderEvent
All Implemented Interfaces:
IKeyEntryRenderEvent

public record KeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rowLeft, int rowWidth, boolean hovered, float partialTicks) extends Record implements IKeyEntryRenderEvent
RenderKeyEntryEvent is called at the top of IKeyEntry.extractContent(GuiGraphicsExtractor, int, int, boolean, float) is called, allowing mods to render additional info.
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rowLeft, int rowWidth, boolean hovered, float partialTicks)
    Creates an instance of a KeyEntryRenderEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the entry record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.client.gui.GuiGraphicsExtractor
    Returns the value of the graphics record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hovered record component.
    float
    Returns the value of the partialTicks record component.
    int
    Returns the value of the rowLeft record component.
    int
    Returns the value of the rowWidth record component.
    final String
    Returns a string representation of this record class.
    int
    x()
    Returns the value of the x record component.
    int
    y()
    Returns the value of the y record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KeyEntryRenderEvent

      public KeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rowLeft, int rowWidth, boolean hovered, float partialTicks)
      Creates an instance of a KeyEntryRenderEvent record class.
      Parameters:
      entry - the value for the entry record component
      graphics - the value for the graphics record component
      x - the value for the x record component
      y - the value for the y record component
      rowLeft - the value for the rowLeft record component
      rowWidth - the value for the rowWidth record component
      hovered - the value for the hovered record component
      partialTicks - the value for the partialTicks 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • entry

      public IKeyEntry entry()
      Returns the value of the entry record component.
      Specified by:
      entry in interface IKeyEntryRenderEvent
      Returns:
      the value of the entry record component
    • graphics

      public net.minecraft.client.gui.GuiGraphicsExtractor graphics()
      Returns the value of the graphics record component.
      Specified by:
      graphics in interface IKeyEntryRenderEvent
      Returns:
      the value of the graphics record component
    • x

      public int x()
      Returns the value of the x record component.
      Specified by:
      x in interface IKeyEntryRenderEvent
      Returns:
      the value of the x record component
    • y

      public int y()
      Returns the value of the y record component.
      Specified by:
      y in interface IKeyEntryRenderEvent
      Returns:
      the value of the y record component
    • rowLeft

      public int rowLeft()
      Returns the value of the rowLeft record component.
      Specified by:
      rowLeft in interface IKeyEntryRenderEvent
      Returns:
      the value of the rowLeft record component
    • rowWidth

      public int rowWidth()
      Returns the value of the rowWidth record component.
      Specified by:
      rowWidth in interface IKeyEntryRenderEvent
      Returns:
      the value of the rowWidth record component
    • hovered

      public boolean hovered()
      Returns the value of the hovered record component.
      Specified by:
      hovered in interface IKeyEntryRenderEvent
      Returns:
      the value of the hovered record component
    • partialTicks

      public float partialTicks()
      Returns the value of the partialTicks record component.
      Specified by:
      partialTicks in interface IKeyEntryRenderEvent
      Returns:
      the value of the partialTicks record component