<commit_before>package com.hea3ven.buildingbricks.core.materials;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.item.crafting.IRecipe;

import com.hea3ven.tools.commonutils.item.crafting.RecipeBuilder;

public class MaterialBlockRecipes {
	public static List<MaterialBlockRecipeBuilder> getForType(StructureMaterial structMat,
			MaterialBlockType blockType) {
		List<MaterialBlockRecipeBuilder> recipes = new ArrayList<>();
		switch (blockType) {
			case FULL:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.SLAB))
					recipes.add(new MaterialBlockRecipeBuilder().outputAmount(2)
							.ingredients("xx", "xx", "x", "SLAB"));
				break;
			case STAIRS:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL))
					recipes.add(new MaterialBlockRecipeBuilder().outputAmount(4)
							.ingredients("x  ", "xx ", "xxx", "x", "FULL"));
				break;
			case SLAB:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(6).ingredients("xxx", "x", "FULL"));
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.STEP))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(1).ingredients("xx", "x", "STEP"));
				break;
			case VERTICAL_SLAB:
			case STEP:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.SLAB))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(6).ingredients("xxx", "x", "SLAB"));
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.CORNER))
					recipes.add(new MaterialBlockRecipeBuilder().outputAmount(1)
							.ingredients("xx", "x", "CORNER"));
				break;
			case CORNER:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.STEP))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(6).ingredients("xxx", "x", "STEP"));
				break;
			case WALL:
				switch (structMat) {
					default:
						if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL))
							recipes.add(new MaterialBlockRecipeBuilder().outputAmount(6)
									.ingredients("xxx", "xxx", "x", "FULL"));
						break;
					case GLASS:
					case ICE:
					case PACKED_ICE:
						if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL) &&
								MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.SLAB))
							recipes.add(new MaterialBlockRecipeBuilder().outputAmount(4)
									.ingredients("xyx", "xyx", "x", "SLAB", "y", "FULL"));
						break;
				}<commit_msg>Fix crash in vertical slab recipes<commit_after>package com.hea3ven.buildingbricks.core.materials;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.item.crafting.IRecipe;

import com.hea3ven.tools.commonutils.item.crafting.RecipeBuilder;

public class MaterialBlockRecipes {
	public static List<MaterialBlockRecipeBuilder> getForType(StructureMaterial structMat,
			MaterialBlockType blockType) {
		List<MaterialBlockRecipeBuilder> recipes = new ArrayList<>();
		switch (blockType) {
			case FULL:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.SLAB))
					recipes.add(new MaterialBlockRecipeBuilder().outputAmount(2)
							.ingredients("xx", "xx", "x", "SLAB"));
				break;
			case STAIRS:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL))
					recipes.add(new MaterialBlockRecipeBuilder().outputAmount(4)
							.ingredients("x  ", "xx ", "xxx", "x", "FULL"));
				break;
			case SLAB:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(6).ingredients("xxx", "x", "FULL"));
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.STEP))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(1).ingredients("xx", "x", "STEP"));
				break;
			case VERTICAL_SLAB:
				break;
			case STEP:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.SLAB))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(6).ingredients("xxx", "x", "SLAB"));
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.CORNER))
					recipes.add(new MaterialBlockRecipeBuilder().outputAmount(1)
							.ingredients("xx", "x", "CORNER"));
				break;
			case CORNER:
				if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.STEP))
					recipes.add(
							new MaterialBlockRecipeBuilder().outputAmount(6).ingredients("xxx", "x", "STEP"));
				break;
			case WALL:
				switch (structMat) {
					default:
						if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL))
							recipes.add(new MaterialBlockRecipeBuilder().outputAmount(6)
									.ingredients("xxx", "xxx", "x", "FULL"));
						break;
					case GLASS:
					case ICE:
					case PACKED_ICE:
						if (MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.FULL) &&
								MaterialBlockRegistry.instance.enabledBlocks.get(MaterialBlockType.SLAB))
							recipes.add(new MaterialBlockRecipeBuilder().outputAmount(4)
									.ingredients("xyx", "xyx", "x", "SLAB", "y", "FULL"));
						break;
				}
{'fraction_non_alphanumeric': 0.13123111782477342, 'fraction_numerical': 0.004154078549848943, 'mean_word_length': 4.477766287487073, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6443518', 'n_tokens_mistral': 2028, 'n_tokens_neox': 1588, 'n_words': 260}