parent
f60d69b5da
commit
99db21f327
|
|
@ -1,3 +1,6 @@
|
||||||
|
## Ex Deorum 3.10
|
||||||
|
- Now requires KubeJS 7.2 to fix incompatibility (#158)
|
||||||
|
|
||||||
## Ex Deorum 3.9
|
## Ex Deorum 3.9
|
||||||
- Add `#exdeorum:hammer_fortune_blacklist` and `#exdeorum:compressed_hammer_fortune_blacklist` item tags, allowing pack makers to prevent Fortune from affecting a block's hammer or compressed hammer drops
|
- Add `#exdeorum:hammer_fortune_blacklist` and `#exdeorum:compressed_hammer_fortune_blacklist` item tags, allowing pack makers to prevent Fortune from affecting a block's hammer or compressed hammer drops
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,17 @@ org.gradle.parallel=true
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
|
||||||
mc_version=1.21.1
|
mc_version=1.21.1
|
||||||
neo_version=21.1.172
|
neo_version=21.1.213
|
||||||
neo_version_range=[21.1,)
|
neo_version_range=[21.1,)
|
||||||
loader_version_range=[4,)
|
loader_version_range=[4,)
|
||||||
|
|
||||||
jei_version=19.21.0.247
|
jei_version=19.25.0.323
|
||||||
emi_version=1.1.18
|
emi_version=1.1.18
|
||||||
cloth_config_version=15.0.127
|
cloth_config_version=15.0.127
|
||||||
top_version=12.0.3-5
|
top_version=12.0.3-5
|
||||||
|
|
||||||
kubejs_version=2101.7.1-build.181
|
kubejs_version=2101.7.2-build.296
|
||||||
rhino_version=2101.2.7-build.74
|
rhino_version=2101.2.7-build.81
|
||||||
architectury_version=13.0.8
|
architectury_version=13.0.8
|
||||||
|
|
||||||
parchment_minecraft_version=1.21.1
|
parchment_minecraft_version=1.21.1
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Ex Deorum
|
* Ex Deorum
|
||||||
* Copyright (c) 2024 thedarkcolour
|
* Copyright (c) 2025 thedarkcolour
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -20,7 +20,7 @@ package thedarkcolour.exdeorum.compat.kubejs;
|
||||||
|
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.mojang.serialization.JsonOps;
|
import com.mojang.serialization.JsonOps;
|
||||||
import dev.latvian.mods.kubejs.bindings.event.ServerEvents;
|
import dev.latvian.mods.kubejs.plugin.builtin.event.ServerEvents;
|
||||||
import dev.latvian.mods.kubejs.recipe.RecipesKubeEvent;
|
import dev.latvian.mods.kubejs.recipe.RecipesKubeEvent;
|
||||||
import dev.latvian.mods.kubejs.recipe.filter.RecipeFilterParseEvent;
|
import dev.latvian.mods.kubejs.recipe.filter.RecipeFilterParseEvent;
|
||||||
import dev.latvian.mods.kubejs.recipe.match.ReplacementMatchInfo;
|
import dev.latvian.mods.kubejs.recipe.match.ReplacementMatchInfo;
|
||||||
|
|
@ -81,7 +81,10 @@ class ExDeorumKubeJsBindings {
|
||||||
|
|
||||||
@HideFromJS
|
@HideFromJS
|
||||||
private static void removeDefaultRecipes(RecipesKubeEvent event, DeferredHolder<? extends RecipeType<?>, ? extends RecipeType<?>> recipeType) {
|
private static void removeDefaultRecipes(RecipesKubeEvent event, DeferredHolder<? extends RecipeType<?>, ? extends RecipeType<?>> recipeType) {
|
||||||
event.remove(null, (ctx, r) -> r.kjs$getType().equals(recipeType.getId()) && r.kjs$getOrCreateId().getNamespace().equals(ExDeorum.ID));
|
event.remove(null, (ctx) -> {
|
||||||
|
var r = ctx.recipe();
|
||||||
|
return r.kjs$getType().equals(recipeType.getId()) && r.kjs$getOrCreateId().getNamespace().equals(ExDeorum.ID);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@HideFromJS
|
@HideFromJS
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Ex Deorum
|
* Ex Deorum
|
||||||
* Copyright (c) 2024 thedarkcolour
|
* Copyright (c) 2025 thedarkcolour
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -18,17 +18,17 @@
|
||||||
|
|
||||||
package thedarkcolour.exdeorum.compat.kubejs;
|
package thedarkcolour.exdeorum.compat.kubejs;
|
||||||
|
|
||||||
import dev.latvian.mods.kubejs.core.RecipeLikeKJS;
|
|
||||||
import dev.latvian.mods.kubejs.recipe.KubeRecipe;
|
import dev.latvian.mods.kubejs.recipe.KubeRecipe;
|
||||||
import dev.latvian.mods.kubejs.recipe.filter.RecipeFilter;
|
import dev.latvian.mods.kubejs.recipe.filter.RecipeFilter;
|
||||||
|
import dev.latvian.mods.kubejs.recipe.filter.RecipeMatchContext;
|
||||||
import dev.latvian.mods.kubejs.recipe.match.ItemMatch;
|
import dev.latvian.mods.kubejs.recipe.match.ItemMatch;
|
||||||
import dev.latvian.mods.kubejs.recipe.match.ReplacementMatchInfo;
|
import dev.latvian.mods.kubejs.recipe.match.ReplacementMatchInfo;
|
||||||
import dev.latvian.mods.rhino.Context;
|
|
||||||
import thedarkcolour.exdeorum.recipe.sieve.SieveRecipe;
|
import thedarkcolour.exdeorum.recipe.sieve.SieveRecipe;
|
||||||
|
|
||||||
public record SieveMeshFilter(ReplacementMatchInfo info) implements RecipeFilter {
|
public record SieveMeshFilter(ReplacementMatchInfo info) implements RecipeFilter {
|
||||||
@Override
|
@Override
|
||||||
public boolean test(Context cx, RecipeLikeKJS r) {
|
public boolean test(RecipeMatchContext ctx) {
|
||||||
return r instanceof KubeRecipe recipeJs && recipeJs.getOriginalRecipe() instanceof SieveRecipe sieveRecipe && this.info.match() instanceof ItemMatch match && match.matches(cx, sieveRecipe.mesh, false);
|
var r = ctx.recipe();
|
||||||
|
return r instanceof KubeRecipe recipeJs && recipeJs.getOriginalRecipe() instanceof SieveRecipe sieveRecipe && this.info.match() instanceof ItemMatch match && match.matches(ctx, sieveRecipe.mesh, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user