-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package dev.dubhe.anvilcraft.data.generator.recipe; | ||
|
||
import com.tterrag.registrate.providers.RegistrateRecipeProvider; | ||
import dev.dubhe.anvilcraft.AnvilCraft; | ||
import dev.dubhe.anvilcraft.data.generator.AnvilCraftDatagen; | ||
import dev.dubhe.anvilcraft.data.recipe.anvil.AnvilRecipe; | ||
import dev.dubhe.anvilcraft.init.ModBlocks; | ||
import dev.dubhe.anvilcraft.init.ModItems; | ||
import java.util.Map; | ||
import net.minecraft.data.recipes.RecipeCategory; | ||
import net.minecraft.world.level.block.Blocks; | ||
import net.minecraft.world.level.block.LayeredCauldronBlock; | ||
import net.minecraft.world.phys.Vec3; | ||
|
||
public class TimeWarpRecipesLoader { | ||
public static void init(RegistrateRecipeProvider provider) { | ||
Check warning on line 16 in common/src/main/java/dev/dubhe/anvilcraft/data/generator/recipe/TimeWarpRecipesLoader.java GitHub Actions / Checkstyle[Checkstyle] common/src/main/java/dev/dubhe/anvilcraft/data/generator/recipe/TimeWarpRecipesLoader.java#L16 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck>
Raw output
|
||
AnvilRecipe.Builder.create(RecipeCategory.MISC) | ||
.icon(ModItems.SEA_HEART_SHELL) | ||
.hasBlock(ModBlocks.CORRUPTED_BEACON.get(), new Vec3(0.0, -2.0, 0.0)) | ||
.hasBlock(Blocks.WATER_CAULDRON, new Vec3(0.0, -1.0, 0.0), Map.entry(LayeredCauldronBlock.LEVEL, 3)) | ||
.hasItemIngredient(new Vec3(0.0, -1.0, 0.0), ModItems.SEA_HEART_SHELL_SHARD) | ||
.spawnItem(new Vec3(0.0, -1.0, 0.0), ModItems.SEA_HEART_SHELL) | ||
.setBlock(Blocks.CAULDRON.defaultBlockState()) | ||
.unlockedBy(AnvilCraftDatagen.hasItem(ModItems.SEA_HEART_SHELL_SHARD.get()), AnvilCraftDatagen.has(ModItems.SEA_HEART_SHELL_SHARD)) | ||
Check warning on line 24 in common/src/main/java/dev/dubhe/anvilcraft/data/generator/recipe/TimeWarpRecipesLoader.java GitHub Actions / Checkstyle[Checkstyle] common/src/main/java/dev/dubhe/anvilcraft/data/generator/recipe/TimeWarpRecipesLoader.java#L24 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>
Raw output
|
||
.save(provider, AnvilCraft.of("timewarp/sea_heart_shell")); | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "anvilcraft:item/prismarine_blade" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "anvilcraft:item/prismarine_cluster" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "anvilcraft:item/sea_heart_shell" | ||
} | ||
} |