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

    Constructors
    Constructor
    Description
     
     
    ResourcePackSendPacket(String url, String hash, boolean required, net.md_5.bungee.api.chat.BaseComponent[] promptMessage)
     
     
    ResourcePackSendPacket(UUID uuid, String url, String hash, boolean required, net.md_5.bungee.api.chat.BaseComponent[] promptMessage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    void
    handle(net.md_5.bungee.protocol.AbstractPacketHandler handler)
     
    int
     
    void
    read(io.netty.buffer.ByteBuf buf)
     
    void
    read(io.netty.buffer.ByteBuf buf, net.md_5.bungee.protocol.ProtocolConstants.Direction direction, int protocolVersion)
     
     
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ResourcePackSendPacket

      public ResourcePackSendPacket()
    • ResourcePackSendPacket

      @ConstructorProperties({"url","hash"}) public ResourcePackSendPacket(String url, String hash)
    • 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

      public void handle(net.md_5.bungee.protocol.AbstractPacketHandler handler) throws Exception
      Specified by:
      handle in class net.md_5.bungee.protocol.DefinedPacket
      Throws:
      Exception
    • read

      public void read(io.netty.buffer.ByteBuf buf)
      Overrides:
      read in class net.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 class net.md_5.bungee.protocol.DefinedPacket
    • write

      public void write(io.netty.buffer.ByteBuf buf)
      Overrides:
      write in class net.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 class net.md_5.bungee.protocol.DefinedPacket
    • getUrl

      public String getUrl()
    • getHash

      public String getHash()
    • toString

      public String toString()
      Specified by:
      toString in class net.md_5.bungee.protocol.DefinedPacket
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class net.md_5.bungee.protocol.DefinedPacket
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class net.md_5.bungee.protocol.DefinedPacket