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 MapCodec<ResolvableProfile.Partial> The field for thenamerecord component.private final PropertyMapThe field for thepropertiesrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ResolvableProfile.Partial> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
-
id
-
properties
The field for thepropertiesrecord component. -
EMPTY
-
MAP_CODEC
-
STREAM_CODEC
-
-
Constructor Details
-
Partial
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
-
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
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-