Jump to content

doej134567

Members
  • Posts

    3
  • Joined

  • Last visited

doej134567's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. As I have no Idea how that remote debugging feature works and how I attatch it with eclipse and also that I might want a solution for a universal network analyzer for minecraft one day, my seach went on and I might have almost found what I was looking for: https://blog.techno.fish/intercepting-vanilla-minecraft-network-packets/ Just a few things like packets sent by the client to the server are mentioned with "If you wish to capture outbound packets as well, you can implement a ChannelDuplexHandler" but sadly not further explained.
  2. Hi, I was looking around for a way to do stuff after Packets are sent / received. With "do stuff" I mean things like display packet info on the screen or in the Minecraft game output. I found a lot of posts about this, but the unhelpful standard answers were always something like "There are no events fired for vanilla packets" or questions like "Why you need to interact with Vanilla packets?". The most helpful forum post I found was the following one, but the presented solution is to work with mixins, which is a bit much for just a little debug info. So here it goes: Why I want to do this Originally I just want to find out why Hypixel kicks me from time to time and if I can do someting about it, but then my investigation got a little out of hand. I did get quite far using Wireshark and the Minecraft game output (for crossreferencing IOException timestamps), but as the TCP packets are encrypted, compressed and in encoded, I hit a dead end with my diagnostics. Now the idea was to do a simple System.out.println(); each time a KeepAlive packet gets sent or received (which should be about ever 15 to 120 seconds or so depending on server and client settings), as a missing KeepAlive packet can be one of the reasons why a server would kick a client using a TCP RST packet. This way I would know which of the packets are the KeepAlive ones and when they are sent and received. Thanks
  3. My goal here is to save a dungeon chest type for later when a 'Reroll Chest' item is clicked. The whole mod is written to work on a minecraft server called Hypixel in a gamemode named SkyBlock and it is a client sided only overlay mod. I already have some functions that are partly working, but I can't seem to find a click event that works inside a chest gui. One of the things only works on a mouse move event: @SideOnly(Side.CLIENT) @SubscribeEvent public void onGuiClick(final GuiScreenEvent.MouseInputEvent.Pre event) { if (event.gui instanceof GuiChest) { Slot slot = ((GuiChest) event.gui).getSlotUnderMouse(); // do stuff on move mouse over ItemStack in chest gui } } and another one works on mouse clicks, but only outside of chest / inventory menus @SideOnly(Side.CLIENT) @SubscribeEvent() public void onInteract(MouseEvent e) { if (e.button < 0 || e.button > 1 || e.buttonstate) return; ItemStack heldItem = Minecraft.getMinecraft().thePlayer.getHeldItem(); // do stuff on left or right click with item in hand } The one event I am still missing is the one for left / right clicks inside chest menus. Thanks in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.