Posted February 20, 201510 yr I really don't want to find a glitch weeks after I write my API so: How it goes: 1. PRE 2. TICK 3. POST 4. PRE 5. TICK 6. POST 7. Let's say I will send a command that adds something (in execute()) to some list. Command is constructed probably around (3.). When does execute() launch on server? Can execution be delayed? Why? Well, my skill queue system is strongly dependent to PRE and POST tick updates. I need to know that everytime I add something to skill queue the first "tick" that will occur which will detect new skill in queue will always have it's PRE-TICK (which calls "onStartCasting()"). Having execute() launch exacly after I call it, would make POST launch 1st (i think), but then again - commands go with mini-packets (inside mc) - they might be delayed. I could do that with simple boolean (e.g. isFresh) inside Skill class, but I am just wondering about this here (above). Anyone had fun on this field? Thanks Note: And yeah, I am looking, but CommandHandler/Manager are weird, and also I can't really make prints there. 1.7.10 is no longer supported by forge, you are on your own.
February 20, 201510 yr Author Okay, I don't know for sure, but it seems like commands are executed between POST and PRE, so as long as this works (proved with 30 tests) my queue will work fine. 1.7.10 is no longer supported by forge, you are on your own.
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.