Package net.minecraft.client.model
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 net.minecraft.client.model.geom.builders.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 p_363243_, float p_361705_, float p_364325_, Set<String> p_360719_) BabyModelTransform(Set<String> p_363672_) -
Method Summary
Modifier and TypeMethodDescriptionapply(MeshDefinition p_364484_) 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
The field for theheadPartsrecord component.
-
-
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
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. -
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. -
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 '=='. -
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
Returns the value of theheadPartsrecord component.- Returns:
- the value of the
headPartsrecord component
-