@Override public boolean canBeHarvested(World world, BlockPos pos, IBlockState blockState) { return blockState.getBlock() instanceof BlockPumpkin || blockState.getBlock() instanceof BlockMelon; }