Skip to content

Commit 98d3745

Browse files
committed
Deprecate JavaScript coremod system
1 parent 7544120 commit 98d3745

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22

33
Service providers, and other global API-like elements,
44
separated so dependencies don't need to be on the core forge system.
5-
6-
* ```net.minecraftforge.forgespi.ICoreMod*``` are interfaces for communication between
7-
Forge and the coremod library.

src/main/java/net/minecraftforge/forgespi/coremod/ICoreModFile.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@
1010
/**
1111
* Interface for core mods to discover content and properties
1212
* of their location and context to the coremod implementation.
13+
*
14+
* @deprecated The JS coremod system was an experiment to force modders
15+
* to stop shipping both transformer and game layer code in the same jar.
16+
* JavaScript was chosen because it was included in Java itself and could
17+
* easily be decoupled from the game layer data.
18+
*
19+
* Java has stopped shipping JavaScript, and most Transformers are Mixin
20+
* these days, so it's no longer needed.
1321
*/
22+
@Deprecated(forRemoval = true, since = "7.1.6")
1423
public interface ICoreModFile {
1524
String getOwnerId();
1625
Reader readCoreMod() throws IOException;

src/main/java/net/minecraftforge/forgespi/coremod/ICoreModProvider.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@
1212
* Core Mod Provider - core mod logic is implemented
1313
* in a separate library. Connection is provided here
1414
*
15+
* @deprecated The JS coremod system was an experiment to force modders
16+
* to stop shipping both transformer and game layer code in the same jar.
17+
* JavaScript was chosen because it was included in Java itself and could
18+
* easily be decoupled from the game layer data.
19+
*
20+
* Java has stopped shipping JavaScript, and most Transformers are Mixin
21+
* these days, so it's no longer needed.
22+
*
1523
*/
24+
@Deprecated(forRemoval = true, since = "7.1.6")
1625
public interface ICoreModProvider {
1726
/**
1827
* Add a coremod file to the list of coremods

0 commit comments

Comments
 (0)