Package net.minecraft.advancement
Record Class AdvancementEntry
java.lang.Object
java.lang.Record
net.minecraft.advancement.AdvancementEntry
- Record Components:
id-value-
- Mappings:
Namespace Name official afintermediary net/minecraft/class_8779named net/minecraft/advancement/AdvancementEntryofficial aintermediary comp_1919named idofficial bintermediary comp_1920named value
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.private final AdvancementThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static AdvancementEntryread(PacketByteBuf buf) toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
AdvancementEntry
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official aLaf;a(Lui;)Vintermediary method_53635Lnet/minecraft/class_8779;method_53635(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/advancement/AdvancementEntry;write(Lnet/minecraft/network/PacketByteBuf;)V
-
read
- Mappings:
Namespace Name Mixin selector official bLaf;b(Lui;)Laf;intermediary method_53636Lnet/minecraft/class_8779;method_53636(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8779;named readLnet/minecraft/advancement/AdvancementEntry;read(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/AdvancementEntry;
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-