Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.