Record Class ResourcePackSendS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.common.ResourcePackSendS2CPacket
- Record Components:
id
-url
-hash
-required
-prompt
-
- All Implemented Interfaces:
Packet<ClientCommonPacketListener>
public record ResourcePackSendS2CPacket(UUID id, String url, String hash, boolean required, @Nullable Text prompt)
extends Record
implements Packet<ClientCommonPacketListener>
- Mappings:
Namespace Name official xo
intermediary net/minecraft/class_2720
named net/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket
official b
intermediary comp_2158
named id
official c
intermediary comp_2159
named url
official d
intermediary comp_2160
named hash
official e
intermediary comp_2161
named required
official f
intermediary comp_2162
named prompt
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The field for thehash
record component.private final UUID
The field for theid
record component.static final int
The field for theprompt
record component.private final boolean
The field for therequired
record component.private final String
The field for theurl
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientCommonPacketListener clientCommonPacketListener) final boolean
Indicates whether some other object is "equal to" this one.hash()
Returns the value of thehash
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.prompt()
Returns the value of theprompt
record component.boolean
required()
Returns the value of therequired
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
id
The field for theid
record component. -
url
The field for theurl
record component. -
hash
The field for thehash
record component. -
required
private final boolean requiredThe field for therequired
record component. -
prompt
The field for theprompt
record component. -
MAX_HASH_LENGTH
public static final int MAX_HASH_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lxo;a:I
intermediary field_33340
Lnet/minecraft/class_2720;field_33340:I
named MAX_HASH_LENGTH
Lnet/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket;MAX_HASH_LENGTH:I
-
-
Constructor Details
-
ResourcePackSendS2CPacket
-
ResourcePackSendS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lxo;<init>(Lui;)V
intermediary <init>
Lnet/minecraft/class_2720;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientCommonPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lxf;a(Lui;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientCommonPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lxo;a(Lxi;)V
intermediary method_11774
Lnet/minecraft/class_2720;method_11774(Lnet/minecraft/class_8705;)V
named apply
Lnet/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket;apply(Lnet/minecraft/network/listener/ClientCommonPacketListener;)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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
hash
Returns the value of thehash
record component.- Returns:
- the value of the
hash
record component
-
required
public boolean required()Returns the value of therequired
record component.- Returns:
- the value of the
required
record component
-
prompt
Returns the value of theprompt
record component.- Returns:
- the value of the
prompt
record component
-