-
Notifications
You must be signed in to change notification settings - Fork 30
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
757db65
commit e0209c6
Showing
5 changed files
with
78 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod_version = 1.3.0 | ||
mod_version = 1.3.1 | ||
group = net.shadowfacts | ||
archivesBaseName = Forgelin | ||
|
||
|
37 changes: 37 additions & 0 deletions
37
src/main/java/net/shadowfacts/forgelin/preloader/ForgelinPlugin.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,37 @@ | ||
package net.shadowfacts.forgelin.preloader; | ||
|
||
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author shadowfacts | ||
*/ | ||
public class ForgelinPlugin implements IFMLLoadingPlugin { | ||
|
||
@Override | ||
public String[] getASMTransformerClass() { | ||
return new String[0]; | ||
} | ||
|
||
@Override | ||
public String getModContainerClass() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getSetupClass() { | ||
return "net.shadowfacts.forgelin.preloader.ForgelinSetup"; | ||
} | ||
|
||
@Override | ||
public void injectData(Map<String, Object> data) { | ||
|
||
} | ||
|
||
@Override | ||
public String getAccessTransformerClass() { | ||
return null; | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/net/shadowfacts/forgelin/preloader/ForgelinSetup.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,28 @@ | ||
package net.shadowfacts.forgelin.preloader; | ||
|
||
import net.minecraftforge.fml.relauncher.IFMLCallHook; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author shadowfacts | ||
*/ | ||
public class ForgelinSetup implements IFMLCallHook { | ||
|
||
@Override | ||
public void injectData(Map<String, Object> data) { | ||
ClassLoader loader = (ClassLoader)data.get("classLoader"); | ||
try { | ||
loader.loadClass("net.shadowfacts.forgelin.KotlinAdapter"); | ||
} catch (ClassNotFoundException e) { | ||
// this should never happen | ||
throw new RuntimeException("Couldn't find Forgelin langague adapter, this shouldn't be happening", e); | ||
} | ||
} | ||
|
||
@Override | ||
public Void call() throws Exception { | ||
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