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

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the babyBodyScale record component.
    private final float
    The field for the babyHeadScale record component.
    private final float
    The field for the babyYHeadOffset record component.
    private final float
    The field for the babyZHeadOffset record component.
    private final float
    The field for the bodyYOffset record component.
    private final Set<String>
    The field for the headParts record component.
    private final boolean
    The field for the scaleHead record component.

    Fields inherited from interface net.minecraft.client.model.geom.builders.MeshTransformer

    IDENTITY
  • Constructor Summary

    Constructors
    Constructor
    Description
    BabyModelTransform(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, float babyHeadScale, float babyBodyScale, float bodyYOffset, Set<String> headParts)
    Creates an instance of a BabyModelTransform record class.
    BabyModelTransform(boolean p_363243_, float p_361705_, float p_364325_, Set<String> p_360719_)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(MeshDefinition p_364484_)
     
    float
    Returns the value of the babyBodyScale record component.
    float
    Returns the value of the babyHeadScale record component.
    float
    Returns the value of the babyYHeadOffset record component.
    float
    Returns the value of the babyZHeadOffset record component.
    float
    Returns the value of the bodyYOffset record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the headParts record component.
    boolean
    Returns the value of the scaleHead record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • scaleHead

      private final boolean scaleHead
      The field for the scaleHead record component.
    • babyYHeadOffset

      private final float babyYHeadOffset
      The field for the babyYHeadOffset record component.
    • babyZHeadOffset

      private final float babyZHeadOffset
      The field for the babyZHeadOffset record component.
    • babyHeadScale

      private final float babyHeadScale
      The field for the babyHeadScale record component.
    • babyBodyScale

      private final float babyBodyScale
      The field for the babyBodyScale record component.
    • bodyYOffset

      private final float bodyYOffset
      The field for the bodyYOffset record component.
    • headParts

      private final Set<String> headParts
      The field for the headParts record component.
  • Constructor Details

    • BabyModelTransform

      public BabyModelTransform(Set<String> p_363672_)
    • BabyModelTransform

      public BabyModelTransform(boolean p_363243_, float p_361705_, float p_364325_, Set<String> p_360719_)
    • BabyModelTransform

      public BabyModelTransform(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, float babyHeadScale, float babyBodyScale, float bodyYOffset, Set<String> headParts)
      Creates an instance of a BabyModelTransform record class.
      Parameters:
      scaleHead - the value for the scaleHead record component
      babyYHeadOffset - the value for the babyYHeadOffset record component
      babyZHeadOffset - the value for the babyZHeadOffset record component
      babyHeadScale - the value for the babyHeadScale record component
      babyBodyScale - the value for the babyBodyScale record component
      bodyYOffset - the value for the bodyYOffset record component
      headParts - the value for the headParts record component
  • Method Details

    • apply

      public MeshDefinition apply(MeshDefinition p_364484_)
      Specified by:
      apply in interface MeshTransformer
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • scaleHead

      public boolean scaleHead()
      Returns the value of the scaleHead record component.
      Returns:
      the value of the scaleHead record component
    • babyYHeadOffset

      public float babyYHeadOffset()
      Returns the value of the babyYHeadOffset record component.
      Returns:
      the value of the babyYHeadOffset record component
    • babyZHeadOffset

      public float babyZHeadOffset()
      Returns the value of the babyZHeadOffset record component.
      Returns:
      the value of the babyZHeadOffset record component
    • babyHeadScale

      public float babyHeadScale()
      Returns the value of the babyHeadScale record component.
      Returns:
      the value of the babyHeadScale record component
    • babyBodyScale

      public float babyBodyScale()
      Returns the value of the babyBodyScale record component.
      Returns:
      the value of the babyBodyScale record component
    • bodyYOffset

      public float bodyYOffset()
      Returns the value of the bodyYOffset record component.
      Returns:
      the value of the bodyYOffset record component
    • headParts

      public Set<String> headParts()
      Returns the value of the headParts record component.
      Returns:
      the value of the headParts record component