use of crazypants.enderio.base.farming.fertilizer.FertilizerResult in project EnderIO by SleepyTrousers.
the class MagicalFertilizer method apply.
@Override
public IFertilizerResult apply(@Nonnull ItemStack stack, @Nonnull EntityPlayer player, @Nonnull World world, @Nonnull BlockPos bc) {
BlockPos below = bc.down();
Block belowBlock = world.getBlockState(below).getBlock();
if (belowBlock == Blocks.DIRT || belowBlock == Blocks.GRASS) {
return super.apply(stack, player, world, below);
}
return new FertilizerResult(stack, false);
}
Aggregations