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 af
intermediary net/minecraft/class_8779
named net/minecraft/advancement/AdvancementEntry
official a
intermediary comp_1919
named id
official b
intermediary comp_1920
named value
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theid
record component.private final Advancement
The field for thevalue
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.static AdvancementEntry
read
(PacketByteBuf buf) toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.void
write
(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
AdvancementEntry
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official a
Laf;a(Lso;)V
intermediary method_53635
Lnet/minecraft/class_8779;method_53635(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/advancement/AdvancementEntry;write(Lnet/minecraft/network/PacketByteBuf;)V
-
read
- Mappings:
Namespace Name Mixin selector official b
Laf;b(Lso;)Laf;
intermediary method_53636
Lnet/minecraft/class_8779;method_53636(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8779;
named read
Lnet/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 theid
record component.- Returns:
- the value of the
id
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-