Jump to content

Recommended Posts

Posted (edited)

The inevitable help topic after my other thread - when I want to request tickets, if I'm requesting player tickets do I have to request them at world load? Or can I request tickets when I need them? If I request a ticket for the same player more than once will I start approaching some limit? Should I store the ticket forever once I've received it for a player?

 

This link's advice seems to be to do it when the world loads, but that was for non-player tickets.

 A quick search of

ForgeChunkManager.requestPlayerTicket

shows some people requesting tickets in "onBlockPlacedBy" - is it ok to do that?

 

Edit: Just found out you can "release tickets" back to the system - if I like request a ticket, hold it for a few seconds while I use it and then release it is that fine/encouraged?

 

Edit: Also, this loading call back is a bit confusing - setForcedChunkLoadingCallback says it's "the code to call back when chunks are loaded", but the descriptions of the LoadingCallback say its "when tickets are loaded". Which is it? Do I use these as both ticket loaded callbacks AND forced chunk callbacks?

Edited by stepsword

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.