diff --git a/common/src/main/java/dev/architectury/hooks/item/tool/AxeItemHooks.java b/common/src/main/java/dev/architectury/hooks/item/tool/AxeItemHooks.java index 2ef21544..117ec67c 100644 --- a/common/src/main/java/dev/architectury/hooks/item/tool/AxeItemHooks.java +++ b/common/src/main/java/dev/architectury/hooks/item/tool/AxeItemHooks.java @@ -10,7 +10,20 @@ import java.util.HashMap; public final class AxeItemHooks { private AxeItemHooks() { } - + + /** + * Adds a new stripping (interact with axe) recipe to the game.
+ *
+ * Note that both the input block and the result block must have the
+ * {@link net.minecraft.world.level.block.state.properties.BlockStateProperties#AXIS AXIS} property,
+ * and that the value of this property will be copied from the input block to the result block when the recipe
+ * is performed.
+ *
+ * @param input input block
+ * @param result result block
+ * @throws IllegalArgumentException if the input or result blocks do not have the
+ * {@link net.minecraft.world.level.block.state.properties.BlockStateProperties#AXIS AXIS} property.
+ */
public static void addStrippingRecipe(Block input, Block result) {
if (!input.defaultBlockState().hasProperty(RotatedPillarBlock.AXIS))
throw new IllegalArgumentException("Input block is missing required 'AXIS' property!");
diff --git a/common/src/main/java/dev/architectury/hooks/item/tool/HoeItemHooks.java b/common/src/main/java/dev/architectury/hooks/item/tool/HoeItemHooks.java
index c29e2cd4..d226cebe 100644
--- a/common/src/main/java/dev/architectury/hooks/item/tool/HoeItemHooks.java
+++ b/common/src/main/java/dev/architectury/hooks/item/tool/HoeItemHooks.java
@@ -13,11 +13,26 @@ import java.util.function.Predicate;
public final class HoeItemHooks {
private HoeItemHooks() {
}
-
- public static void addTillingRecipe(Block src, Predicate
+ *
+ * Tilling uses a predicate/consumer pair system:
+ *
+ *
+ * Notes:
+ *
+ *
+ *
+ * @param input input block
+ * @param predicate context predicate
+ * @param action action to run
+ */
+ public static void addTillingRecipe(Block input, Predicate
+ *
+ *
+ * @param input input block
+ * @param result result block state
+ */
public static void addFlatteningRecipe(Block input, BlockState result) {
if (ShovelItem.FLATTENABLES instanceof ImmutableMap) {
ShovelItem.FLATTENABLES = new HashMap<>(ShovelItem.FLATTENABLES);