-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from GrowthcraftCE/development
4.1.0 Release
- Loading branch information
Showing
114 changed files
with
1,944 additions
and
1,216 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Mon Aug 07 21:02:26 EDT 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-all.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sonar.projectName=Growthcraft-1.12 | ||
sonar.projectKey=growthcraft:Growthcraft-1.12 | ||
sonar.java.binaries=build/libs | ||
sonar.java.libraries=build/libs |
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
42 changes: 42 additions & 0 deletions
42
src/main/java/growthcraft/bees/common/crafting/recipe/ShapelessRecipeWithBucket.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,42 @@ | ||
package growthcraft.bees.common.crafting.recipe; | ||
|
||
import com.google.gson.JsonObject; | ||
import growthcraft.core.shared.GrowthcraftLogger; | ||
import growthcraft.core.shared.Reference; | ||
import growthcraft.core.shared.crafting.recipe.UtilRecipeParser; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.crafting.IRecipe; | ||
import net.minecraft.item.crafting.Ingredient; | ||
import net.minecraft.util.JsonUtils; | ||
import net.minecraft.util.NonNullList; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraftforge.common.crafting.CraftingHelper; | ||
import net.minecraftforge.common.crafting.IRecipeFactory; | ||
import net.minecraftforge.common.crafting.JsonContext; | ||
import net.minecraftforge.oredict.ShapelessOreRecipe; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public class ShapelessRecipeWithBucket extends ShapelessOreRecipe { | ||
|
||
public ShapelessRecipeWithBucket(@Nullable final ResourceLocation group, final NonNullList<Ingredient> input, final ItemStack result) { | ||
super(group, input, result); | ||
} | ||
|
||
@Override | ||
public String getGroup() { | ||
return group == null ? "" : group.toString(); | ||
} | ||
|
||
public static class Factory implements IRecipeFactory { | ||
@Override | ||
public IRecipe parse(final JsonContext context, final JsonObject json) { | ||
final String group = JsonUtils.getString(json, "group", ""); | ||
final NonNullList<Ingredient> ingredients = UtilRecipeParser.parseShapeless(context, json); | ||
final ItemStack result = CraftingHelper.getItemStack(JsonUtils.getJsonObject(json, "result"), context); | ||
GrowthcraftLogger.getLogger(Reference.MODID).debug("Loading recipe for " + result.getItem().getRegistryName()); | ||
return new ShapelessRecipeWithBucket(group.isEmpty() ? null : new ResourceLocation(group), ingredients, result); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.