-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* best update ever ong * almost there * DONE! * revert this * fix a couple crashes * added *new* machine builder stuffs and such, updated KJS * missed sum files * ....and more. * fix pipe models * fix element builder * fix being able to set auto output side to front * almost there * DONE! * revert this * holy hell * fix some recipes failing because they were provided BlockEntry<?>s and only checked for ItemEntry<?> instead of ItemProviderEntry<?> * DONE! * revert this * ....and more. * DONE! * revert this * holy hell * same stuff * fix a crash with data, and rename Cetane-boosted Diesel to actually be Cetane-boosted diesel * finish the (very much optional) bedrock ore system * fix a crash if flawed/chipped gems are disabled * change ProspectorMode to fix stuff * changes to bedrock ore vein edge stuff * Revert "change ProspectorMode to fix stuff" This reverts commit b378f4c. * bump version * update kjs * IT WORKS FUCK YESSSS... except replacing. * replacing almost works * IT WORKS FUCK YESSSS * fix ores not dropping materials without raw ores * piss off loom * lat broke replacing :trolley: * fix prospector tooltips * tier chance boost * fix solder multiplier defaulting to 0 * update some deps * run data * fix cleanroom --------- Co-authored-by: KilaBash <yefancy@foxmail.com>
- Loading branch information
Showing
138 changed files
with
3,592 additions
and
1,288 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
34 changes: 34 additions & 0 deletions
34
common/src/main/java/com/gregtechceu/gtceu/api/addon/events/KJSRecipeKeyEvent.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,34 @@ | ||
package com.gregtechceu.gtceu.api.addon.events; | ||
|
||
import com.gregtechceu.gtceu.api.capability.recipe.RecipeCapability; | ||
import com.gregtechceu.gtceu.integration.kjs.recipe.components.ContentJS; | ||
import com.gregtechceu.gtceu.integration.kjs.recipe.components.GTRecipeComponents; | ||
import com.mojang.datafixers.util.Pair; | ||
import dev.latvian.mods.kubejs.recipe.component.ItemComponents; | ||
import dev.latvian.mods.kubejs.recipe.component.NumberComponent; | ||
import dev.latvian.mods.kubejs.recipe.component.RecipeComponent; | ||
import lombok.Getter; | ||
|
||
import java.util.*; | ||
|
||
/** | ||
* @author screret | ||
* @date 2023/7/5 | ||
* @implNote An event for adding KJS recipe keys | ||
*/ | ||
@SuppressWarnings("unused") | ||
public class KJSRecipeKeyEvent { | ||
@Getter | ||
private final Map<RecipeCapability<?>, Pair<ContentJS<?>, ContentJS<?>>> registeredKeys = new HashMap<>(); | ||
|
||
/** | ||
* Use this to register new components for KJS to use! | ||
* @param cap the recipe capability you're adding a KJS binding for. | ||
* @param key the components, like {@link GTRecipeComponents#ITEM_IN} and {@link GTRecipeComponents#ITEM_OUT}, as a {@link Pair} | ||
*/ | ||
public void registerKey(RecipeCapability<?> cap, Pair<ContentJS<?>, ContentJS<?>> key) { | ||
if (registeredKeys.put(cap, key) != null) { | ||
throw new IllegalStateException("Can't have multiple Recipe keys with same value!"); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.