Class ResourcePackSendPacket
java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
de.themoep.resourcepacksplugin.bungee.packets.ResourcePackSendPacket
public class ResourcePackSendPacket
extends net.md_5.bungee.protocol.DefinedPacket
Created by Phoenix616 on 24.03.2015.
-
Constructor Summary
ConstructorDescriptionResourcePackSendPacket
(String url, String hash) ResourcePackSendPacket
(String url, String hash, boolean required, net.md_5.bungee.api.chat.BaseComponent[] promptMessage) ResourcePackSendPacket
(UUID uuid, String url, String hash) ResourcePackSendPacket
(UUID uuid, String url, String hash, boolean required, net.md_5.bungee.api.chat.BaseComponent[] promptMessage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getHash()
getUrl()
void
handle
(net.md_5.bungee.protocol.AbstractPacketHandler handler) int
hashCode()
void
read
(io.netty.buffer.ByteBuf buf) void
read
(io.netty.buffer.ByteBuf buf, net.md_5.bungee.protocol.ProtocolConstants.Direction direction, int protocolVersion) toString()
void
write
(io.netty.buffer.ByteBuf buf) void
write
(io.netty.buffer.ByteBuf buf, net.md_5.bungee.protocol.ProtocolConstants.Direction direction, int protocolVersion) Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
nextProtocol, read, readArray, readArray, readBaseComponent, readBaseComponent, readComponentStyle, readEitherBaseComponent, readEnumSet, readFixedBitSet, readNullable, readNumberFormat, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeBaseComponent, writeComponentStyle, writeEitherBaseComponent, writeEnumSet, writeFixedBitSet, writeNullable, writeNumberFormat, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
-
Constructor Details
-
ResourcePackSendPacket
public ResourcePackSendPacket() -
ResourcePackSendPacket
-
ResourcePackSendPacket
@ConstructorProperties({"url","hash"}) public ResourcePackSendPacket(UUID uuid, String url, String hash) -
ResourcePackSendPacket
@ConstructorProperties({"url","hash","force","promptMessage"}) public ResourcePackSendPacket(String url, String hash, boolean required, net.md_5.bungee.api.chat.BaseComponent[] promptMessage) -
ResourcePackSendPacket
@ConstructorProperties({"uuid","url","hash","force","promptMessage"}) public ResourcePackSendPacket(UUID uuid, String url, String hash, boolean required, net.md_5.bungee.api.chat.BaseComponent[] promptMessage)
-
-
Method Details
-
handle
- Specified by:
handle
in classnet.md_5.bungee.protocol.DefinedPacket
- Throws:
Exception
-
read
public void read(io.netty.buffer.ByteBuf buf) - Overrides:
read
in classnet.md_5.bungee.protocol.DefinedPacket
-
read
public void read(io.netty.buffer.ByteBuf buf, net.md_5.bungee.protocol.ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
read
in classnet.md_5.bungee.protocol.DefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf) - Overrides:
write
in classnet.md_5.bungee.protocol.DefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf, net.md_5.bungee.protocol.ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
write
in classnet.md_5.bungee.protocol.DefinedPacket
-
getUrl
-
getHash
-
toString
- Specified by:
toString
in classnet.md_5.bungee.protocol.DefinedPacket
-
equals
- Specified by:
equals
in classnet.md_5.bungee.protocol.DefinedPacket
-
hashCode
public int hashCode()- Specified by:
hashCode
in classnet.md_5.bungee.protocol.DefinedPacket
-