Record Class CustomHeadLayer.Transforms
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.layers.CustomHeadLayer.Transforms
- Enclosing class:
CustomHeadLayer<S extends LivingEntityRenderState,M extends EntityModel<S> & HeadedModel>
public static record CustomHeadLayer.Transforms(float yOffset, float skullYOffset, float horizontalScale)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomHeadLayer.Transformsprivate final floatThe field for thehorizontalScalerecord component.private final floatThe field for theskullYOffsetrecord component.private final floatThe field for theyOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTransforms(float yOffset, float skullYOffset, float horizontalScale) Creates an instance of aTransformsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thehorizontalScalerecord component.floatReturns the value of theskullYOffsetrecord component.final StringtoString()Returns a string representation of this record class.floatyOffset()Returns the value of theyOffsetrecord component.
-
Field Details
-
yOffset
private final float yOffsetThe field for theyOffsetrecord component. -
skullYOffset
private final float skullYOffsetThe field for theskullYOffsetrecord component. -
horizontalScale
private final float horizontalScaleThe field for thehorizontalScalerecord component. -
DEFAULT
-
-
Constructor Details
-
Transforms
public Transforms(float yOffset, float skullYOffset, float horizontalScale) Creates an instance of aTransformsrecord class.- Parameters:
yOffset- the value for theyOffsetrecord componentskullYOffset- the value for theskullYOffsetrecord componenthorizontalScale- the value for thehorizontalScalerecord component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
yOffset
public float yOffset()Returns the value of theyOffsetrecord component.- Returns:
- the value of the
yOffsetrecord component
-
skullYOffset
public float skullYOffset()Returns the value of theskullYOffsetrecord component.- Returns:
- the value of the
skullYOffsetrecord component
-
horizontalScale
public float horizontalScale()Returns the value of thehorizontalScalerecord component.- Returns:
- the value of the
horizontalScalerecord component
-