mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-28 03:56:59 -05:00
Rename parameters to be less cryptic
This commit is contained in:
@@ -11,14 +11,14 @@ public final class AxeItemHooks {
|
||||
private AxeItemHooks() {
|
||||
}
|
||||
|
||||
public static void addStrippingRecipe(Block src, Block dst) {
|
||||
if (!src.defaultBlockState().hasProperty(RotatedPillarBlock.AXIS))
|
||||
throw new IllegalArgumentException("Source block is missing required 'AXIS' property!");
|
||||
if (!dst.defaultBlockState().hasProperty(RotatedPillarBlock.AXIS))
|
||||
throw new IllegalArgumentException("Destination block is missing required '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!");
|
||||
if (!result.defaultBlockState().hasProperty(RotatedPillarBlock.AXIS))
|
||||
throw new IllegalArgumentException("Result block is missing required 'AXIS' property!");
|
||||
if (AxeItem.STRIPPABLES instanceof ImmutableMap) {
|
||||
AxeItem.STRIPPABLES = new HashMap<>(AxeItem.STRIPPABLES);
|
||||
}
|
||||
AxeItem.STRIPPABLES.put(src, dst);
|
||||
AxeItem.STRIPPABLES.put(input, result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.HashMap;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
public class HoeItemHooks {
|
||||
public final class HoeItemHooks {
|
||||
private HoeItemHooks() {
|
||||
}
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ public final class ShovelItemHooks {
|
||||
private ShovelItemHooks() {
|
||||
}
|
||||
|
||||
public static void addFlatteningRecipe(Block src, BlockState dst) {
|
||||
public static void addFlatteningRecipe(Block input, BlockState result) {
|
||||
if (ShovelItem.FLATTENABLES instanceof ImmutableMap) {
|
||||
ShovelItem.FLATTENABLES = new HashMap<>(ShovelItem.FLATTENABLES);
|
||||
}
|
||||
ShovelItem.FLATTENABLES.put(src, dst);
|
||||
ShovelItem.FLATTENABLES.put(input, result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user