Record Class InspectionOptions

java.lang.Object
java.lang.Record
io.hymods.lib.data.InspectionOptions

public record InspectionOptions(int maxNameLength, boolean showId, boolean showModName, boolean showBenchInfo, boolean showMiningInfo, boolean showFarmingInfo, boolean showBlockEntityInfo, boolean showEntityHealth) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    InspectionOptions(int maxNameLength, boolean showId, boolean showModName, boolean showBenchInfo, boolean showMiningInfo, boolean showFarmingInfo, boolean showBlockEntityInfo, boolean showEntityHealth)
    Creates an instance of a InspectionOptions record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxNameLength record component.
    boolean
    Returns the value of the showBenchInfo record component.
    boolean
    Returns the value of the showBlockEntityInfo record component.
    boolean
    Returns the value of the showEntityHealth record component.
    boolean
    Returns the value of the showFarmingInfo record component.
    boolean
    Returns the value of the showId record component.
    boolean
    Returns the value of the showMiningInfo record component.
    boolean
    Returns the value of the showModName 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
  • Constructor Details

    • InspectionOptions

      public InspectionOptions(int maxNameLength, boolean showId, boolean showModName, boolean showBenchInfo, boolean showMiningInfo, boolean showFarmingInfo, boolean showBlockEntityInfo, boolean showEntityHealth)
      Creates an instance of a InspectionOptions record class.
      Parameters:
      maxNameLength - the value for the maxNameLength record component
      showId - the value for the showId record component
      showModName - the value for the showModName record component
      showBenchInfo - the value for the showBenchInfo record component
      showMiningInfo - the value for the showMiningInfo record component
      showFarmingInfo - the value for the showFarmingInfo record component
      showBlockEntityInfo - the value for the showBlockEntityInfo record component
      showEntityHealth - the value for the showEntityHealth record component
  • Method Details

    • defaults

      public static InspectionOptions defaults()
    • 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.
    • maxNameLength

      public int maxNameLength()
      Returns the value of the maxNameLength record component.
      Returns:
      the value of the maxNameLength record component
    • showId

      public boolean showId()
      Returns the value of the showId record component.
      Returns:
      the value of the showId record component
    • showModName

      public boolean showModName()
      Returns the value of the showModName record component.
      Returns:
      the value of the showModName record component
    • showBenchInfo

      public boolean showBenchInfo()
      Returns the value of the showBenchInfo record component.
      Returns:
      the value of the showBenchInfo record component
    • showMiningInfo

      public boolean showMiningInfo()
      Returns the value of the showMiningInfo record component.
      Returns:
      the value of the showMiningInfo record component
    • showFarmingInfo

      public boolean showFarmingInfo()
      Returns the value of the showFarmingInfo record component.
      Returns:
      the value of the showFarmingInfo record component
    • showBlockEntityInfo

      public boolean showBlockEntityInfo()
      Returns the value of the showBlockEntityInfo record component.
      Returns:
      the value of the showBlockEntityInfo record component
    • showEntityHealth

      public boolean showEntityHealth()
      Returns the value of the showEntityHealth record component.
      Returns:
      the value of the showEntityHealth record component