forked from D-Cysteine/nei-custom-diagram
-
Notifications
You must be signed in to change notification settings - Fork 2
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
7 changed files
with
102 additions
and
63 deletions.
There are no files selected for viewing
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
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
52 changes: 0 additions & 52 deletions
52
src/main/java/com/github/dcysteine/neicustomdiagram/main/Reflection.java
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
src/main/java/com/github/dcysteine/neicustomdiagram/mixin/EarlyMixinLoader.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,51 @@ | ||
package com.github.dcysteine.neicustomdiagram.mixin; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
import com.gtnewhorizon.gtnhmixins.IEarlyMixinLoader; | ||
|
||
import cpw.mods.fml.relauncher.FMLLaunchHandler; | ||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin; | ||
|
||
@IFMLLoadingPlugin.MCVersion("1.7.10") | ||
public class EarlyMixinLoader implements IFMLLoadingPlugin, IEarlyMixinLoader { | ||
|
||
@Override | ||
public String[] getASMTransformerClass() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getModContainerClass() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getSetupClass() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void injectData(Map<String, Object> data) {} | ||
|
||
@Override | ||
public String getAccessTransformerClass() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getMixinConfig() { | ||
return "mixins.neicustomdiagram.early.json"; | ||
} | ||
|
||
@Override | ||
public List<String> getMixins(Set<String> loadedCoreMods) { | ||
if (FMLLaunchHandler.side().isClient()) { | ||
return Collections.singletonList("GuiContainerAccessor"); | ||
} | ||
return Collections.emptyList(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...n/java/com/github/dcysteine/neicustomdiagram/mixin/mixins/early/GuiContainerAccessor.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,23 @@ | ||
package com.github.dcysteine.neicustomdiagram.mixin.mixins.early; | ||
|
||
import net.minecraft.client.gui.inventory.GuiContainer; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(GuiContainer.class) | ||
public interface GuiContainerAccessor { | ||
|
||
@Accessor | ||
int getXSize(); | ||
|
||
@Accessor | ||
int getYSize(); | ||
|
||
@Accessor | ||
int getGuiLeft(); | ||
|
||
@Accessor | ||
int getGuiTop(); | ||
|
||
} |
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,8 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.8.5-GTNH", | ||
"package": "com.github.dcysteine.neicustomdiagram.mixin.mixins.early", | ||
"refmap": "mixins.neicustomdiagram.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"compatibilityLevel": "JAVA_8" | ||
} |
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,7 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.8.5-GTNH", | ||
"refmap": "mixins.neicustomdiagram.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"compatibilityLevel": "JAVA_8" | ||
} |