Record Class HeadProfile
java.lang.Object
java.lang.Record
net.minestom.server.item.component.HeadProfile
public record HeadProfile(@Nullable String name, @Nullable UUID uuid, @NotNull List<HeadProfile.Property> properties)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec
<HeadProfile> static final HeadProfile
static final NetworkBuffer.Type
<HeadProfile> -
Constructor Summary
ConstructorsConstructorDescriptionHeadProfile
(@Nullable String name, @Nullable UUID uuid, @NotNull List<HeadProfile.Property> properties) Creates an instance of aHeadProfile
record class.HeadProfile
(@NotNull PlayerSkin playerSkin) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable String
name()
Returns the value of thename
record component.@NotNull List
<HeadProfile.Property> Returns the value of theproperties
record component.@Nullable PlayerSkin
skin()
final String
toString()
Returns a string representation of this record class.@Nullable UUID
uuid()
Returns the value of theuuid
record component.
-
Field Details
-
EMPTY
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
HeadProfile
-
HeadProfile
public HeadProfile(@Nullable @Nullable String name, @Nullable @Nullable UUID uuid, @NotNull @NotNull List<HeadProfile.Property> properties) Creates an instance of aHeadProfile
record class.- Parameters:
name
- the value for thename
record componentuuid
- the value for theuuid
record componentproperties
- the value for theproperties
record component
-
-
Method Details
-
skin
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
uuid
Returns the value of theuuid
record component.- Returns:
- the value of the
uuid
record component
-
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-