Package net.minecraft
Record Class class_9006
java.lang.Object
java.lang.Record
net.minecraft.class_9006
- Record Components:
owner-objectiveName-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record class_9006(String owner, @Nullable String objectiveName)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official abhintermediary net/minecraft/class_9006named net/minecraft/class_9006official aintermediary comp_2120named ownerofficial bintermediary comp_2121named objectiveName
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theobjectiveNamerecord component.private final StringThe field for theownerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9006(String string, @Nullable String string2) class_9006(PacketByteBuf packetByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectiveNamerecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
owner
The field for theownerrecord component. -
objectiveName
The field for theobjectiveNamerecord component.
-
-
Constructor Details
-
class_9006
-
class_9006
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLxd;a(Lug;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLabh;a(Lyx;)Vintermediary method_55332Lnet/minecraft/class_9006;method_55332(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/class_9006;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
objectiveName
Returns the value of theobjectiveNamerecord component.- Returns:
- the value of the
objectiveNamerecord component
-