Jump to content

[1.8] Finding order in ticks.


Ernio

Recommended Posts

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.

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.