use of betterwithaddons.handler.StumpingHandler.WoodHardness in project BetterWithAddons by DaedalusGame.
the class SoftWoods method add.
@ZenMethod
public static void add(@NotNull IItemStack input, float hardness) {
if (!InputHelper.isABlock(input)) {
MineTweakerAPI.logError("Could not add soft wood " + input.toString() + "; not recognized as a block.");
return;
}
ItemStack stack = InputHelper.toStack(input);
WoodHardness r = new WoodHardness(Block.getBlockFromItem(stack.getItem()), stack.getMetadata(), hardness);
MineTweakerAPI.apply(new Add(r));
}
Aggregations