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_299539_, String p_299667_, boolean p_299281_, Component p_298259_) ClientboundResourcePackPacket
(FriendlyByteBuf p_299105_) -
Method Summary
Modifier and TypeMethodDescriptiongetHash()
getUrl()
void
handle
(ClientCommonPacketListener p_300088_) boolean
void
write
(FriendlyByteBuf p_300009_) 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
-