Record Class ResolvableProfile.Partial
java.lang.Object
java.lang.Record
net.minecraft.world.item.component.ResolvableProfile.Partial
- Enclosing class:
ResolvableProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResolvableProfile.PartialThe field for theidrecord component.(package private) static final com.mojang.serialization.MapCodec<ResolvableProfile.Partial> The field for thenamerecord component.private final com.mojang.authlib.properties.PropertyMapThe field for thepropertiesrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ResolvableProfile.Partial> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate com.mojang.authlib.GameProfilefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.com.mojang.authlib.properties.PropertyMapReturns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
id
The field for theidrecord component. -
properties
private final com.mojang.authlib.properties.PropertyMap propertiesThe field for thepropertiesrecord component. -
EMPTY
-
MAP_CODEC
-
STREAM_CODEC
-
-
Constructor Details
-
Partial
protected Partial(Optional<String> name, Optional<UUID> id, com.mojang.authlib.properties.PropertyMap properties) Creates an instance of aPartialrecord class.- Parameters:
name- the value for thenamerecord componentid- the value for theidrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
createProfile
private com.mojang.authlib.GameProfile createProfile() -
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
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
properties
public com.mojang.authlib.properties.PropertyMap properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-