Jump to content

uiytt

Members
  • Posts

    67
  • Joined

  • Last visited

Converted

  • Gender
    Male

Recent Profile Visitors

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

uiytt's Achievements

Stone Miner

Stone Miner (3/8)

4

Reputation

  1. A thread that I created to check for my server's information. If I use the screen directly from my thread, minecraft will crash..
  2. Well I tried : Minecraft.getInstance().runImmediately(new Runnable() { @Override public void run() { MultiPlayerGui.this.minecraft.displayGuiScreen(new ConnectingScreen(MultiPlayerGui.this, MultiPlayerGui.this.minecraft, server)); } }); And it's really weird... In my console, I receive everything from the server chat. But on my game, it's stuck on loading the terrain infinitely !!! MultiPlayerGui is my custome class but the rest is not.. I don't undersant why O_o
  3. So, I have two thread : The first one is the one of minecraft, the second one is async thread that I created to do something on the web. I would like that when the second thread is done, the first thread execute a method ( and not the second thread because minecraft really doesn't like when you use method using another thread). Before the second thread ended, the first thread must continue working. Does anyone have any idea of how to do that please ?
  4. GuiOpenEvent it's never fired when opening the menu, I will look for why EDIT : It works, I swear I thought I already tried it !!!
  5. I think FlowingFluid.class and more precisely the method getFlow() At one point, it check getMaterial().blocksMovement()) This basically check if the water can move in. You just have to set blocksMovement to true in your crops I think. Not sure, you have to test
  6. Hello, I'm looking for a way to change some things in the server list (like add a button and other things) My idea was to create a new class which extends "MultiplayerScreen" And then use the InitGuiEvent and override the GUI with mine. But I can't find a way in the event to override the GUI (we only have access to the getter) Does someone know how to solve that ? Thanks ^^
  7. AH it seems that the problem only comes from DifficultyChangeEvent. I don't care about this event, I only used it as a test, it works fine with another event... So yeah my events work
  8. Hi, I really don't understand why my even is never fired... package fr.uiytt.test; import net.minecraftforge.event.DifficultyChangeEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; public class Events { @SubscribeEvent public void test(final DifficultyChangeEvent event) { System.out.println("test1 " + event.getDifficulty().getTranslationKey()); } } I have declared it in my mod main class with : MinecraftForge.EVENT_BUS.register(new Events()); Thanks for your help
  9. Ok, now that I use toml, how can I manage to detect when a player click on the config button (in the mods list). And how can I show a normal Gui that allows the player to modify it ?
  10. Thanks, I have another question. If I didn't register a config, How can I get in my Init event the config folder (where every config are store in). I would like to use another storage system way more enjoyable to use and thus I need to know where is the folder where it's supposed to go ^^
  11. Oh wait, I don't know how the config file work after 1.11, can you link me to any tuto there is on this subject (I didn't found any)
  12. Hi, I have absolutely no clue about how to get the folder from where my config must be... Do I need to do it manually ? Thanks
×
×
  • Create New...

Important Information

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