mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-28 03:56:59 -05:00
These aren't actually recipes, so...
This commit is contained in:
@@ -12,7 +12,7 @@ public final class AxeItemHooks {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new stripping (interact with axe) recipe to the game.<p>
|
||||
* Adds a new stripping (interact with axe) interaction to the game.<p>
|
||||
*
|
||||
* Note that both the input block and the result block <em>must</em> have the
|
||||
* {@link net.minecraft.world.level.block.state.properties.BlockStateProperties#AXIS AXIS} property,
|
||||
@@ -24,7 +24,7 @@ public final class AxeItemHooks {
|
||||
* @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) {
|
||||
public static void addStrippable(Block input, Block result) {
|
||||
if (!input.defaultBlockState().hasProperty(RotatedPillarBlock.AXIS))
|
||||
throw new IllegalArgumentException("Input block is missing required 'AXIS' property!");
|
||||
if (!result.defaultBlockState().hasProperty(RotatedPillarBlock.AXIS))
|
||||
|
||||
@@ -15,7 +15,7 @@ public final class HoeItemHooks {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new tilling (interact with hoe) recipe to the game.<p>
|
||||
* Adds a new tilling (interact with hoe) interaction to the game.<p>
|
||||
*
|
||||
* Tilling uses a predicate/consumer pair system:
|
||||
* <ul>
|
||||
@@ -29,7 +29,7 @@ public final class HoeItemHooks {
|
||||
* @param predicate context predicate
|
||||
* @param action action to run
|
||||
*/
|
||||
public static void addTillingRecipe(Block input, Predicate<UseOnContext> predicate, Consumer<UseOnContext> action) {
|
||||
public static void addTillable(Block input, Predicate<UseOnContext> predicate, Consumer<UseOnContext> action) {
|
||||
if (HoeItem.TILLABLES instanceof ImmutableMap) {
|
||||
HoeItem.TILLABLES = new HashMap<>(HoeItem.TILLABLES);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public final class ShovelItemHooks {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new flattening (interact with shovel) recipe to the game.<p>
|
||||
* Adds a new flattening (interact with shovel) interaction to the game.<p>
|
||||
*
|
||||
* <b>Notes:</b>
|
||||
* <ul>
|
||||
@@ -24,7 +24,7 @@ public final class ShovelItemHooks {
|
||||
* @param input input block
|
||||
* @param result result block state
|
||||
*/
|
||||
public static void addFlatteningRecipe(Block input, BlockState result) {
|
||||
public static void addFlattenable(Block input, BlockState result) {
|
||||
if (ShovelItem.FLATTENABLES instanceof ImmutableMap) {
|
||||
ShovelItem.FLATTENABLES = new HashMap<>(ShovelItem.FLATTENABLES);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user