Record Class BabyModelTransformer
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.model.BabyModelTransformer
- Record Components:
scaleHead-babyYHeadOffset-babyZHeadOffset-babyHeadScale-babyBodyScale-bodyYOffset-headParts-
- All Implemented Interfaces:
ModelTransformer
@Environment(CLIENT)
public record BabyModelTransformer(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, float babyHeadScale, float babyBodyScale, float bodyYOffset, Set<String> headParts)
extends Record
implements ModelTransformer
- Mappings:
Namespace Name named net/minecraft/client/render/entity/model/BabyModelTransformerintermediary net/minecraft/class_9941official gginamed scaleHeadintermediary comp_2988official bnamed babyYHeadOffsetintermediary comp_2989official cnamed babyZHeadOffsetintermediary comp_2990official dnamed babyHeadScaleintermediary comp_2991official enamed babyBodyScaleintermediary comp_2992official fnamed bodyYOffsetintermediary comp_2993official gnamed headPartsintermediary comp_2994official h
-
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.render.entity.model.ModelTransformer
NO_OP -
Constructor Summary
ConstructorsConstructorDescriptionBabyModelTransformer(boolean bool, float float2, float float3, float float4, float float5, float float6, Set<String> set) BabyModelTransformer(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, Set<String> headParts) BabyModelTransformer(Set<String> headParts) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns 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
-
BabyModelTransformer
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/entity/model/BabyModelTransformer;<init>(Ljava/util/Set;)Vintermediary <init>Lnet/minecraft/class_9941;<init>(Ljava/util/Set;)Vofficial <init>Lggi;<init>(Ljava/util/Set;)V
-
BabyModelTransformer
public BabyModelTransformer(boolean scaleHead, float babyYHeadOffset, float babyZHeadOffset, Set<String> headParts) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/entity/model/BabyModelTransformer;<init>(ZFFLjava/util/Set;)Vintermediary <init>Lnet/minecraft/class_9941;<init>(ZFFLjava/util/Set;)Vofficial <init>Lggi;<init>(ZFFLjava/util/Set;)V
-
BabyModelTransformer
-
-
Method Details
-
apply
- Specified by:
applyin interfaceModelTransformer- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/render/entity/model/ModelTransformer;apply(Lnet/minecraft/client/model/ModelData;)Lnet/minecraft/client/model/ModelData;intermediary applyLnet/minecraft/class_9953;apply(Lnet/minecraft/class_5609;)Lnet/minecraft/class_5609;official applyLgla;apply(Lgkz;)Lgkz;
-
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
-