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 float
The field for theanimation
record component.private final SkullBlock.Type
The field for thekind
record component.static final com.mojang.serialization.MapCodec
<SkullSpecialRenderer.Unbaked> private final Optional
<ResourceLocation> The field for thetextureOverride
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked
(SkullBlock.Type p_387200_) Unbaked
(SkullBlock.Type kind, Optional<ResourceLocation> textureOverride, float animation) Creates an instance of aUnbaked
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value of theanimation
record component.bake
(EntityModelSet p_388555_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.kind()
Returns the value of thekind
record component.Returns the value of thetextureOverride
record component.final String
toString()
Returns a string representation of this record class.com.mojang.serialization.MapCodec
<SkullSpecialRenderer.Unbaked> type()
-
Field Details
-
kind
The field for thekind
record component. -
textureOverride
The field for thetextureOverride
record component. -
animation
private final float animationThe field for theanimation
record component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbaked
record class.- Parameters:
kind
- the value for thekind
record componenttextureOverride
- the value for thetextureOverride
record componentanimation
- the value for theanimation
record component
-
-
Method Details
-
type
- Specified by:
type
in interfaceSpecialModelRenderer.Unbaked
-
bake
- Specified by:
bake
in 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 thekind
record component.- Returns:
- the value of the
kind
record component
-
textureOverride
Returns the value of thetextureOverride
record component.- Returns:
- the value of the
textureOverride
record component
-
animation
public float animation()Returns the value of theanimation
record component.- Returns:
- the value of the
animation
record component
-