Record Class GenderArmor

java.lang.Object
java.lang.Record
com.wildfire.api.impl.GenderArmor
All Implemented Interfaces:
IGenderArmor

public record GenderArmor(float physicsResistance, float tightness, boolean coversBreasts, boolean alwaysHidesBreasts, boolean armorStandsCopySettings, IBreastArmorTexture texture) extends Record implements IGenderArmor
Default record implementation of IGenderArmor used for resource pack entries
See Also:
  • Field Summary

    Fields inherited from interface IGenderArmor

    CODEC, DEFAULT, EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    GenderArmor(float physicsResistance, float tightness)
     
    GenderArmor(float physicsResistance, float tightness, boolean armorStandsCopySettings)
     
    GenderArmor(float physicsResistance, float tightness, boolean coversBreasts, boolean alwaysHidesBreasts, boolean armorStandsCopySettings, IBreastArmorTexture texture)
    Creates an instance of a GenderArmor record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the alwaysHidesBreasts record component.
    boolean
    Returns the value of the armorStandsCopySettings record component.
    boolean
    Returns the value of the coversBreasts record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the physicsResistance record component.
    Returns the value of the texture record component.
    float
    Returns the value of the tightness 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

    • GenderArmor

      public GenderArmor(float physicsResistance, float tightness)
    • GenderArmor

      public GenderArmor(float physicsResistance, float tightness, boolean armorStandsCopySettings)
    • GenderArmor

      public GenderArmor(float physicsResistance, float tightness, boolean coversBreasts, boolean alwaysHidesBreasts, boolean armorStandsCopySettings, IBreastArmorTexture texture)
      Creates an instance of a GenderArmor record class.
      Parameters:
      physicsResistance - the value for the physicsResistance record component
      tightness - the value for the tightness record component
      coversBreasts - the value for the coversBreasts record component
      alwaysHidesBreasts - the value for the alwaysHidesBreasts record component
      armorStandsCopySettings - the value for the armorStandsCopySettings record component
      texture - the value for the texture 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.
    • physicsResistance

      public float physicsResistance()
      Returns the value of the physicsResistance record component.
      Specified by:
      physicsResistance in interface IGenderArmor
      Returns:
      the value of the physicsResistance record component
    • tightness

      public float tightness()
      Returns the value of the tightness record component.
      Specified by:
      tightness in interface IGenderArmor
      Returns:
      the value of the tightness record component
    • coversBreasts

      public boolean coversBreasts()
      Returns the value of the coversBreasts record component.
      Specified by:
      coversBreasts in interface IGenderArmor
      Returns:
      the value of the coversBreasts record component
    • alwaysHidesBreasts

      public boolean alwaysHidesBreasts()
      Returns the value of the alwaysHidesBreasts record component.
      Specified by:
      alwaysHidesBreasts in interface IGenderArmor
      Returns:
      the value of the alwaysHidesBreasts record component
    • armorStandsCopySettings

      public boolean armorStandsCopySettings()
      Returns the value of the armorStandsCopySettings record component.
      Specified by:
      armorStandsCopySettings in interface IGenderArmor
      Returns:
      the value of the armorStandsCopySettings record component
      See Also:
    • texture

      public IBreastArmorTexture texture()
      Returns the value of the texture record component.
      Specified by:
      texture in interface IGenderArmor
      Returns:
      the value of the texture record component
      See Also: