Jump to content

Questions about Proxies and main class


kwill

Recommended Posts

What are the proxies actually for? How do they compare to packet handlers? Tutorials constantly show to put graphic info, such as guis and such, but they never actually specify what it's doing. Also, what do you put in the pre-init, init , and post-init classes? I have been loading my blocks and items in the @init but someone recently said they belong in @preinit :C

Link to comment
Share on other sites

Proxies allow you to register renderers, because the server doesn't HAVE a renderer, so trying to do so will throw class not found errors.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Just to clarify, would it be more apt to say that it allows client side function to not cause "class not found" on a server? I say this because I also run things like key binds through the proxy. I'm just trying to get a clear understanding for future reference.

Link to comment
Share on other sites

The simplest way to look at the proxies are like this:

 

If on the server side, only the CommonProxy is called.

If on the Client side, the ClientProxy is called instead of the CommonProxy.

The ClientProxy may and usually do make calls to CommonProxy.

 

It's just a simple way to get a file where you safely can do all client only stuff without worrying about the server reading it. You can of course do this without using proxy files it's just more convenient to use them.

 

 

If you guys dont get it.. then well ya.. try harder...

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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