generated from neoforged/MDK
-
Notifications
You must be signed in to change notification settings - Fork 1
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
lilypuree
committed
Jan 27, 2024
1 parent
993c04e
commit daac50b
Showing
13 changed files
with
112 additions
and
66 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
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
9 changes: 9 additions & 0 deletions
9
common/src/main/resources/data/create/metabolites/bar_of_chocolate.json
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,9 @@ | ||
{ | ||
"warmth": 6.0, | ||
"food": 4.0, | ||
"hydration": 2.0, | ||
"modifier": { | ||
"eat_when_full": true, | ||
"fast_eating": true | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
common/src/main/resources/data/create/metabolites/chocolate_glazed_berries.json
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,10 @@ | ||
{ | ||
"warmth": 10.0, | ||
"food": 8.0, | ||
"hydration": 2.0, | ||
"amplifier": 1, | ||
"modifier": { | ||
"eat_when_full": true, | ||
"fast_eating": true | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
common/src/main/resources/data/create/metabolites/honeyed_apple.json
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,9 @@ | ||
{ | ||
"warmth": 12.0, | ||
"food": 7.0, | ||
"hydration": 7.0, | ||
"amplifier": 1, | ||
"modifier": { | ||
"eat_when_full": true | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
common/src/main/resources/data/create/metabolites/sweet_roll.json
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,9 @@ | ||
{ | ||
"warmth": 8.0, | ||
"food": 5.0, | ||
"hydration": 5.0, | ||
"amplifier": 1, | ||
"modifier": { | ||
"eat_when_full": true | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
forge/src/main/java/lilypuree/metabolism/data/DataGenerators.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,25 @@ | ||
package lilypuree.metabolism.data; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.DataGenerator; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
import net.minecraftforge.data.event.GatherDataEvent; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) | ||
public class DataGenerators { | ||
|
||
@SubscribeEvent | ||
public static void gatherData(GatherDataEvent event) { | ||
DataGenerator generator = event.getGenerator(); | ||
PackOutput packOutput = generator.getPackOutput(); | ||
CompletableFuture<HolderLookup.Provider> lookupProvider = event.getLookupProvider(); | ||
ExistingFileHelper existingFileHelper = event.getExistingFileHelper(); | ||
|
||
|
||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
forge/src/main/java/lilypuree/metabolism/data/MetabolitesProvider.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,32 @@ | ||
package lilypuree.metabolism.data; | ||
|
||
import com.mojang.logging.LogUtils; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.CachedOutput; | ||
import net.minecraft.data.DataProvider; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
import org.slf4j.Logger; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class MetabolitesProvider implements DataProvider { | ||
private static final Logger LOGGER = LogUtils.getLogger(); | ||
protected final String modid; | ||
|
||
public MetabolitesProvider(PackOutput packOutput, CompletableFuture<HolderLookup.Provider> lookupProvider, String modid, ExistingFileHelper existingFileHelper) { | ||
this.modid = modid; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Metabolites for mod " + modid; | ||
} | ||
|
||
@Override | ||
public CompletableFuture<?> run(CachedOutput cachedOutput) { | ||
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