Skip to content

Commit a7ca205

Browse files
committed
Add NeoForge section to the readme
1 parent 4e34cd9 commit a7ca205

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

README.MD

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,32 @@ Finally, set the Forge version object to your `FlowUpdaterBuilder`:
8888
.withModLoaderVersion(forgeVersion);
8989
```
9090

91+
### NeoForge
92+
Works almost the same way as Forge, but you need to use `NeoForgeVersion` instead of `ForgeVersion` and `NeoForgeVersionBuilder` instead of `ForgeVersionBuilder`.
93+
Be careful when passing the neoforge version, it must be in the forge format for 1.20.1 (1.20.1-47.1.5 for example) ; but you should only pass the neoforge version for versions >= 1.21 (21.8.31 for example).
94+
95+
96+
### Fabric
97+
98+
(You need to setup a vanilla updater!)
99+
100+
Next, make a List of Mod objects like for a ForgeVersion if you need some.
101+
102+
Then, build a Fabric version.
103+
```java
104+
FabricVersion fabricVersion = new FabricVersionBuilder()
105+
.withFabricVersion("0.10.8") // optional, if you don't set one, it will take the latest fabric loader version available.
106+
.withCurseMods(modInfos) // optional
107+
.withMods(mods) // optional
108+
.withFileDeleter(new ModFileDeleter("sodium.jar")) // (optional but recommended) delete bad mods ; but it won't remove the file sodium.jar if it's present in the mods' dir.
109+
.build();
110+
```
111+
112+
Finally, set the Fabric version to your `FlowUpdaterBuilder`:
113+
```java
114+
.withModLoaderVersion(fabricVersion);
115+
```
116+
91117
### MCP
92118

93119
(You need to setup a vanilla updater!)
@@ -114,27 +140,6 @@ Still in the vanilla version builder, set a json link to a custom MCP version:
114140
You can also provide some more additional libraries or assets with all methods in the `VanillaVersionBuilder` class
115141
(`withAnotherLibraries`, `withAnotherAssets`, `withCustomAssetIndex`).
116142

117-
### Fabric
118-
119-
(You need to setup a vanilla updater!)
120-
121-
Next, make a List of Mod objects like for a ForgeVersion if you need some.
122-
123-
Then, build a Fabric version.
124-
```java
125-
FabricVersion fabricVersion = new FabricVersionBuilder()
126-
.withFabricVersion("0.10.8") // optional, if you don't set one, it will take the latest fabric loader version available.
127-
.withCurseMods(modInfos) // optional
128-
.withMods(mods) // optional
129-
.withFileDeleter(new ModFileDeleter("sodium.jar")) // (optional but recommended) delete bad mods ; but it won't remove the file sodium.jar if it's present in the mods' dir.
130-
.build();
131-
```
132-
133-
Finally, set the Fabric version to your `FlowUpdaterBuilder`:
134-
```java
135-
.withModLoaderVersion(fabricVersion);
136-
```
137-
138143
## External Files
139144

140145
With FlowUpdater, you can download other files in your update dir! This system is designed mainly for configs, resource packs.

0 commit comments

Comments
 (0)