Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Adds and registers custom item recipes. */
- public class ACRecipeManager extends RecipeProvider {
- public ACRecipeManager(DataGenerator generator) {
- super(generator);
- }
- @Override
- protected void buildShapelessRecipes(@Nonnull Consumer<IFinishedRecipe> consumer) {
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.SHARPNESS_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.FLINT).define('A', Items.IRON_SWORD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.SMITE_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.ROTTEN_FLESH).define('A', Items.BONE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.BANE_OF_ARTHROPODS_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.SPIDER_EYE).define('A', Items.STRING).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.KNOCKBACK_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Blocks.PISTON).define('A', Blocks.SLIME_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FIRE_ASPECT_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.FIRE_CHARGE).define('A', Blocks.COAL_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.LOOTING_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.GOLD_INGOT).define('A', Items.GOLDEN_SWORD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.UNBREAKING_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Blocks.OBSIDIAN).define('A', Items.DIAMOND_CHESTPLATE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.MENDING_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Blocks.ANVIL).define('A', Items.POPPED_CHORUS_FRUIT).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.PROTECTION_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.LEATHER_CHESTPLATE).define('A', Items.SHIELD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FIRE_PROTECTION_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.NETHER_BRICK).define('A', Items.FLINT_AND_STEEL).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.BLAST_PROTECTION_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Blocks.OBSIDIAN).define('A', Blocks.TNT).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.PROJECTILE_PROTECTION_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.ARROW).define('A', Items.BOW).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FEATHER_FALLING_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.FEATHER).define('A', Blocks.HAY_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.RESPIRATION_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.TROPICAL_FISH).define('A', Items.GLASS_BOTTLE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.AQUA_AFFINITY_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.TROPICAL_FISH).define('A', Items.IRON_PICKAXE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.THORNS_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Blocks.CACTUS).define('A', Items.FLINT).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.DEPTH_STRIDER_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.LEATHER_BOOTS).define('A', Items.WATER_BUCKET).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FROST_WALKER_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.GOLDEN_BOOTS).define('A', Blocks.ICE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.EFFICIENCY_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.REDSTONE).define('A', Items.DIAMOND_PICKAXE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.SILK_TOUCH_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.STRING).define('A', Items.GOLDEN_PICKAXE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FORTUNE_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.DIAMOND).define('A', Items.GOLD_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.POWER_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.ARROW).define('A', Items.FLINT).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.PUNCH_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.ARROW).define('A', Blocks.PISTON).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FLAME_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.BLAZE_ROD).define('A', Blocks.COAL_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.INFINITY_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.BOW).define('A', Items.GOLDEN_APPLE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.LUCK_OF_THE_SEA_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.FISHING_ROD).define('A', Items.TROPICAL_FISH).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.LURE_UPGRADE.get(), 0), 1).define('I', Items.PAPER).define('X', Items.FISHING_ROD).define('A', Items.TROPICAL_FISH).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.SHARPNESS_UPGRADE.get(), 1), 1).define('A', ACItems.SHARPNESS_UPGRADE.get()).define('X', Items.DIAMOND_SWORD).define('I', Items.PRISMARINE_SHARD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.SMITE_UPGRADE.get(), 1), 1).define('A', ACItems.SMITE_UPGRADE.get()).define('X', Items.ZOMBIE_HEAD).define('I', Items.SKELETON_SKULL).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.BANE_OF_ARTHROPODS_UPGRADE.get(), 0), 1).define('A', ACItems.BANE_OF_ARTHROPODS_UPGRADE.get()).define('X', Items.FERMENTED_SPIDER_EYE).define('I', Items.COBWEB).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.KNOCKBACK_UPGRADE.get(), 1), 1).define('A', ACItems.KNOCKBACK_UPGRADE.get()).define('X', Items.STICKY_PISTON).define('I', Items.SLIME_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FIRE_ASPECT_UPGRADE.get(), 1), 1).define('A', ACItems.FIRE_ASPECT_UPGRADE.get()).define('X', Items.COAL_BLOCK).define('I', Items.BLAZE_ROD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.LOOTING_UPGRADE.get(), 1), 1).define('A', ACItems.LOOTING_UPGRADE.get()).define('X', Items.GOLD_BLOCK).define('I', Items.LAPIS_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.UNBREAKING_UPGRADE.get(), 1), 1).define('A', ACItems.UNBREAKING_UPGRADE.get()).define('X', Items.GHAST_TEAR).define('I', Items.DIAMOND_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.PROTECTION_UPGRADE.get(), 1), 1).define('A', ACItems.PROTECTION_UPGRADE.get()).define('X', Items.DIAMOND_CHESTPLATE).define('I', Items.OBSIDIAN).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FIRE_PROTECTION_UPGRADE.get(), 1), 1).define('A', ACItems.FIRE_PROTECTION_UPGRADE.get()).define('X', Items.FIRE_CHARGE).define('I', Items.OBSIDIAN).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.BLAST_PROTECTION_UPGRADE.get(), 1), 1).define('A', ACItems.BLAST_PROTECTION_UPGRADE.get()).define('X', Items.TNT).define('I', Items.CREEPER_HEAD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.PROJECTILE_PROTECTION_UPGRADE.get(), 1), 1).define('A', ACItems.PROJECTILE_PROTECTION_UPGRADE.get()).define('X', Items.BOW).define('I', Items.OBSIDIAN).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FEATHER_FALLING_UPGRADE.get(), 1), 1).define('A', ACItems.FEATHER_FALLING_UPGRADE.get()).define('X', Items.HAY_BLOCK).define('I', Items.WHITE_BED).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.THORNS_UPGRADE.get(), 1), 1).define('A', ACItems.THORNS_UPGRADE.get()).define('X', Items.IRON_BARS).define('I', Items.CACTUS).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FROST_WALKER_UPGRADE.get(), 1), 1).define('A', ACItems.FROST_WALKER_UPGRADE.get()).define('X', Items.DIAMOND_BOOTS).define('I', Items.PACKED_ICE).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.EFFICIENCY_UPGRADE.get(), 1), 1).define('A', ACItems.EFFICIENCY_UPGRADE.get()).define('X', Items.REDSTONE_BLOCK).define('I', Items.DIAMOND_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.FORTUNE_UPGRADE.get(), 1), 1).define('A', ACItems.FORTUNE_UPGRADE.get()).define('X', Items.GOLD_BLOCK).define('I', Items.DIAMOND_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.POWER_UPGRADE.get(), 1), 1).define('A', ACItems.POWER_UPGRADE.get()).define('X', Items.ARROW).define('I', Items.IRON_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.PUNCH_UPGRADE.get(), 1), 1).define('A', ACItems.PUNCH_UPGRADE.get()).define('X', Items.PISTON).define('I', Items.SLIME_BLOCK).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.LUCK_OF_THE_SEA_UPGRADE.get(), 1), 1).define('A', ACItems.LUCK_OF_THE_SEA_UPGRADE.get()).define('X', Items.RABBIT_FOOT).define('I', Items.EMERALD).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- ShapedRecipeBuilder.shaped(getEnchantmentTier(ACItems.LURE_UPGRADE.get(), 1), 1).define('A', ACItems.LURE_UPGRADE.get()).define('X', Items.TROPICAL_FISH).define('I', Items.POISONOUS_POTATO).pattern("IXI").pattern("XAX").pattern("IXI").save(consumer);
- }
- /** Clarifies if the item is elite or not. */
- private Item getEnchantmentTier(Item item, int value) {
- ItemStack stack = new ItemStack(item, 1);
- stack.setDamageValue(value);
- return item;
- }
- }
Add Comment
Please, Sign In to add comment