-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
640 additions
and
276 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
45 changes: 0 additions & 45 deletions
45
src/main/java/com/Hileb/teampotato.redirectionor/Redirectionor.java
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
src/main/java/com/Hileb/teampotato.redirectionor/RedirectionorConfig.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/main/java/com/Hileb/teampotato.redirectionor/RedirectionorContainer.java
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
src/main/java/com/Hileb/teampotato.redirectionor/RedirectionorFastUtil.java
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
src/main/java/com/Hileb/teampotato.redirectionor/RedirectionorTansformer.java
This file was deleted.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
src/main/java/com/Hileb/teampotato/redirectionor/Redirectionor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* Decompiled with CFR 0.152. | ||
* | ||
* Could not load the following classes: | ||
* com.Hileb.teampotato.redirectionor.RedirectionorConfig | ||
* cpw.mods.fml.relauncher.CoreModManager | ||
* cpw.mods.fml.relauncher.IFMLLoadingPlugin | ||
* cpw.mods.fml.relauncher.IFMLLoadingPlugin$MCVersion | ||
* cpw.mods.fml.relauncher.IFMLLoadingPlugin$Name | ||
* java.io.File | ||
* java.lang.Exception | ||
* java.lang.Object | ||
* java.lang.RuntimeException | ||
* java.lang.String | ||
* java.lang.Throwable | ||
* java.util.Map | ||
* javax.annotation.Nullable | ||
* org.apache.logging.log4j.LogManager | ||
* org.apache.logging.log4j.Logger | ||
*/ | ||
package com.Hileb.teampotato.redirectionor; | ||
|
||
import com.Hileb.teampotato.redirectionor.RedirectionorConfig; | ||
import cpw.mods.fml.relauncher.CoreModManager; | ||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin; | ||
import java.io.File; | ||
import java.util.Map; | ||
import javax.annotation.Nullable; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
@IFMLLoadingPlugin.Name(value="redirectionor") | ||
@IFMLLoadingPlugin.MCVersion(value="1.7.10") | ||
public class Redirectionor | ||
implements IFMLLoadingPlugin { | ||
public static final String MODID = "redirectionor"; | ||
public static final Logger LOGGER = LogManager.getLogger((String)"redirectionor"); | ||
|
||
public Redirectionor() { | ||
try { | ||
RedirectionorConfig.initConfig(); | ||
} | ||
catch (Exception e) { | ||
throw new RuntimeException("unable to set up config for redirectionor", (Throwable)e); | ||
} | ||
} | ||
|
||
public static void makeFMLCorePluginContainsFMLMod(File file) { | ||
String name = file.getName(); | ||
CoreModManager.getIgnoredMods().remove((Object)name); | ||
CoreModManager.getReparseableCoremods().add((Object)name); | ||
} | ||
|
||
public String[] getASMTransformerClass() { | ||
return new String[]{"com.Hileb.teampotato.redirectionor.RedirectionorTransformer", "com.Hileb.teampotato.redirectionor.RedirectionorCrashTransformer"}; | ||
} | ||
|
||
public String getModContainerClass() { | ||
return "com.Hileb.teampotato.redirectionor.RedirectionorContainer"; | ||
} | ||
|
||
@Nullable | ||
public String getSetupClass() { | ||
return null; | ||
} | ||
|
||
public void injectData(Map<String, Object> data) { | ||
} | ||
|
||
public String getAccessTransformerClass() { | ||
return null; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/com/Hileb/teampotato/redirectionor/RedirectionorConfig$Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Decompiled with CFR 0.152. | ||
* | ||
* Could not load the following classes: | ||
* java.lang.IllegalArgumentException | ||
* java.lang.Object | ||
* java.lang.String | ||
* java.util.HashSet | ||
* java.util.Locale | ||
*/ | ||
package com.Hileb.teampotato.redirectionor; | ||
|
||
import java.util.HashSet; | ||
import java.util.Locale; | ||
|
||
public static class RedirectionorConfig.Config { | ||
public static boolean generateConfigWhenCrash = true; | ||
public static boolean printTransformedClasses = false; | ||
public static boolean isBlock = true; | ||
public static HashSet<String> contains = new HashSet(); | ||
public static HashSet<String> prefix = new HashSet(); | ||
|
||
public static boolean setBlocking(String s) { | ||
if ("block".equals((Object)s.toLowerCase(Locale.ENGLISH))) { | ||
return true; | ||
} | ||
if ("allow".equals((Object)s.toLowerCase(Locale.ENGLISH))) { | ||
return false; | ||
} | ||
throw new IllegalArgumentException("unknown type for config/redirectionor_cfg.json :" + s + " it should be \"block\" or \"allow\""); | ||
} | ||
} |
Oops, something went wrong.