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.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
-
id
-
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
-
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
-
id
-
properties
public com.mojang.authlib.properties.PropertyMap properties()Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-