forked from MohistMC/Mohist
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
62799db
commit 282a68f
Showing
6 changed files
with
77 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ hs_err_pid* | |
/.gradle/ | ||
/bin/ | ||
/build/ | ||
/run/ | ||
/.settings/ |
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
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 @@ | ||
package red.mohist_community.mohist; | ||
|
||
import net.minecraftforge.fml.common.Mod; | ||
|
||
@Mod(modid = "mohist", name = "Mohist") | ||
public class Mohist { | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
src/main/java/red/mohist_community/mohist/MohistCoreMod.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,45 @@ | ||
package red.mohist_community.mohist; | ||
|
||
import java.util.Map; | ||
|
||
import org.spongepowered.asm.launch.MixinBootstrap; | ||
import org.spongepowered.asm.mixin.Mixins; | ||
|
||
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; | ||
|
||
@IFMLLoadingPlugin.MCVersion("1.12.2") | ||
@IFMLLoadingPlugin.SortingIndex(-5000) | ||
@IFMLLoadingPlugin.Name("Mohist") | ||
public class MohistCoreMod implements IFMLLoadingPlugin { | ||
|
||
public MohistCoreMod() { | ||
MixinBootstrap.init(); | ||
Mixins.addConfiguration("mixins.mohist.json"); | ||
} | ||
|
||
@Override | ||
public String[] getASMTransformerClass() { | ||
return new String[0]; | ||
} | ||
|
||
@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; | ||
} | ||
|
||
} |
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,11 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.7.10", | ||
"package": "red.mohist_community.mohist.mixin", | ||
"refmap": "mixins.mohist.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"compatibilityLevel": "JAVA_8", | ||
"mixins": [ | ||
"MixinMinecraftServer" | ||
] | ||
} |