Interface IGenderArmor
- All Known Implementing Classes:
GenderArmor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IGenderArmor> static final IGenderArmorDefault implementation used to represent armor types that lack any configurationstatic final IGenderArmorDefault implementation used when the playerisn't wearing a chestplate, or if the worn chestplate specifies that it doesn't cover the breasts. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDetermines if thisIGenderArmorshould always hide the wearer's breasts when worn even if they haveshowBreastsInArmorset totrue.default booleanDetermines whether armor stands should copy the breast settings of the player equipping this chestplate onto it.default booleanDetermines whether thisIGenderArmor"covers" the breasts or if it has an open front (false) like the elytra.default floatThe percent of physical resistance thisIGenderArmorprovides to the wearer's breasts when calculating the corresponding physics.default IBreastArmorTexturetexture()Overrides certain values when this armor piece is being rendereddefault floatValue representing how "tight" thisIGenderArmoris.
-
Field Details
-
DEFAULT
Default implementation used to represent armor types that lack any configuration -
EMPTY
Default implementation used when the playerisn't wearing a chestplate, or if the worn chestplate specifies that it doesn't cover the breasts. -
CODEC
-
-
Method Details
-
coversBreasts
default boolean coversBreasts()Determines whether this
IGenderArmor"covers" the breasts or if it has an open front (false) like the elytra.If this returns
falsethe breast armor layer will not be rendered while this item is worn, as if the item simply didn't exist.- Returns:
trueif this armor piece covers the wearer's breasts in any capacity.- Implementation Note:
- Defaults to
true.
-
alwaysHidesBreasts
default boolean alwaysHidesBreasts()Determines if this
IGenderArmorshould always hide the wearer's breasts when worn even if they haveshowBreastsInArmorset totrue.This is intended for armors that may have custom rendering that is not compatible with how breasts render and would just lead to clipping or other unintended behavior.
- Returns:
trueto always hide the breasts of players wearing this armor piece.- Implementation Note:
- Defaults to
false.
-
physicsResistance
default float physicsResistance()The percent of physical resistance thisIGenderArmorprovides to the wearer's breasts when calculating the corresponding physics.- Returns:
- Value between
0(no resistance, full physics) and1(total resistance, no physics). - Implementation Note:
- Defaults to
0.5f(50% physics resistance).
-
tightness
default float tightness()Value representing how "tight" thisIGenderArmoris. Tightness "compresses" the breasts against the wearer, causing the breasts to appear up to 15% smaller.- Returns:
- Value between
0(no tightness, no size reduction) and1(full tightness,15%size reduction). - Implementation Note:
- Defaults to
0(no tightness, no size reduction).
-
armorStandsCopySettings
default boolean armorStandsCopySettings()Determines whether armor stands should copy the breast settings of the player equipping this chestplate onto it.
If this returns
true, the equipping player's breast settings will also be rendered when this armor piece is equipped onto an armor stand.This is designed for armor types that are metallic in nature, and not armor types that would (realistically) be flexible enough to accommodate for the wearer's breasts on their own (such as Leather and Chain).
- Returns:
trueto copy the equipping player's breast settings onto this armor type when equipped onto armor stands, and render the relevant breast settings on the armor stand.- See Also:
- Implementation Note:
- Defaults to returning
trueif this armorcovers the breasts(anddoesn't hide them), andhas complete physics resistance.
-
texture
Overrides certain values when this armor piece is being rendered- Returns:
- The relevant
IBreastArmorTexture - See Also:
- Implementation Note:
- Defaults to
IBreastArmorTexture.DEFAULT
-