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<ResourceLocation> 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<ResourceLocation> The field for thetextureOverriderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(SkullBlock.Type p_387200_) Unbaked(SkullBlock.Type kind, Optional<ResourceLocation> textureOverride, float animation) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theanimationrecord component.bake(SpecialModelRenderer.BakingContext p_436037_) 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
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
-