Jump to content

musava_ribica

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

musava_ribica's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. you provided fabricmc crash report, these forums are for minecraft forge...
  2. It probably isn't the case that someone actually digged into xaero mods to find out what exactly goes wrong. It's possible that xaero mods are known to cause crashes when used with other mods, and that came first to user TileEntity's mind
  3. Hello everyone, this may be more of a Java question but I couldn't find anything helpful on the internet. I'm in the following scenario: when a player opens a chest (inventory gui), my mod will make a http get request (which might take a while if the server is slow), and then update the chest contents depending om the response. And, before the request finishes, there will be "Loading..." message displayed. However, when putting all code in main thread, while the game waits for response, the fps drops to zero as expected. If I make the request in a separate thread, no blocking occurs but I've read in a lot of places that one should not call Minecraft functions from threads other than the main one. If I set a callback function for http request, it gets executed in another thread, too. So I'm wondering how can I do the non-blocking request and await it's completion. I've looked into java.util.concurrent classes but every approach I tried resulted in either blocking or calling minecraft code from another thread. Any help is appreciated, and apologies if this question is not well suited for this forum, I haven't found a better place to ask.
  4. Nevermind, I already found it (I am coding for 1.14) Thank you once again
  5. Then, how do I import it ? Where do I look for it?
  6. Thank you. Can you please link some documentation to ITextComponent?
  7. Hello, if I wanted to send a colored chat message to a user, including § in that string (for example §4Hello), the text is still white and some random characters are shown in the place of §. Is there anything regarding to chat colors that I missed? Please let me know, thank you! Screenshot: http://prntscr.com/uk9apt (supposed to be §4§l | §c Thank you for ...)
×
×
  • Create New...

Important Information

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