-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for both squeezers, fixed crash with squeezing blank
facade, made just return blank facade
- Loading branch information
Showing
12 changed files
with
100 additions
and
57 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
19 changes: 19 additions & 0 deletions
19
src/main/java/org/cyclops/integrateddynamics/core/recipe/type/RecipeFacadeSqueezeConfig.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,19 @@ | ||
package org.cyclops.integrateddynamics.core.recipe.type; | ||
|
||
import org.cyclops.cyclopscore.config.extendedconfig.RecipeConfig; | ||
import org.cyclops.integrateddynamics.IntegratedDynamics; | ||
import org.cyclops.integrateddynamics.recipe.ItemFacadeRecipe; | ||
|
||
/** | ||
* Config for {@link ItemFacadeRecipe}. | ||
* @author rubensworks | ||
*/ | ||
public class RecipeFacadeSqueezeConfig extends RecipeConfig<RecipeFacadeSqueeze> { | ||
|
||
public RecipeFacadeSqueezeConfig() { | ||
super(IntegratedDynamics._instance, | ||
"squeeze_facade", | ||
eConfig -> new RecipeSerializerFacadeSqueeze()); | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...n/java/org/cyclops/integrateddynamics/core/recipe/type/RecipeSerializerFacadeSqueeze.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 org.cyclops.integrateddynamics.core.recipe.type; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import com.google.gson.JsonObject; | ||
|
||
import net.minecraft.network.FriendlyByteBuf; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.crafting.RecipeSerializer; | ||
|
||
public class RecipeSerializerFacadeSqueeze implements RecipeSerializer<RecipeFacadeSqueeze>{ | ||
|
||
@Override | ||
public RecipeFacadeSqueeze fromJson(ResourceLocation recipeID, JsonObject json) { | ||
return new RecipeFacadeSqueeze(recipeID, 20); | ||
} | ||
|
||
|
||
@Nullable | ||
@Override | ||
public RecipeFacadeSqueeze fromNetwork(ResourceLocation recipeId, FriendlyByteBuf buffer) { | ||
return new RecipeFacadeSqueeze(recipeId, 20); | ||
} | ||
|
||
@Override | ||
public void toNetwork(FriendlyByteBuf buffer, RecipeFacadeSqueeze recipe) {} | ||
|
||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/org/cyclops/integrateddynamics/core/recipe/type/RecipeSqueezerNBT.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...n/java/org/cyclops/integrateddynamics/core/recipe/type/RecipeTypeFacadeSqueezeConfig.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,14 @@ | ||
package org.cyclops.integrateddynamics.core.recipe.type; | ||
|
||
import org.cyclops.cyclopscore.config.extendedconfig.RecipeTypeConfig; | ||
import org.cyclops.integrateddynamics.IntegratedDynamics; | ||
|
||
public class RecipeTypeFacadeSqueezeConfig extends RecipeTypeConfig<RecipeFacadeSqueeze> { | ||
|
||
public RecipeTypeFacadeSqueezeConfig() { | ||
super( | ||
IntegratedDynamics._instance, | ||
"facade_squeeze" | ||
); | ||
} | ||
} |
19 changes: 0 additions & 19 deletions
19
src/main/java/org/cyclops/integrateddynamics/recipe/ItemFacadeSqueezeRecipeConfig.java
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
src/main/resources/data/integrateddynamics/recipes/special/facade_squeeze.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,4 @@ | ||
{ | ||
"type": "integrateddynamics:facade_squeeze", | ||
"duration": 10 | ||
} |
3 changes: 0 additions & 3 deletions
3
src/main/resources/data/integrateddynamics/recipes/special/squeeze_facade.json
This file was deleted.
Oops, something went wrong.