Record Class GuiRenderEvents.AttackIndicator

java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.event.GuiRenderEvents.AttackIndicator
Enclosing class:
GuiRenderEvents

@Environment(CLIENT) public static record GuiRenderEvents.AttackIndicator(net.minecraft.resources.Identifier full, net.minecraft.resources.Identifier background, net.minecraft.resources.Identifier progress) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AttackIndicator(net.minecraft.resources.Identifier full, net.minecraft.resources.Identifier background, net.minecraft.resources.Identifier progress)
    Creates an instance of a AttackIndicator record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.Identifier
    Returns the value of the background record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.resources.Identifier
    Returns the value of the full record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.resources.Identifier
    Returns the value of the progress record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

  • Constructor Details

    • AttackIndicator

      public AttackIndicator(net.minecraft.resources.Identifier full, net.minecraft.resources.Identifier background, net.minecraft.resources.Identifier progress)
      Creates an instance of a AttackIndicator record class.
      Parameters:
      full - the value for the full record component
      background - the value for the background record component
      progress - the value for the progress record component
  • Method Details

    • equals

      public boolean equals(Object obj)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • 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
    • full

      public net.minecraft.resources.Identifier full()
      Returns the value of the full record component.
      Returns:
      the value of the full record component
    • background

      public net.minecraft.resources.Identifier background()
      Returns the value of the background record component.
      Returns:
      the value of the background record component
    • progress

      public net.minecraft.resources.Identifier progress()
      Returns the value of the progress record component.
      Returns:
      the value of the progress record component