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-1Fand1F. Negative float values renders the breasts further apart, while positive values renders them closer togetheryOffset- How far up or down the player's breasts should be rendered, also referred to as Height in the UI. A value between-1Fand1F. Negative values renders the breasts lower down, while positive values renders them higher upzOffset- How far back the player's breasts should be rendered, also referred to as Depth in the UI. A value between0Fand1Fcleavage- How much rotation outward there should be on each of the player's breasts. A value between0Fand0.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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Breasts> static final com.mojang.serialization.MapCodec<Breasts> static final com.mojang.serialization.MapCodec<Breasts> static final com.mojang.serialization.Codec<org.joml.Vector3fc> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Breasts> -
Constructor Summary
ConstructorsConstructorDescriptionBreasts(ConfigValue<Float> xOffset, ConfigValue<Float> yOffset, ConfigValue<Float> zOffset, ConfigValue<Float> bustSize, ConfigValue<Float> cleavage, Breasts.Physics physics) Creates an instance of aBreastsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbustSize()Returns the value of thebustSizerecord component.cleavage()Returns the value of thecleavagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector3foffset()physics()Returns the value of thephysicsrecord component.final StringtoString()Returns a string representation of this record class.voidupdateFromComponent(BreastDataComponent component) xOffset()Returns the value of thexOffsetrecord component.yOffset()Returns the value of theyOffsetrecord component.zOffset()Returns the value of thezOffsetrecord component.
-
Field Details
-
BREASTS_OFFSET_X
-
BREASTS_OFFSET_Y
-
BREASTS_OFFSET_Z
-
BUST_SIZE
-
BREASTS_CLEAVAGE
-
OFFSET_CODEC
public static final com.mojang.serialization.Codec<org.joml.Vector3fc> OFFSET_CODEC -
CODEC
-
LEGACY_CODEC
-
CODEC_OR_LEGACY
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Breasts> STREAM_CODEC
-
-
Constructor Details
-
Breasts
public Breasts(ConfigValue<Float> xOffset, ConfigValue<Float> yOffset, ConfigValue<Float> zOffset, ConfigValue<Float> bustSize, ConfigValue<Float> cleavage, Breasts.Physics physics) Creates an instance of aBreastsrecord class.- Parameters:
xOffset- the value for thexOffsetrecord componentyOffset- the value for theyOffsetrecord componentzOffset- the value for thezOffsetrecord componentbustSize- the value for thebustSizerecord componentcleavage- the value for thecleavagerecord componentphysics- the value for thephysicsrecord component
-
-
Method Details
-
offset
public org.joml.Vector3f offset() -
updateFromComponent
-
getDebugInfo
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
xOffset
-
yOffset
-
zOffset
-
bustSize
Returns the value of thebustSizerecord component.- Returns:
- the value of the
bustSizerecord component
-
cleavage
-
physics
Returns the value of thephysicsrecord component.- Returns:
- the value of the
physicsrecord component
-