Class ClientboundResourcePackPacket
java.lang.Object
net.minecraft.network.protocol.common.ClientboundResourcePackPacket
- All Implemented Interfaces:
Packet<ClientCommonPacketListener>
public class ClientboundResourcePackPacket
extends Object
implements Packet<ClientCommonPacketListener>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientboundResourcePackPacket
(String p_295013_, String p_295569_, boolean p_294544_, Component p_294687_) ClientboundResourcePackPacket
(FriendlyByteBuf p_294285_) -
Method Summary
Modifier and TypeMethodDescriptiongetHash()
getUrl()
void
handle
(ClientCommonPacketListener p_294448_) boolean
void
write
(FriendlyByteBuf p_295106_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, nextProtocol
-
Field Details
-
MAX_HASH_LENGTH
public static final int MAX_HASH_LENGTH- See Also:
-
url
-
hash
-
required
private final boolean required -
prompt
-
-
Constructor Details
-
ClientboundResourcePackPacket
-
ClientboundResourcePackPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientCommonPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientCommonPacketListener>
-
getUrl
-
getHash
-
isRequired
public boolean isRequired() -
getPrompt
-