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 HeadProfilestatic final NetworkBuffer.Type<HeadProfile> -
Constructor Summary
ConstructorsConstructorDescriptionHeadProfile(@Nullable String name, @Nullable UUID uuid, @NotNull List<HeadProfile.Property> properties) Creates an instance of aHeadProfilerecord class.HeadProfile(@NotNull PlayerSkin playerSkin) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringname()Returns the value of thenamerecord component.@NotNull List<HeadProfile.Property> Returns the value of thepropertiesrecord component.@Nullable PlayerSkinskin()final StringtoString()Returns a string representation of this record class.@Nullable UUIDuuid()Returns the value of theuuidrecord 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 aHeadProfilerecord class.- Parameters:
name- the value for thenamerecord componentuuid- the value for theuuidrecord componentproperties- the value for thepropertiesrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-