Jump to content

postie

Members
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by postie

  1. postie

    Hashmaps

    I've decided to opt for the Queue (delayQueue) as i think it will be the most light weight, but i'm struggling with how to set different timeouts in 1 delayQueue. First time using delay queues and it all seems abit confusing.
  2. postie

    Hashmaps

    Okay thanks for the post ill have a look into that and let you know how it gets on. postie
  3. postie

    Hashmaps

    I've been trying to make a world hopper with a timer that i can use for buying items or mining. I have been using hashmaps to keep the world and system time but my problem is that as of right now i can't seem seem to find a way to instantly return a world once it goes over "X" amount of time, the only method i have checks if the key i give it is in the hashmap and then checks to see if its been longer than "X" amount of time. generating the worlds using a RNG means if it doesn't generate the world then it never revisits it or at least not soon enough to buy when items re-spawn. Does anyone have an ideas to another method of storing keys and values together that would let me check by value and return a key, or a work around for the hashmap. //postie
×
×
  • Create New...