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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HeadProfile
static final BinaryTagSerializer
<HeadProfile> static final NetworkBuffer.Type
<HeadProfile> -
Constructor Summary
ConstructorDescriptionHeadProfile
(@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
-
NBT_TYPE
-
-
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
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. 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
-