Record Class HeadModelRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.special.HeadModelRenderer.Unbaked
- Record Components:
kind-textureOverride-animation-
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
HeadModelRenderer
@Environment(CLIENT)
public static record HeadModelRenderer.Unbaked(SkullBlock.SkullType kind, Optional<Identifier> textureOverride, float animation)
extends Record
implements SpecialModelRenderer.Unbaked
- Mappings:
Namespace Name named net/minecraft/client/render/item/model/special/HeadModelRenderer$Unbakedintermediary net/minecraft/class_10513$class_10514official hdw$anamed kindintermediary comp_3425official bnamed textureOverrideintermediary comp_3442official cnamed animationintermediary comp_3470official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theanimationrecord component.static final com.mojang.serialization.MapCodec<HeadModelRenderer.Unbaked> private final SkullBlock.SkullTypeThe field for thekindrecord component.private final Optional<Identifier> The field for thetextureOverriderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(SkullBlock.SkullType kind) Unbaked(SkullBlock.SkullType skullType, Optional<Identifier> optional, float float2) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theanimationrecord component.bake(LoadedEntityModels entityModels) final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<HeadModelRenderer.Unbaked> getCodec()final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thetextureOverriderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
kind
The field for thekindrecord component. -
textureOverride
The field for thetextureOverriderecord component. -
animation
private final float animationThe field for theanimationrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/item/model/special/HeadModelRenderer$Unbaked;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_55451Lnet/minecraft/class_10513$class_10514;field_55451:Lcom/mojang/serialization/MapCodec;official aLhdw$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Unbaked
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/item/model/special/HeadModelRenderer$Unbaked;<init>(Lnet/minecraft/block/SkullBlock$SkullType;)Vintermediary <init>Lnet/minecraft/class_10513$class_10514;<init>(Lnet/minecraft/class_2484$class_2485;)Vofficial <init>Lhdw$a;<init>(Ldqu$a;)V
-
Unbaked
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceSpecialModelRenderer.Unbaked- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/client/render/item/model/special/SpecialModelRenderer$Unbaked;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_65696Lnet/minecraft/class_10515$class_10516;method_65696()Lcom/mojang/serialization/MapCodec;official aLhdx$a;a()Lcom/mojang/serialization/MapCodec;
-
bake
- Specified by:
bakein interfaceSpecialModelRenderer.Unbaked- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/render/item/model/special/SpecialModelRenderer$Unbaked;bake(Lnet/minecraft/client/render/entity/model/LoadedEntityModels;)Lnet/minecraft/client/render/item/model/special/SpecialModelRenderer;intermediary method_65698Lnet/minecraft/class_10515$class_10516;method_65698(Lnet/minecraft/class_5599;)Lnet/minecraft/class_10515;official aLhdx$a;a(Lgfa;)Lhdx;
-
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 '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
textureOverride
Returns the value of thetextureOverriderecord component.- Returns:
- the value of the
textureOverriderecord component
-
animation
public float animation()Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-