forked from GregTechCEu/GregTech-Modern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Various KJS issues (GregTechCEu#2596)
- Loading branch information
1 parent
ca22ea6
commit 029f610
Showing
10 changed files
with
92 additions
and
22 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
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
28 changes: 28 additions & 0 deletions
28
src/main/java/com/gregtechceu/gtceu/integration/kjs/helpers/MachineModifiers.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,28 @@ | ||
package com.gregtechceu.gtceu.integration.kjs.helpers; | ||
|
||
import com.gregtechceu.gtceu.api.machine.SimpleGeneratorMachine; | ||
import com.gregtechceu.gtceu.api.machine.steam.SimpleSteamMachine; | ||
import com.gregtechceu.gtceu.api.machine.steam.SteamBoilerMachine; | ||
import com.gregtechceu.gtceu.api.recipe.modifier.RecipeModifier; | ||
import com.gregtechceu.gtceu.common.machine.multiblock.electric.FusionReactorMachine; | ||
import com.gregtechceu.gtceu.common.machine.multiblock.generator.LargeCombustionEngineMachine; | ||
import com.gregtechceu.gtceu.common.machine.multiblock.generator.LargeTurbineMachine; | ||
import com.gregtechceu.gtceu.common.machine.multiblock.steam.LargeBoilerMachine; | ||
import com.gregtechceu.gtceu.common.machine.multiblock.steam.SteamParallelMultiblockMachine; | ||
|
||
/** | ||
* Collection of Recipe Modifiers for different machines | ||
* Makes using them for KJS machines easier | ||
*/ | ||
@SuppressWarnings("unused") | ||
public final class MachineModifiers { | ||
|
||
public static RecipeModifier SIMPLE_STEAM = SimpleSteamMachine::recipeModifier; | ||
public static RecipeModifier SIMPLE_GENERATOR = SimpleGeneratorMachine::recipeModifier; | ||
public static RecipeModifier STEAM_BOILER = SteamBoilerMachine::recipeModifier; | ||
public static RecipeModifier LARGE_BOILER = LargeBoilerMachine::recipeModifier; | ||
public static RecipeModifier LARGE_TURBINE = LargeTurbineMachine::recipeModifier; | ||
public static RecipeModifier LARGE_COMBUSTION_ENGINE = LargeCombustionEngineMachine::recipeModifier; | ||
public static RecipeModifier STEAM_PARALLEL_MULTIBLOCK = SteamParallelMultiblockMachine::recipeModifier; | ||
public static RecipeModifier FUSION_REACTOR = FusionReactorMachine::recipeModifier; | ||
} |