Exemple #1
0
 /* (non-Javadoc)
  * @see net.minecraft.launchwrapper.ITweaker#acceptOptions(java.util.List,
  *      java.io.File, java.io.File, java.lang.String)
  */
 @Override
 public final void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) {
   MixinBootstrap.register();
   this.prepared = true;
   for (MixinTweakContainer container : this.containers.values()) {
     container.prepare();
   }
   this.parseArgs(args);
 }
Exemple #2
0
  /** Hello world */
  public MixinTweaker() {
    MixinBootstrap.preInit();

    // Add agents for the tweak container
    URI uri = null;
    try {
      uri = this.getClass().getProtectionDomain().getCodeSource().getLocation().toURI();
      if (uri != null) {
        this.addContainer(uri);
      }
    } catch (URISyntaxException ex) {
      ex.printStackTrace();
    }
  }