Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.15.2] ClientPlayNetHandler and ServerPlayNetHandler
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Corgam

[1.15.2] ClientPlayNetHandler and ServerPlayNetHandler

By Corgam, May 7, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Corgam    1

Corgam

Corgam    1

  • Tree Puncher
  • Corgam
  • Members
  • 1
  • 35 posts
Posted May 7, 2020

Hi,

is there a way to add new methodes and attributes to the ClientPlayNetHandler and ServerPlayNetHandler classes?

I want to create a system similar to the existing advancements system, so my goal is to add a new Manager to the ClientPlayNetHandler

and also I have created custom Packets and I want to send and process them in ClientPlayNetHandler and ServerPlayNetHandler

 

Cheers,

Corgam

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7581

diesieben07

diesieben07    7581

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7581
  • 54883 posts
Posted May 7, 2020

That is not how you make custom packets.

Look at the documentation.

  • Like 1
  • Quote

Share this post


Link to post
Share on other sites

Niprow    7

Niprow

Niprow    7

  • Stone Miner
  • Niprow
  • Members
  • 7
  • 68 posts
Posted May 7, 2020

you send minecraft packets via the the <Dist>PlayNetHandler and for your own look into the docs SimpleImpl

  • Like 1
  • Quote

 I will make fun of you if you are not able to look into the (vanilla-) code.

Share this post


Link to post
Share on other sites

Corgam    1

Corgam

Corgam    1

  • Tree Puncher
  • Corgam
  • Members
  • 1
  • 35 posts
Posted May 7, 2020

Is there some tutorial or other mod's github page to get some example code?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7581

diesieben07

diesieben07    7581

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7581
  • 54883 posts
Posted May 7, 2020

It was literally linked twice.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • BentiGorlich
      [1.16.4] Change Texture onBlockActivated

      By BentiGorlich · Posted 12 minutes ago

      Ok so I have run into a problem again. How do I get the model of the mimiced block from its blockstate? To clarify: where do I register my created model so that my block is rendered by it?
    • diesieben07
      my minecraft crashed by "rendering overlay"

      By diesieben07 · Posted 53 minutes ago

      The debug.log from the logs folder.
    • BentiGorlich
      [1.16.4] Change Texture onBlockActivated

      By BentiGorlich · Posted 56 minutes ago

      Ok, so that was the part I missed before. Thank you, I will try that
    • PedreHenrry
      my minecraft crashed by "rendering overlay"

      By PedreHenrry · Posted 57 minutes ago

      what debug.log.?
    • diesieben07
      [1.16.4] Change Texture onBlockActivated

      By diesieben07 · Posted 1 hour ago

      In your IModelGeometry implementation you need to return an IBakedModel in bake(). This IBakedModel has getQuads.   You make a class that implements IBakedModel.   Not sure what you mean by this.
  • Topics

    • BentiGorlich
      15
      [1.16.4] Change Texture onBlockActivated

      By BentiGorlich
      Started 22 hours ago

    • PedreHenrry
      3
      my minecraft crashed by "rendering overlay"

      By PedreHenrry
      Started 1 hour ago

    • kiou.23
      0
      [1.16.4] Data Generator won't find resources folder

      By kiou.23
      Started 2 hours ago

    • FlashHUN
      0
      [1.16.4] Changing player hitbox size doesn't center it on the player

      By FlashHUN
      Started 3 hours ago

    • kiou.23
      11
      Is it normal for configuration to take this long?

      By kiou.23
      Started 16 hours ago

  • Who's Online (See full list)

    • BentiGorlich
    • vemerion
    • Abdymazhit
    • ozumman
    • Pl00py_R
    • 通行人スライム
    • Bigfoott49
    • RythenGlyth
    • foxbro8
    • Draco18s
    • gk30074
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.15.2] ClientPlayNetHandler and ServerPlayNetHandler
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community