Record Class BabyModelTransform
java.lang.Object
java.lang.Record
net.minecraft.client.model.BabyModelTransform
- All Implemented Interfaces:
MeshTransformer
public record BabyModelTransform(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, float babyHeadScale, float babyBodyScale, float bodyYOffset, Set<String> headParts)
extends Record
implements MeshTransformer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thebabyBodyScalerecord component.private final floatThe field for thebabyHeadScalerecord component.private final floatThe field for thebabyYHeadOffsetrecord component.private final floatThe field for thebabyZHeadOffsetrecord component.private final floatThe field for thebodyYOffsetrecord component.The field for theheadPartsrecord component.private final booleanThe field for thescaleHeadrecord component.Fields inherited from interface MeshTransformer
IDENTITY -
Constructor Summary
ConstructorsConstructorDescriptionBabyModelTransform(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, float babyHeadScale, float babyBodyScale, float bodyYOffset, Set<String> headParts) Creates an instance of aBabyModelTransformrecord class.BabyModelTransform(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, Set<String> headParts) BabyModelTransform(Set<String> headParts) -
Method Summary
Modifier and TypeMethodDescriptionapply(MeshDefinition mesh) floatReturns the value of thebabyBodyScalerecord component.floatReturns the value of thebabyHeadScalerecord component.floatReturns the value of thebabyYHeadOffsetrecord component.floatReturns the value of thebabyZHeadOffsetrecord component.floatReturns the value of thebodyYOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheadPartsrecord component.booleanReturns the value of thescaleHeadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
scaleHead
private final boolean scaleHeadThe field for thescaleHeadrecord component. -
babyYHeadOffset
private final float babyYHeadOffsetThe field for thebabyYHeadOffsetrecord component. -
babyZHeadOffset
private final float babyZHeadOffsetThe field for thebabyZHeadOffsetrecord component. -
babyHeadScale
private final float babyHeadScaleThe field for thebabyHeadScalerecord component. -
babyBodyScale
private final float babyBodyScaleThe field for thebabyBodyScalerecord component. -
bodyYOffset
private final float bodyYOffsetThe field for thebodyYOffsetrecord component. -
headParts
-
-
Constructor Details
-
BabyModelTransform
-
BabyModelTransform
-
BabyModelTransform
public BabyModelTransform(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, float babyHeadScale, float babyBodyScale, float bodyYOffset, Set<String> headParts) Creates an instance of aBabyModelTransformrecord class.- Parameters:
scaleHead- the value for thescaleHeadrecord componentbabyYHeadOffset- the value for thebabyYHeadOffsetrecord componentbabyZHeadOffset- the value for thebabyZHeadOffsetrecord componentbabyHeadScale- the value for thebabyHeadScalerecord componentbabyBodyScale- the value for thebabyBodyScalerecord componentbodyYOffset- the value for thebodyYOffsetrecord componentheadParts- the value for theheadPartsrecord component
-
-
Method Details
-
apply
- Specified by:
applyin interfaceMeshTransformer
-
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. -
scaleHead
public boolean scaleHead()Returns the value of thescaleHeadrecord component.- Returns:
- the value of the
scaleHeadrecord component
-
babyYHeadOffset
public float babyYHeadOffset()Returns the value of thebabyYHeadOffsetrecord component.- Returns:
- the value of the
babyYHeadOffsetrecord component
-
babyZHeadOffset
public float babyZHeadOffset()Returns the value of thebabyZHeadOffsetrecord component.- Returns:
- the value of the
babyZHeadOffsetrecord component
-
babyHeadScale
public float babyHeadScale()Returns the value of thebabyHeadScalerecord component.- Returns:
- the value of the
babyHeadScalerecord component
-
babyBodyScale
public float babyBodyScale()Returns the value of thebabyBodyScalerecord component.- Returns:
- the value of the
babyBodyScalerecord component
-
bodyYOffset
public float bodyYOffset()Returns the value of thebodyYOffsetrecord component.- Returns:
- the value of the
bodyYOffsetrecord component
-
headParts
-