Rip out the uncrafting recipe temporarily until it is fully tested and implemented.

This commit is contained in:
Zontreck 2024-03-04 19:02:03 -07:00
parent 4101ff70be
commit ceba8d7585
3 changed files with 7 additions and 4 deletions

View file

@ -48,7 +48,7 @@ mod_name=Thresholds
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=GPLv3
# The mod version. See https://semver.org/
mod_version=1201.4.030424.1750
mod_version=1201.4.030424.1901
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

View file

@ -12,7 +12,7 @@ public class ModRecipes {
public static final RegistryObject<RecipeSerializer<CompressionChamberRecipe>> COMPRESSING_SERIALIZER = SERIALIZERS.register("compressing", ()->CompressionChamberRecipe.Serializer.INSTANCE);
public static final RegistryObject<RecipeSerializer<UncraftingRecipe>> UNCRAFTING_SERIALIZER = SERIALIZERS.register("uncrafting", UncraftingRecipe.Serializer::new);
//public static final RegistryObject<RecipeSerializer<UncraftingRecipe>> UNCRAFTING_SERIALIZER = SERIALIZERS.register("uncrafting", UncraftingRecipe.Serializer::new);
public static void register(IEventBus bus)
{

View file

@ -23,7 +23,9 @@ import java.util.Arrays;
import java.util.Map;
import java.util.Set;
public class UncraftingRecipe {
}
/*
public record UncraftingRecipe(ResourceLocation recipeID, int width, int height, Ingredient input, int count, NonNullList<Ingredient> resultItems) implements CraftingRecipe, IShapedRecipe<CraftingContainer> {
@Override //This method is never used, but it has to be implemented
@ -95,6 +97,7 @@ public record UncraftingRecipe(ResourceLocation recipeID, int width, int height,
* "key" and "pattern", which work just like vanilla except this is output and not input, since we're uncrafting.
* Width and height get assigned automatically.
*/
/*
@Override
public UncraftingRecipe fromJson(ResourceLocation id, JsonObject json) {
JsonObject input = GsonHelper.getAsJsonObject(json, "input");
@ -235,4 +238,4 @@ public record UncraftingRecipe(ResourceLocation recipeID, int width, int height,
public static final UncraftingRecipe.Type INSTANCE = new UncraftingRecipe.Type();
public static final String ID = "uncrafting";
}
}
}*/