Jump to content

Item Task Scheduling


redofficiale

Recommended Posts

Hello everybody!
I'm writing simple Sorting Visualizer in Scala

I'm currently roadblocked by the Scheduling API, specifically, lack of understanding Minecraft concurrency
Since I've failed to gather any info online, I came here with my question

So, I have Item "Shuffle", purpose of which is to shuffle array made out of concrete columns
I want to make 1 iteration of shuffling every 5 ticks (Not using java.util.Timer or etc. since in my personal opinion tick based approach is more idiomatic)
I'm not really sure how to do that

Gist with highlighted code fragment

Thanks for any feedback!

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.



×
×
  • Create New...

Important Information

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