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
ConstructorsConstructorDescriptionGenderArmor(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 aGenderArmorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealwaysHidesBreastsrecord component.booleanReturns the value of thearmorStandsCopySettingsrecord component.booleanReturns the value of thecoversBreastsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thephysicsResistancerecord component.texture()Returns the value of thetexturerecord component.floatReturns the value of thetightnessrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aGenderArmorrecord class.- Parameters:
physicsResistance- the value for thephysicsResistancerecord componenttightness- the value for thetightnessrecord componentcoversBreasts- the value for thecoversBreastsrecord componentalwaysHidesBreasts- the value for thealwaysHidesBreastsrecord componentarmorStandsCopySettings- the value for thearmorStandsCopySettingsrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
physicsResistance
public float physicsResistance()Returns the value of thephysicsResistancerecord component.- Specified by:
physicsResistancein interfaceIGenderArmor- Returns:
- the value of the
physicsResistancerecord component
-
tightness
public float tightness()Returns the value of thetightnessrecord component.- Specified by:
tightnessin interfaceIGenderArmor- Returns:
- the value of the
tightnessrecord component
-
coversBreasts
public boolean coversBreasts()Returns the value of thecoversBreastsrecord component.- Specified by:
coversBreastsin interfaceIGenderArmor- Returns:
- the value of the
coversBreastsrecord component
-
alwaysHidesBreasts
public boolean alwaysHidesBreasts()Returns the value of thealwaysHidesBreastsrecord component.- Specified by:
alwaysHidesBreastsin interfaceIGenderArmor- Returns:
- the value of the
alwaysHidesBreastsrecord component
-
armorStandsCopySettings
public boolean armorStandsCopySettings()Returns the value of thearmorStandsCopySettingsrecord component.- Specified by:
armorStandsCopySettingsin interfaceIGenderArmor- Returns:
- the value of the
armorStandsCopySettingsrecord component - See Also:
-
texture
Returns the value of thetexturerecord component.- Specified by:
texturein interfaceIGenderArmor- Returns:
- the value of the
texturerecord component - See Also:
-