Record Class SkullSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.SkullSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
SkullSpecialRenderer
public static record SkullSpecialRenderer.Unbaked(SkullBlock.Type kind, Optional<Identifier> textureOverride, float animation)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theanimationrecord component.private final SkullBlock.TypeThe field for thekindrecord component.static final com.mojang.serialization.MapCodec<SkullSpecialRenderer.Unbaked> private final Optional<Identifier> The field for thetextureOverriderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(SkullBlock.Type kind) Unbaked(SkullBlock.Type kind, Optional<Identifier> textureOverride, float animation) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theanimationrecord component.@Nullable SpecialModelRenderer<?> bake(SpecialModelRenderer.BakingContext context) final booleanIndicates whether some other object is "equal to" this one.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.com.mojang.serialization.MapCodec<SkullSpecialRenderer.Unbaked> type()
-
Field Details
-
kind
The field for thekindrecord component. -
textureOverride
The field for thetextureOverriderecord component. -
animation
private final float animationThe field for theanimationrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
kind- the value for thekindrecord componenttextureOverride- the value for thetextureOverriderecord componentanimation- the value for theanimationrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceSpecialModelRenderer.Unbaked
-
bake
- Specified by:
bakein interfaceSpecialModelRenderer.Unbaked
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-