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.Transforms
private final float
The field for thehorizontalScale
record component.private final float
The field for theskullYOffset
record component.private final float
The field for theyOffset
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTransforms
(float yOffset, float skullYOffset, float horizontalScale) Creates an instance of aTransforms
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of thehorizontalScale
record component.float
Returns the value of theskullYOffset
record component.final String
toString()
Returns a string representation of this record class.float
yOffset()
Returns the value of theyOffset
record component.
-
Field Details
-
yOffset
private final float yOffsetThe field for theyOffset
record component. -
skullYOffset
private final float skullYOffsetThe field for theskullYOffset
record component. -
horizontalScale
private final float horizontalScaleThe field for thehorizontalScale
record component. -
DEFAULT
-
-
Constructor Details
-
Transforms
public Transforms(float yOffset, float skullYOffset, float horizontalScale) Creates an instance of aTransforms
record class.- Parameters:
yOffset
- the value for theyOffset
record componentskullYOffset
- the value for theskullYOffset
record componenthorizontalScale
- the value for thehorizontalScale
record 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 theyOffset
record component.- Returns:
- the value of the
yOffset
record component
-
skullYOffset
public float skullYOffset()Returns the value of theskullYOffset
record component.- Returns:
- the value of the
skullYOffset
record component
-
horizontalScale
public float horizontalScale()Returns the value of thehorizontalScale
record component.- Returns:
- the value of the
horizontalScale
record component
-