mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-25 02:47:39 +00:00
Add data generator support for required mods
We've supported resource conditions in the upgrade JSON for an age, but don't expose it in our data generators at all. Indeed, using these hooks is a bit of a pain to do in multi-loader setups, as the JSON is different between the two loaders. We could generate the JSON for all loaders at once, but it feels nicer to use the per-loader APIs to add the conditions. For now, we just support generating a single condition - whether a mod is loaded not, via the requireMod(...) method.
This commit is contained in:
@@ -96,7 +96,12 @@ public class TestPlatformHelper extends AbstractComputerCraftAPI implements Plat
|
||||
|
||||
@Override
|
||||
public boolean shouldLoadResource(JsonObject object) {
|
||||
throw new UnsupportedOperationException("Cannot use loot conditions");
|
||||
throw new UnsupportedOperationException("Cannot use resource conditions");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addRequiredModCondition(JsonObject object, String modId) {
|
||||
throw new UnsupportedOperationException("Cannot use resource conditions");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user