Record Class Breasts

java.lang.Object
java.lang.Record
com.wildfire.common.entitydata.Breasts
Record Components:
xOffset - How far apart the player's breasts should be rendered from each other, also referred to as Separation in the UI. A value between -1F and 1F. Negative float values renders the breasts further apart, while positive values renders them closer together
yOffset - How far up or down the player's breasts should be rendered, also referred to as Height in the UI. A value between -1F and 1F. Negative values renders the breasts lower down, while positive values renders them higher up
zOffset - How far back the player's breasts should be rendered, also referred to as Depth in the UI. A value between 0F and 1F
cleavage - How much rotation outward there should be on each of the player's breasts. A value between 0F and 0.1F

public record Breasts(ConfigValue<Float> xOffset, ConfigValue<Float> yOffset, ConfigValue<Float> zOffset, ConfigValue<Float> bustSize, ConfigValue<Float> cleavage, Breasts.Physics physics) extends Record
Data class representing an entity's breast appearance settings
  • Field Details

    • BREASTS_OFFSET_X

      public static final ConfigKey<Float> BREASTS_OFFSET_X
    • BREASTS_OFFSET_Y

      public static final ConfigKey<Float> BREASTS_OFFSET_Y
    • BREASTS_OFFSET_Z

      public static final ConfigKey<Float> BREASTS_OFFSET_Z
    • BUST_SIZE

      public static final ConfigKey<Float> BUST_SIZE
    • BREASTS_CLEAVAGE

      public static final ConfigKey<Float> BREASTS_CLEAVAGE
    • OFFSET_CODEC

      public static final com.mojang.serialization.Codec<org.joml.Vector3fc> OFFSET_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<Breasts> CODEC
    • LEGACY_CODEC

      public static final com.mojang.serialization.MapCodec<Breasts> LEGACY_CODEC
    • CODEC_OR_LEGACY

      public static final com.mojang.serialization.MapCodec<Breasts> CODEC_OR_LEGACY
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Breasts> STREAM_CODEC
  • Constructor Details

  • Method Details

    • offset

      public org.joml.Vector3f offset()
    • updateFromComponent

      public void updateFromComponent(BreastDataComponent component)
    • getDebugInfo

      public List<String> getDebugInfo()
    • 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 Objects::equals(Object,Object).
      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.
    • xOffset

      public ConfigValue<Float> xOffset()
      Returns the value of the xOffset record component.
      Returns:
      the value of the xOffset record component
    • yOffset

      public ConfigValue<Float> yOffset()
      Returns the value of the yOffset record component.
      Returns:
      the value of the yOffset record component
    • zOffset

      public ConfigValue<Float> zOffset()
      Returns the value of the zOffset record component.
      Returns:
      the value of the zOffset record component
    • bustSize

      public ConfigValue<Float> bustSize()
      Returns the value of the bustSize record component.
      Returns:
      the value of the bustSize record component
    • cleavage

      public ConfigValue<Float> cleavage()
      Returns the value of the cleavage record component.
      Returns:
      the value of the cleavage record component
    • physics

      public Breasts.Physics physics()
      Returns the value of the physics record component.
      Returns:
      the value of the physics record component