Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. What is the method of sending packets(Or usage)

What is the method of sending packets(Or usage)

Scheduled Pinned Locked Moved Unsolved ScriptAPI
9 Posts 7 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • WOWIESOCLW Offline
    WOWIESOCLW Offline
    WOWIESOCL
    wrote on last edited by
    #1

    When I write my JS, I need to send a c0epacket, but I use the method in V1, that is, the mc.thePlayer.sendQueue.addToSendQueue method, but it doesn't work. It tells me that this method doesn't exist. So who can tell me how to send packet(Or usage .One possibility is that this function exists, but its method has changed)

    Plumer ManP 1 Reply Last reply
    0
    • WOWIESOCLW WOWIESOCL

      When I write my JS, I need to send a c0epacket, but I use the method in V1, that is, the mc.thePlayer.sendQueue.addToSendQueue method, but it doesn't work. It tells me that this method doesn't exist. So who can tell me how to send packet(Or usage .One possibility is that this function exists, but its method has changed)

      Plumer ManP Offline
      Plumer ManP Offline
      Plumer Man
      wrote on last edited by
      #2

      Core

      sendPacket(new C0EPacketClickWindow);
      
      WOWIESOCLW 1 Reply Last reply
      1
      • Plumer ManP Plumer Man

        Core

        sendPacket(new C0EPacketClickWindow);
        
        WOWIESOCLW Offline
        WOWIESOCLW Offline
        WOWIESOCL
        wrote on last edited by
        #3

        @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

        _networkManager = mc.getNetHandler().getNetworkManager();

        if (triggerEvent) _networkManager.sendPacket(packet);

        else if (_networkManager.isChannelOpen()) {

        _flushOutboundQueueMethod.invoke(_networkManager);

        _dispatchPacketMethod.invoke(_networkManager, packet, null);

        } else {

        _readWriteLockField.get(_networkManager).writeLock().lock();

        try {

        _outboundPackets = _outboundPacketsQueueField.get(_networkManager);

        _outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));

        _outboundPacketsQueueField.set(_networkManager, _outboundPackets);

        } finally {

        _readWriteLockField.get(_networkManager).writeLock().unlock();

        }

        }

        ? Ali00035A 2 Replies Last reply
        0
        • WOWIESOCLW WOWIESOCL

          @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

          _networkManager = mc.getNetHandler().getNetworkManager();

          if (triggerEvent) _networkManager.sendPacket(packet);

          else if (_networkManager.isChannelOpen()) {

          _flushOutboundQueueMethod.invoke(_networkManager);

          _dispatchPacketMethod.invoke(_networkManager, packet, null);

          } else {

          _readWriteLockField.get(_networkManager).writeLock().lock();

          try {

          _outboundPackets = _outboundPacketsQueueField.get(_networkManager);

          _outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));

          _outboundPacketsQueueField.set(_networkManager, _outboundPackets);

          } finally {

          _readWriteLockField.get(_networkManager).writeLock().unlock();

          }

          }

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @wowiesocl said in What is the method of sending packets(Or usage):

          @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

          _networkManager = mc.getNetHandler().getNetworkManager();

          if (triggerEvent) _networkManager.sendPacket(packet);

          else if (_networkManager.isChannelOpen()) {

          _flushOutboundQueueMethod.invoke(_networkManager);

          _dispatchPacketMethod.invoke(_networkManager, packet, null);

          } else {

          _readWriteLockField.get(_networkManager).writeLock().lock();

          try {

          _outboundPackets = _outboundPacketsQueueField.get(_networkManager);

          _outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));

          _outboundPacketsQueueField.set(_networkManager, _outboundPackets);

          } finally {

          _readWriteLockField.get(_networkManager).writeLock().unlock();

          }

          }

          Well, this is the silent way of sending a packet.

          END3R1355E 1 Reply Last reply
          0
          • CzechHekC Offline
            CzechHekC Offline
            CzechHek
            wrote on last edited by
            #5

            @fart not triggering onPacket event

            1 Reply Last reply
            2
            • CzechHekC Offline
              CzechHekC Offline
              CzechHek
              wrote on last edited by CzechHek
              #6

              @fart no, it doesn't trigger onPacket event

              and dyskord.cc is dead

              END3R1355E 1 Reply Last reply
              2
              • CzechHekC CzechHek

                @fart no, it doesn't trigger onPacket event

                and dyskord.cc is dead

                END3R1355E Offline
                END3R1355E Offline
                END3R1355
                wrote on last edited by
                #7

                @czechhek my patch only disables connections to dyskord.cc but idk why some of ur scripts are still not working

                1 Reply Last reply
                0
                • ? A Former User

                  @wowiesocl said in What is the method of sending packets(Or usage):

                  @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

                  _networkManager = mc.getNetHandler().getNetworkManager();

                  if (triggerEvent) _networkManager.sendPacket(packet);

                  else if (_networkManager.isChannelOpen()) {

                  _flushOutboundQueueMethod.invoke(_networkManager);

                  _dispatchPacketMethod.invoke(_networkManager, packet, null);

                  } else {

                  _readWriteLockField.get(_networkManager).writeLock().lock();

                  try {

                  _outboundPackets = _outboundPacketsQueueField.get(_networkManager);

                  _outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));

                  _outboundPacketsQueueField.set(_networkManager, _outboundPackets);

                  } finally {

                  _readWriteLockField.get(_networkManager).writeLock().unlock();

                  }

                  }

                  Well, this is the silent way of sending a packet.

                  END3R1355E Offline
                  END3R1355E Offline
                  END3R1355
                  wrote on last edited by
                  #8

                  @mems said in What is the method of sending packets(Or usage):

                  nigger

                  reported.

                  1 Reply Last reply
                  0
                  • WOWIESOCLW WOWIESOCL

                    @plumer-man I found the sendpacket function from the core. The content is: function sendpacket (packet, trigger event){

                    _networkManager = mc.getNetHandler().getNetworkManager();

                    if (triggerEvent) _networkManager.sendPacket(packet);

                    else if (_networkManager.isChannelOpen()) {

                    _flushOutboundQueueMethod.invoke(_networkManager);

                    _dispatchPacketMethod.invoke(_networkManager, packet, null);

                    } else {

                    _readWriteLockField.get(_networkManager).writeLock().lock();

                    try {

                    _outboundPackets = _outboundPacketsQueueField.get(_networkManager);

                    _outboundPackets.add(new NetworkManager.InboundHandlerTuplePacketListener(packet, null));

                    _outboundPacketsQueueField.set(_networkManager, _outboundPackets);

                    } finally {

                    _readWriteLockField.get(_networkManager).writeLock().unlock();

                    }

                    }

                    Ali00035A Offline
                    Ali00035A Offline
                    Ali00035
                    wrote on last edited by
                    #9

                    @wowiesocl use the inline code option pls

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    About
                    • Terms of Service
                    • Privacy Policy
                    • Status
                    • Contact Us
                    Downloads
                    • Releases
                    • Source code
                    • License
                    Docs
                    • Tutorials
                    • CustomHUD
                    • AutoSettings
                    • ScriptAPI
                    Community
                    • Forum
                    • Guilded
                    • YouTube
                    • Twitter
                    • D.Tube
                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups